Lines Matching refs:codepoint

806 static bool AppendCodepointToUtf8String(char32_t codepoint, std::string* output) {  in AppendCodepointToUtf8String()  argument
807 ssize_t len = utf32_to_utf8_length(&codepoint, 1); in AppendCodepointToUtf8String()
818 utf32_to_utf8(&codepoint, 1, dst, len + 1); in AppendCodepointToUtf8String()
827 char32_t codepoint = iter->Next(); in AppendUnicodeEscapeSequence() local
829 if (codepoint >= U'0' && codepoint <= U'9') { in AppendUnicodeEscapeSequence()
830 a = codepoint - U'0'; in AppendUnicodeEscapeSequence()
831 } else if (codepoint >= U'a' && codepoint <= U'f') { in AppendUnicodeEscapeSequence()
832 a = codepoint - U'a' + 10; in AppendUnicodeEscapeSequence()
833 } else if (codepoint >= U'A' && codepoint <= U'F') { in AppendUnicodeEscapeSequence()
834 a = codepoint - U'A' + 10; in AppendUnicodeEscapeSequence()
855 char32_t codepoint = iter.Next(); in AppendText() local
856 if (!preserve_spaces_ && !quote_ && (codepoint <= std::numeric_limits<char>::max()) in AppendText()
857 && isspace(static_cast<char>(codepoint))) { in AppendText()
871 if (codepoint == U'\\') { in AppendText()
873 codepoint = iter.Next(); in AppendText()
874 switch (codepoint) { in AppendText()
888 xml_string_.text += static_cast<char>(codepoint); in AppendText()
901 AppendCodepointToUtf8String(codepoint, &xml_string_.text); in AppendText()
905 } else if (!preserve_spaces_ && codepoint == U'"') { in AppendText()
909 } else if (!preserve_spaces_ && !quote_ && codepoint == U'\'') { in AppendText()
915 AppendCodepointToUtf8String(codepoint, &xml_string_.text); in AppendText()