Home | History | Annotate | Download | only in strings

Lines Matching refs:code_point

18   // use a signed type for code_point.  But this function returns false
20 int32 code_point;
21 CBU8_NEXT(src, *char_index, src_len, code_point);
22 *code_point_out = static_cast<uint32>(code_point);
29 return IsValidCodepoint(code_point);
35 uint32* code_point) {
45 *code_point = CBU16_GET_SUPPLEMENTARY(src[*char_index],
50 *code_point = src[*char_index];
53 return IsValidCodepoint(*code_point);
60 uint32* code_point) {
62 *code_point = src[*char_index];
65 return IsValidCodepoint(*code_point);
71 size_t WriteUnicodeCharacter(uint32 code_point, std::string* output) {
72 if (code_point <= 0x7f) {
74 output->push_back(code_point);
84 CBU8_APPEND_UNSAFE(&(*output)[0], char_offset, code_point);
92 size_t WriteUnicodeCharacter(uint32 code_point, string16* output) {
93 if (CBU16_LENGTH(code_point) == 1) {
95 output->push_back(static_cast<char16>(code_point));
101 CBU16_APPEND_UNSAFE(&(*output)[0], char_offset, code_point);