Lines Matching refs:codepoint
515 bool IsOpeningBracket(char32 codepoint) { in IsOpeningBracket() argument
516 return GetMatchIndex(kOpeningBrackets, kNumOpeningBrackets, codepoint) >= 0; in IsOpeningBracket()
519 bool IsClosingBracket(char32 codepoint) { in IsClosingBracket() argument
520 return GetMatchIndex(kClosingBrackets, kNumClosingBrackets, codepoint) >= 0; in IsClosingBracket()
523 bool IsWhitespace(char32 codepoint) { in IsWhitespace() argument
524 return GetMatchIndex(kWhitespaces, kNumWhitespaces, codepoint) >= 0; in IsWhitespace()
527 bool IsBidirectional(char32 codepoint) { in IsBidirectional() argument
528 return GetMatchIndex(kBidirectional, kNumBidirectional, codepoint) >= 0; in IsBidirectional()
531 bool IsDigit(char32 codepoint) { in IsDigit() argument
534 /*range_length=*/10, codepoint) >= 0; in IsDigit()
537 bool IsLower(char32 codepoint) { in IsLower() argument
538 if (GetMatchIndex(kLowerSingles, kNumLowerSingles, codepoint) >= 0) { in IsLower()
542 codepoint) >= 0) { in IsLower()
546 codepoint) >= 0) { in IsLower()
553 bool IsUpper(char32 codepoint) { in IsUpper() argument
554 if (GetMatchIndex(kUpperSingles, kNumUpperSingles, codepoint) >= 0) { in IsUpper()
558 codepoint) >= 0) { in IsUpper()
562 codepoint) >= 0) { in IsUpper()
569 bool IsPunctuation(char32 codepoint) { in IsPunctuation() argument
572 kNumPunctuationRangesStart, /*stride=*/1, codepoint) >= 0); in IsPunctuation()
575 bool IsPercentage(char32 codepoint) { in IsPercentage() argument
576 return GetMatchIndex(kPercentages, kNumPercentages, codepoint) >= 0; in IsPercentage()
579 bool IsSlash(char32 codepoint) { in IsSlash() argument
580 return GetMatchIndex(kSlashes, kNumSlashes, codepoint) >= 0; in IsSlash()
583 bool IsMinus(char32 codepoint) { in IsMinus() argument
584 return GetMatchIndex(kMinuses, kNumMinuses, codepoint) >= 0; in IsMinus()
587 bool IsNumberSign(char32 codepoint) { in IsNumberSign() argument
588 return GetMatchIndex(kNumberSign, kNumNumberSign, codepoint) >= 0; in IsNumberSign()
591 bool IsDot(char32 codepoint) { in IsDot() argument
592 return GetMatchIndex(kDots, kNumDots, codepoint) >= 0; in IsDot()
595 bool IsApostrophe(char32 codepoint) { in IsApostrophe() argument
596 return GetMatchIndex(kApostrophe, kNumApostrophe, codepoint) >= 0; in IsApostrophe()
599 bool IsQuotation(char32 codepoint) { in IsQuotation() argument
600 return GetMatchIndex(kQuotation, kNumQuotation, codepoint) >= 0; in IsQuotation()
603 bool IsAmpersand(char32 codepoint) { in IsAmpersand() argument
604 return GetMatchIndex(kAmpersand, kNumAmpersand, codepoint) >= 0; in IsAmpersand()
607 bool IsLatinLetter(char32 codepoint) { in IsLatinLetter() argument
610 kNumLatinLettersRangesStart, /*stride=*/1, codepoint) >= 0); in IsLatinLetter()
613 bool IsArabicLetter(char32 codepoint) { in IsArabicLetter() argument
616 kNumArabicLettersRangesStart, /*stride=*/1, codepoint) >= 0); in IsArabicLetter()
619 bool IsCyrillicLetter(char32 codepoint) { in IsCyrillicLetter() argument
622 kNumCyrillicLettersRangesStart, /*stride=*/1, codepoint) >= 0); in IsCyrillicLetter()
625 bool IsChineseLetter(char32 codepoint) { in IsChineseLetter() argument
628 kNumChineseLettersRangesStart, /*stride=*/1, codepoint) >= 0); in IsChineseLetter()
631 bool IsJapaneseLetter(char32 codepoint) { in IsJapaneseLetter() argument
634 kNumJapaneseLettersRangesStart, /*stride=*/1, codepoint) >= 0); in IsJapaneseLetter()
637 bool IsKoreanLetter(char32 codepoint) { in IsKoreanLetter() argument
640 kNumKoreanLettersRangesStart, /*stride=*/1, codepoint) >= 0); in IsKoreanLetter()
643 bool IsThaiLetter(char32 codepoint) { in IsThaiLetter() argument
646 kNumThaiLettersRangesStart, /*stride=*/1, codepoint) >= 0); in IsThaiLetter()
649 bool IsCJTletter(char32 codepoint) { in IsCJTletter() argument
650 return IsJapaneseLetter(codepoint) || IsChineseLetter(codepoint) || in IsCJTletter()
651 IsThaiLetter(codepoint); in IsCJTletter()
654 bool IsLetter(char32 codepoint) { in IsLetter() argument
655 return IsLatinLetter(codepoint) || IsArabicLetter(codepoint) || in IsLetter()
656 IsCyrillicLetter(codepoint) || IsJapaneseLetter(codepoint) || in IsLetter()
657 IsKoreanLetter(codepoint) || IsThaiLetter(codepoint) || in IsLetter()
658 IsChineseLetter(codepoint); in IsLetter()
661 char32 ToLower(char32 codepoint) { in ToLower() argument
664 if (!IsUpper(codepoint)) { in ToLower()
665 return codepoint; in ToLower()
668 GetMatchIndex(kToLowerSingles, kNumToLowerSingles, codepoint); in ToLower()
670 return codepoint + kToLowerSinglesOffsets[singles_idx]; in ToLower()
674 kNumToLowerRangesStart, /*stride=*/1, codepoint); in ToLower()
676 return codepoint + kToLowerRangesOffsets[ranges_idx]; in ToLower()
678 return codepoint; in ToLower()
681 char32 ToUpper(char32 codepoint) { in ToUpper() argument
684 if (!IsLower(codepoint)) { in ToUpper()
685 return codepoint; in ToUpper()
688 GetMatchIndex(kToUpperSingles, kNumToUpperSingles, codepoint); in ToUpper()
690 return codepoint + kToUpperSinglesOffsets[singles_idx]; in ToUpper()
694 kNumToUpperRangesStart, /*stride=*/1, codepoint); in ToUpper()
696 return codepoint + kToUpperRangesOffsets[ranges_idx]; in ToUpper()
698 return codepoint; in ToUpper()
701 char32 GetPairedBracket(char32 codepoint) { in GetPairedBracket() argument
703 GetMatchIndex(kOpeningBrackets, kNumOpeningBrackets, codepoint); in GetPairedBracket()
708 GetMatchIndex(kClosingBrackets, kNumClosingBrackets, codepoint); in GetPairedBracket()
712 return codepoint; in GetPairedBracket()