Lines Matching defs:UnicodeText
28 // ***************************** UnicodeText **************************
30 // A UnicodeText object is a wrapper around a sequence of Unicode
34 // variable-width format, UnicodeText does not provide random access
37 // The UnicodeText class defines a const_iterator. The dereferencing
42 // 0x10FFFF], but UnicodeText has the additional restriction that it
62 // quite useful to have a UnicodeText "window" through which to see a
65 class UnicodeText {
69 UnicodeText(); // Create an empty text.
70 UnicodeText(const UnicodeText& src);
71 UnicodeText& operator=(UnicodeText&& src);
72 ~UnicodeText();
87 // It's safe to make multiple passes over a UnicodeText.
135 friend class UnicodeText;
160 bool operator==(const UnicodeText& other) const;
165 UnicodeText& Copy(const UnicodeText& src);
166 UnicodeText& PointToUTF8(const char* utf8_buffer, int byte_length);
167 UnicodeText& CopyUTF8(const char* utf8_buffer, int byte_length);
170 UnicodeText& AppendUTF8(const char* utf8, int len);
171 UnicodeText& push_back(char32 ch);
178 static UnicodeText Substring(const UnicodeText& text, int begin_codepoint,
213 typedef std::pair<UnicodeText::const_iterator, UnicodeText::const_iterator>
220 UnicodeText UTF8ToUnicodeText(const char* utf8_buf, int len,
222 UnicodeText UTF8ToUnicodeText(const char* utf8_buf, bool do_copy = true);
223 UnicodeText UTF8ToUnicodeText(const std::string& str, bool do_copy = true);
224 UnicodeText UTF8ToUnicodeText(const std::string& str);