Lines Matching refs:codepoint

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