Lines Matching refs:codepoint

817 static bool AppendCodepointToUtf8String(char32_t codepoint, std::string* output) {  in AppendCodepointToUtf8String()  argument
818 ssize_t len = utf32_to_utf8_length(&codepoint, 1); in AppendCodepointToUtf8String()
829 utf32_to_utf8(&codepoint, 1, dst, len + 1); in AppendCodepointToUtf8String()
838 char32_t codepoint = iter->Next(); in AppendUnicodeEscapeSequence() local
840 if (codepoint >= U'0' && codepoint <= U'9') { in AppendUnicodeEscapeSequence()
841 a = codepoint - U'0'; in AppendUnicodeEscapeSequence()
842 } else if (codepoint >= U'a' && codepoint <= U'f') { in AppendUnicodeEscapeSequence()
843 a = codepoint - U'a' + 10; in AppendUnicodeEscapeSequence()
844 } else if (codepoint >= U'A' && codepoint <= U'F') { in AppendUnicodeEscapeSequence()
845 a = codepoint - U'A' + 10; in AppendUnicodeEscapeSequence()
866 char32_t codepoint = iter.Next(); in AppendText() local
867 if (!preserve_spaces_ && !quote_ && (codepoint <= std::numeric_limits<char>::max()) in AppendText()
868 && isspace(static_cast<char>(codepoint))) { in AppendText()
882 if (codepoint == U'\\') { in AppendText()
884 codepoint = iter.Next(); in AppendText()
885 switch (codepoint) { in AppendText()
899 xml_string_.text += static_cast<char>(codepoint); in AppendText()
912 AppendCodepointToUtf8String(codepoint, &xml_string_.text); in AppendText()
916 } else if (!preserve_spaces_ && codepoint == U'"') { in AppendText()
920 } else if (!preserve_spaces_ && !quote_ && codepoint == U'\'') { in AppendText()
926 AppendCodepointToUtf8String(codepoint, &xml_string_.text); in AppendText()