Searched refs:code_point (Results 1 – 3 of 3) sorted by relevance
927 static void AppendUTF8(uint32 code_point, string* output) { in AppendUTF8() argument930 if (code_point <= 0x7f) { in AppendUTF8()931 tmp = code_point; in AppendUTF8()933 } else if (code_point <= 0x07ff) { in AppendUTF8()935 ((code_point & 0x07c0) << 2) | in AppendUTF8()936 (code_point & 0x003f); in AppendUTF8()938 } else if (code_point <= 0xffff) { in AppendUTF8()940 ((code_point & 0xf000) << 4) | in AppendUTF8()941 ((code_point & 0x0fc0) << 2) | in AppendUTF8()942 (code_point & 0x003f); in AppendUTF8()[all …]
2235 int EncodeAsUTF8Char(uint32 code_point, char* output) { in EncodeAsUTF8Char() argument2238 if (code_point <= 0x7f) { in EncodeAsUTF8Char()2239 tmp = code_point; in EncodeAsUTF8Char()2241 } else if (code_point <= 0x07ff) { in EncodeAsUTF8Char()2243 ((code_point & 0x07c0) << 2) | in EncodeAsUTF8Char()2244 (code_point & 0x003f); in EncodeAsUTF8Char()2246 } else if (code_point <= 0xffff) { in EncodeAsUTF8Char()2248 ((code_point & 0xf000) << 4) | in EncodeAsUTF8Char()2249 ((code_point & 0x0fc0) << 2) | in EncodeAsUTF8Char()2250 (code_point & 0x003f); in EncodeAsUTF8Char()[all …]
853 inline bool IsValidCodePoint(uint32 code_point) { in IsValidCodePoint() argument854 return code_point < 0xD800 || in IsValidCodePoint()855 (code_point >= 0xE000 && code_point <= 0x10FFFF); in IsValidCodePoint()865 LIBPROTOBUF_EXPORT int EncodeAsUTF8Char(uint32 code_point, char* output);