Home
last modified time | relevance | path

Searched refs:char32 (Results 1 – 25 of 25) sorted by relevance

/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
DCharsetUTF8.java71 int char32, bytesExpected, bytesSoFar; in decodeLoop() local
78 char32 = ch & BITMASK_FROM_UTF8[bytesExpected]; in decodeLoop()
82 char32 = toUnicodeStatus; in decodeLoop()
96 toUnicodeStatus = char32; in decodeLoop()
103 if (!UTF8.isValidTrail(char32, ch, bytesSoFar, bytesExpected) in decodeLoop()
104 … && !(isCESU8 && bytesSoFar == 1 && char32 == 0xd && UTF8.isTrail(ch))) { in decodeLoop()
110 char32 = (char32 << 6) | (ch & 0x3f); in decodeLoop()
118 if (char32 <= UConverterConstants.MAXIMUM_UCS2) { in decodeLoop()
120 targetArray[targetIndex++] = (char) char32; in decodeLoop()
123 char32 -= UConverterConstants.HALF_BASE; in decodeLoop()
[all …]
DCharsetUTF32.java126 int char32; in decodeLoop() local
138 char32 = 0; in decodeLoop()
140 char32 = (char32 << 8) in decodeLoop()
143 … if (0 <= char32 && char32 <= UConverterConstants.MAXIMUM_UTF && !isSurrogate(char32)) { in decodeLoop()
145 if (char32 <= UConverterConstants.MAXIMUM_UCS2) { in decodeLoop()
147 target.put((char) char32); in decodeLoop()
150 target.put(UTF16.getLeadSurrogate(char32)); in decodeLoop()
151 char32 = UTF16.getTrailSurrogate(char32); in decodeLoop()
153 target.put((char) char32); in decodeLoop()
156 charErrorBufferArray[0] = (char) char32; in decodeLoop()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DUTF16.java475 public static int getCharCount(int char32) { in getCharCount() argument
476 if (char32 < SUPPLEMENTARY_MIN_VALUE) { in getCharCount()
641 public static char getLeadSurrogate(int char32) { in getLeadSurrogate() argument
642 if (char32 >= SUPPLEMENTARY_MIN_VALUE) { in getLeadSurrogate()
643 return (char) (LEAD_SURROGATE_OFFSET_ + (char32 >> LEAD_SURROGATE_SHIFT_)); in getLeadSurrogate()
658 public static char getTrailSurrogate(int char32) { in getTrailSurrogate() argument
659 if (char32 >= SUPPLEMENTARY_MIN_VALUE) { in getTrailSurrogate()
660 return (char) (TRAIL_SURROGATE_MIN_VALUE + (char32 & TRAIL_SURROGATE_MASK_)); in getTrailSurrogate()
662 return (char) char32; in getTrailSurrogate()
675 public static String valueOf(int char32) { in valueOf() argument
[all …]
DNormalizer.java921 public static String normalize(int char32, Mode mode, int options) { in normalize() argument
923 String decomposition = Normalizer2.getNFCInstance().getDecomposition(char32); in normalize()
925 decomposition = UTF16.valueOf(char32); in normalize()
929 return normalize(UTF16.valueOf(char32), mode, options); in normalize()
940 public static String normalize(int char32, Mode mode) { in normalize() argument
941 return normalize(char32, mode, 0); in normalize()
1094 public static boolean isNormalized(int char32, Mode mode,int options) { in isNormalized() argument
1095 return isNormalized(UTF16.valueOf(char32), mode, options); in isNormalized()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DUTF16.java450 public static int getCharCount(int char32) { in getCharCount() argument
451 if (char32 < SUPPLEMENTARY_MIN_VALUE) { in getCharCount()
609 public static char getLeadSurrogate(int char32) { in getLeadSurrogate() argument
610 if (char32 >= SUPPLEMENTARY_MIN_VALUE) { in getLeadSurrogate()
611 return (char) (LEAD_SURROGATE_OFFSET_ + (char32 >> LEAD_SURROGATE_SHIFT_)); in getLeadSurrogate()
625 public static char getTrailSurrogate(int char32) { in getTrailSurrogate() argument
626 if (char32 >= SUPPLEMENTARY_MIN_VALUE) { in getTrailSurrogate()
627 return (char) (TRAIL_SURROGATE_MIN_VALUE + (char32 & TRAIL_SURROGATE_MASK_)); in getTrailSurrogate()
629 return (char) char32; in getTrailSurrogate()
641 public static String valueOf(int char32) { in valueOf() argument
[all …]
DNormalizer.java948 public static String normalize(int char32, Mode mode, int options) { in normalize() argument
950 String decomposition = Normalizer2.getNFCInstance().getDecomposition(char32); in normalize()
952 decomposition = UTF16.valueOf(char32); in normalize()
956 return normalize(UTF16.valueOf(char32), mode, options); in normalize()
968 public static String normalize(int char32, Mode mode) { in normalize() argument
969 return normalize(char32, mode, 0); in normalize()
1129 public static boolean isNormalized(int char32, Mode mode,int options) { in isNormalized() argument
1130 return isNormalized(UTF16.valueOf(char32), mode, options); in isNormalized()
/external/libtextclassifier/utils/utf8/
Dunilib-javaicu.cc40 constexpr char32 kOpeningBrackets[] = {
52 constexpr char32 kClosingBrackets[] = {
63 constexpr char32 kWhitespaces[] = {
75 constexpr char32 kDecimalDigitRangesEnd[] = {
90 constexpr char32 kUpperSingles[] = {
95 constexpr char32 kUpperRanges1Start[] = {
103 constexpr char32 kUpperRanges1End[] = {
111 constexpr char32 kUpperRanges2Start[] = {
118 constexpr char32 kUpperRanges2End[] = {
189 int GetMatchIndex(const char32* array, int array_length, char32 c) { in GetMatchIndex()
[all …]
Dunilib-javaicu.h44 bool IsOpeningBracket(char32 codepoint) const;
45 bool IsClosingBracket(char32 codepoint) const;
46 bool IsWhitespace(char32 codepoint) const;
47 bool IsDigit(char32 codepoint) const;
48 bool IsUpper(char32 codepoint) const;
50 char32 ToLower(char32 codepoint) const;
51 char32 GetPairedBracket(char32 codepoint) const;
Dunicodetext.h79 typedef char32 value_type;
82 typedef const char32 reference; // (Needed for const_reverse_iterator)
90 char32 operator*() const; // Dereference
171 UnicodeText& push_back(char32 ch);
Dunicodetext.cc139 int runetochar(const char32 rune, char* dest) { in runetochar()
180 UnicodeText& UnicodeText::push_back(char32 ch) { in push_back()
271 char32 UnicodeText::const_iterator::operator*() const { in operator *()
/external/libtextclassifier/annotator/
Dstrip-unpaired-brackets.cc28 bool IsCodepointInSpan(const char32 codepoint, in IsCodepointInSpan()
40 char32 FirstSpanCodepoint(const UnicodeText& context_unicode, in FirstSpanCodepoint()
48 char32 LastSpanCodepoint(const UnicodeText& context_unicode, in LastSpanCodepoint()
73 const char32 begin_char = FirstSpanCodepoint(context_unicode, span); in StripUnpairedBrackets()
74 const char32 paired_begin_char = unilib.GetPairedBracket(begin_char); in StripUnpairedBrackets()
86 const char32 end_char = LastSpanCodepoint(context_unicode, span); in StripUnpairedBrackets()
87 const char32 paired_end_char = unilib.GetPairedBracket(end_char); in StripUnpairedBrackets()
Dfeature-processor.cc530 void FindSubstrings(const UnicodeText& t, const std::set<char32>& codepoints, in FindSubstrings()
554 const std::set<char32> codepoints{{'\n', '|'}}; in SplitContext()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DRBBIDataWrapper.java466 int char32; in dumpCharCategories() local
475 for (char32 = 0; char32<=0x10ffff; char32++) { in dumpCharCategories()
476 category = fTrie.get(char32); in dumpCharCategories()
480 " for char " + Integer.toHexString(char32)); in dumpCharCategories()
484 rangeEnd = char32; in dumpCharCategories()
498 rangeStart = rangeEnd = char32; in dumpCharCategories()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DRBBIDataWrapper.java470 int char32; in dumpCharCategories() local
479 for (char32 = 0; char32<=0x10ffff; char32++) { in dumpCharCategories()
480 category = fTrie.get(char32); in dumpCharCategories()
484 " for char " + Integer.toHexString(char32)); in dumpCharCategories()
488 rangeEnd = char32; in dumpCharCategories()
502 rangeStart = rangeEnd = char32; in dumpCharCategories()
/external/libtextclassifier/utils/base/
Dintegral_types.h38 typedef signed int char32; typedef
55 static_assert(sizeof(char32) == 4, "wrong size");
/external/libtextclassifier/lang_id/common/lite_base/
Dintegral-types.h37 typedef signed int char32; typedef
52 static_assert(sizeof(char32) == 4, "wrong size");
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/
DUTF16Util.java230 public static int getCharCount(int char32) in getCharCount() argument
232 if (char32 < SUPPLEMENTARY_MIN_VALUE) { in getCharCount()
/external/cldr/tools/java/com/ibm/icu/dev/test/
DUTF16Util.java229 public static int getCharCount(int char32) in getCharCount() argument
231 if (char32 < SUPPLEMENTARY_MIN_VALUE) { in getCharCount()
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/layout/
DCanonicalCharacterData.java30 String char32 = UCharacter.toString(character); in Record() local
31 CanonicalIterator iterator = new CanonicalIterator(char32); in Record()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/
DUTF16Util.java234 public static int getCharCount(int char32) in getCharCount() argument
236 if (char32 < SUPPLEMENTARY_MIN_VALUE) { in getCharCount()
/external/dynamic_depth/internal/base/
Dintegral_types.h56 typedef signed int char32; typedef
/external/libtextclassifier/utils/
Dtokenizer.h78 void GetScriptAndRole(char32 codepoint,
Dtokenizer.cc77 void Tokenizer::GetScriptAndRole(char32 codepoint, in GetScriptAndRole()
/external/protobuf/src/google/protobuf/stubs/
Dstrutil.cc383 char32 rune = 0; in UnescapeCEscapeSequences()
400 char32 rune = 0; in UnescapeCEscapeSequences()
406 char32 newrune = (rune << 4) + hex_digit_to_int(*++p); in UnescapeCEscapeSequences()
/external/icu/icu4c/source/test/intltest/
Dtstnorm.cpp1539 UChar32 char32 = 0x0054; in TestFilteredNormalizer2Coverage() local
1541 if (fn2.isInert(char32)) { in TestFilteredNormalizer2Coverage()
1545 if (fn2.hasBoundaryAfter(char32)) { in TestFilteredNormalizer2Coverage()