16 #ifndef SERIALIZATION_UNICODE_HPP_INCLUDED
17 #define SERIALIZATION_UNICODE_HPP_INCLUDED
size_t index(const utf8::string &str, const size_t index)
Codepoint index corresponding to the nth character in a UTF-8 string.
void truncate_as_ucs4(utf8::string &str, const size_t size)
Truncates a UTF-8 string to the specified number of characters.
utf8::string lowercase(const utf8::string &s)
Returns a lowercased version of the string.
ucs4::iterator_base< std::string, ucs4_convert_impl::convert_impl< char_t >::type > iterator
utf8::string & truncate(utf8::string &str, const size_t size)
Truncates a UTF-8 string to the specified number of characters.
size_t size(const utf8::string &str)
Length in characters of a UTF-8 string.
Functions for converting Unicode wide-char strings to UTF-8 encoded strings, back and forth...
ucs4::iterator_base< utf16::string, ucs4_convert_impl::convert_impl< char_t >::type > iterator
utf8::string & insert(utf8::string &str, const size_t pos, const utf8::string &insert)
Insert a UTF-8 string at the specified position.
utf8::string & erase(utf8::string &str, const size_t start, const size_t len)
Erases a portion of a UTF-8 string.