MCPcopy Create free account
hub / github.com/apache/arrow / IsCasedCharacterUnicode

Function IsCasedCharacterUnicode

cpp/src/arrow/compute/kernels/scalar_string_utf8.cc:98–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98static inline bool IsCasedCharacterUnicode(uint32_t codepoint) {
99 return HasAnyUnicodeGeneralCategory(codepoint, UTF8PROC_CATEGORY_LU,
100 UTF8PROC_CATEGORY_LL, UTF8PROC_CATEGORY_LT) ||
101 ((static_cast<uint32_t>(utf8proc_toupper(codepoint)) != codepoint) ||
102 (static_cast<uint32_t>(utf8proc_tolower(codepoint)) != codepoint));
103}
104
105static inline bool IsLowerCaseCharacterUnicode(uint32_t codepoint) {
106 // although this trick seems to work for upper case, this is not enough for lower case

Callers 6

PredicateCharacterAllMethod · 0.85
PredicateCharacterAnyMethod · 0.85
CallMethod · 0.85
PredicateCharacterAllMethod · 0.85
PredicateCharacterAnyMethod · 0.85
TransformMethod · 0.85

Calls 1

Tested by

no test coverage detected