Home | History | Annotate | Download | only in base

Lines Matching refs:code_point

15 inline bool IsValidCodepoint(uint32 code_point) {
19 return code_point < 0xD800u ||
20 (code_point >= 0xE000u && code_point <= 0x10FFFFu);
23 inline bool IsValidCharacter(uint32 code_point) {
26 return code_point < 0xD800u || (code_point >= 0xE000u &&
27 code_point < 0xFDD0u) || (code_point > 0xFDEFu &&
28 code_point <= 0x10FFFFu && (code_point & 0xFFFEu) != 0xFFFEu);
34 // |*code_point|. |src| represents the entire string to read, and |*char_index|
39 // Returns true on success. On false, |*code_point| will be invalid.
49 uint32* code_point);
56 uint32* code_point);
63 size_t WriteUnicodeCharacter(uint32 code_point, std::string* output);
67 size_t WriteUnicodeCharacter(uint32 code_point, string16* output);
72 inline size_t WriteUnicodeCharacter(uint32 code_point, std::wstring* output) {
74 output->push_back(code_point);