Home | History | Annotate | Download | only in text

Lines Matching defs:codepoint

45 bool CompareCharacterProperties(const CharacterProperties& a, char32_t codepoint) {
46 return a.last_char < codepoint;
49 uint32_t FindCharacterProperties(char32_t codepoint) {
51 const auto iter = std::lower_bound(sCharacterProperties.begin(), iter_end, codepoint,
53 if (iter != iter_end && codepoint >= iter->first_char) {
61 bool IsXidStart(char32_t codepoint) {
62 return FindCharacterProperties(codepoint) & CharacterProperties::kXidStart;
65 bool IsXidContinue(char32_t codepoint) {
66 return FindCharacterProperties(codepoint) & CharacterProperties::kXidContinue;
72 bool IsWhitespace(char32_t codepoint) {
73 return (codepoint >= 0x0009 && codepoint <= 0x000d) || (codepoint == 0x0020) ||
74 (codepoint == 0x0085) || (codepoint == 0x00a0) || (codepoint == 0x1680) ||
75 (codepoint >= 0x2000 && codepoint <= 0x200a) || (codepoint == 0x2028) ||
76 (codepoint == 0x2029) || (codepoint == 0x202f) || (codepoint == 0x205f) ||
77 (codepoint == 0x3000);
93 const char32_t codepoint = iter.Next();
94 if (!IsXidContinue(codepoint) && codepoint != U'$') {
116 const char32_t codepoint = iter.Next();
117 if (!IsXidContinue(codepoint) && codepoint != U'.' && codepoint != U'-') {