/third_party/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/ |
H A D | UTF16Util.java | 32 int ch2 = s.charAt(i); in nextCodePoint() 33 if (0xdc00 <= ch2 && ch2 <= 0xdfff) { in nextCodePoint() 34 ch = (ch << 10) + ch2 - suppOffset; in nextCodePoint() 50 int ch2 = s.charAt(i); in prevCodePoint() 51 if (0xd800 <= ch2 && ch2 <= 0xdbff) { in prevCodePoint() 52 ch = (ch2 << 10) + ch - suppOffset; in prevCodePoint() 68 int ch2 = s.charAt(i); in nextCodePoint() 69 if (0xdc00 <= ch2 in nextCodePoint() [all...] |
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/ |
H A D | UTF16Util.java | 36 int ch2 = s.charAt(i); in nextCodePoint() 37 if (0xdc00 <= ch2 && ch2 <= 0xdfff) { in nextCodePoint() 38 ch = (ch << 10) + ch2 - suppOffset; in nextCodePoint() 54 int ch2 = s.charAt(i); in prevCodePoint() 55 if (0xd800 <= ch2 && ch2 <= 0xdbff) { in prevCodePoint() 56 ch = (ch2 << 10) + ch - suppOffset; in prevCodePoint() 72 int ch2 = s.charAt(i); in nextCodePoint() 73 if (0xdc00 <= ch2 in nextCodePoint() [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
H A D | UCharacterIterator.java | 163 int ch2 = current(); in currentCodePoint() 168 if (UTF16.isTrailSurrogate(ch2)) { in currentCodePoint() 171 return Character.toCodePoint((char) ch, (char) ch2); in currentCodePoint() 215 int ch2 = next(); in nextCodePoint() 216 if (UTF16.isTrailSurrogate(ch2)) { in nextCodePoint() 217 return Character.toCodePoint((char) ch1, (char) ch2); in nextCodePoint() 218 } else if (ch2 != DONE) { in nextCodePoint() 247 int ch2 = previous(); in previousCodePoint() 248 if (UTF16.isLeadSurrogate(ch2)) { in previousCodePoint() 249 return Character.toCodePoint((char) ch2, (cha in previousCodePoint() [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/ |
H A D | UCharacterIterator.java | 152 int ch2 = current(); in currentCodePoint() 157 if (UTF16.isTrailSurrogate((char) ch2)) { in currentCodePoint() 160 return Character.toCodePoint((char) ch, (char) ch2); in currentCodePoint() 200 int ch2 = next(); in nextCodePoint() 201 if (UTF16.isTrailSurrogate((char) ch2)) { in nextCodePoint() 202 return Character.toCodePoint((char) ch1, (char) ch2); in nextCodePoint() 203 } else if (ch2 != DONE) { in nextCodePoint() 230 int ch2 = previous(); in previousCodePoint() 231 if (UTF16.isLeadSurrogate((char) ch2)) { in previousCodePoint() 232 return Character.toCodePoint((char) ch2, (cha in previousCodePoint() [all...] |
/third_party/python/Objects/stringlib/ |
H A D | codecs.h | 99 Py_UCS4 ch2; in utf8_decode() local 111 ch2 = (unsigned char)s[1]; in utf8_decode() 112 if (!IS_CONTINUATION_BYTE(ch2)) in utf8_decode() 115 ch = (ch << 6) + ch2 - in utf8_decode() 129 Py_UCS4 ch2, ch3; in utf8_decode() local 135 ch2 = (unsigned char)s[1]; in utf8_decode() 136 if (!IS_CONTINUATION_BYTE(ch2) || in utf8_decode() 137 (ch2 < 0xA0 ? ch == 0xE0 : ch == 0xED)) in utf8_decode() 142 ch2 = (unsigned char)s[1]; in utf8_decode() 144 if (!IS_CONTINUATION_BYTE(ch2)) { in utf8_decode() 179 Py_UCS4 ch2, ch3, ch4; utf8_decode() local [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | dca_lbr.c | 501 static int parse_grid_1_chunk(DCALbrDecoder *s, LBRChunk *chunk, int ch1, int ch2) in parse_grid_1_chunk() argument 518 if (ch1 != ch2 && ff_dca_grid_1_to_scf[sb] < s->min_mono_subband) { in parse_grid_1_chunk() 519 ret = parse_scale_factors(s, s->grid_1_scf[ch2][sb]); in parse_grid_1_chunk() 531 if (ch1 != ch2) { in parse_grid_1_chunk() 533 s->grid_3_avg[ch2][sb] = parse_vlc(&s->gb, &ff_dca_vlc_avg_g3, 2) - 16; in parse_grid_1_chunk() 535 s->grid_3_avg[ch2][sb] = s->grid_3_avg[ch1][sb]; in parse_grid_1_chunk() 545 if (ch1 != ch2) { in parse_grid_1_chunk() 556 for (ch = ch1; ch <= ch2; ch++) in parse_grid_1_chunk() 569 static int parse_grid_1_sec_ch(DCALbrDecoder *s, int ch2) in parse_grid_1_sec_ch() argument 577 ret = parse_scale_factors(s, s->grid_1_scf[ch2][s in parse_grid_1_sec_ch() 595 parse_grid_3(DCALbrDecoder *s, int ch1, int ch2, int sb, int flag) parse_grid_3() argument 700 parse_ts(DCALbrDecoder *s, int ch1, int ch2, int start_sb, int end_sb, int flag) parse_ts() argument 779 parse_lpc(DCALbrDecoder *s, int ch1, int ch2, int start_sb, int end_sb) parse_lpc() argument 800 parse_high_res_grid(DCALbrDecoder *s, LBRChunk *chunk, int ch1, int ch2) parse_high_res_grid() argument 862 parse_grid_2(DCALbrDecoder *s, int ch1, int ch2, int start_sb, int end_sb, int flag) parse_grid_2() argument 904 parse_ts1_chunk(DCALbrDecoder *s, LBRChunk *chunk, int ch1, int ch2) parse_ts1_chunk() argument 922 parse_ts2_chunk(DCALbrDecoder *s, LBRChunk *chunk, int ch1, int ch2) parse_ts2_chunk() argument 1368 int ch2 = FFMIN(ch1 + 1, s->nchannels - 1); ff_dca_lbr_parse() local 1396 decode_grid(DCALbrDecoder *s, int ch1, int ch2) decode_grid() argument 1433 random_ts(DCALbrDecoder *s, int ch1, int ch2) random_ts() argument 1481 synth_lpc(DCALbrDecoder *s, int ch1, int ch2, int sb) synth_lpc() argument 1503 filter_ts(DCALbrDecoder *s, int ch1, int ch2) filter_ts() argument 1588 decode_part_stereo(DCALbrDecoder *s, int ch1, int ch2) decode_part_stereo() argument 1757 int ch2 = FFMIN(ch1 + 1, s->nchannels - 1); ff_dca_lbr_filter_frame() local [all...] |
/third_party/skia/third_party/externals/freetype/src/tools/ftrandom/ |
H A D | ftrandom.c | 280 int ch2 = getc( foo ); in figurefiletype() local 287 if ( ( ch1 == 0 && ch2 == 1 && ch3 == 0 && ch4 == 0 ) || in figurefiletype() 288 ( ch1 == 'O' && ch2 == 'T' && ch3 == 'T' && ch4 == 'O' ) || in figurefiletype() 289 ( ch1 == 't' && ch2 == 'r' && ch3 == 'u' && ch4 == 'e' ) || in figurefiletype() 290 ( ch1 == 't' && ch2 == 't' && ch3 == 'c' && ch4 == 'f' ) ) in figurefiletype() 295 else if ( ch1 == 0x80 && ch2 == '\01' ) in figurefiletype() 300 else if ( ch1 == '%' && ch2 == '!' ) in figurefiletype() 309 else if ( ch1 == 1 && ch2 == 0 && ch3 == 4 ) in figurefiletype() 314 else if ( ch1 == 'S' && ch2 == 'T' && ch3 == 'A' && ch4 == 'R' ) in figurefiletype() 319 else if ( ch1 == 'P' && ch2 in figurefiletype() [all...] |
/third_party/glslang/glslang/MachineIndependent/preprocessor/ |
H A D | PpScanner.cpp | 269 int ch2 = getChar(); in lFloatConst() local 270 if (ch2 != 'f' && ch2 != 'F') { in lFloatConst() 275 saveName(ch2); in lFloatConst() 288 int ch2 = getChar(); in lFloatConst() local 289 if (ch2 != 'f' && ch2 != 'F') { in lFloatConst() 294 saveName(ch2); in lFloatConst()
|
/third_party/icu/icu4c/source/common/ |
H A D | ucnv_u32.cpp | 220 UChar32 ch, ch2; in T_UConverter_fromUnicode_UTF32_BE() local 256 ch2 = *mySource; in T_UConverter_fromUnicode_UTF32_BE() 257 if (U_IS_TRAIL(ch2)) { in T_UConverter_fromUnicode_UTF32_BE() 258 ch = ((ch - SURROGATE_HIGH_START) << HALF_SHIFT) + ch2 + SURROGATE_LOW_BASE; in T_UConverter_fromUnicode_UTF32_BE() 322 UChar32 ch, ch2; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC() local 360 ch2 = *mySource; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC() 361 if (U_IS_TRAIL(ch2)) { in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC() 362 ch = ((ch - SURROGATE_HIGH_START) << HALF_SHIFT) + ch2 + SURROGATE_LOW_BASE; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC() 698 UChar32 ch, ch2; in T_UConverter_fromUnicode_UTF32_LE() local 738 ch2 in T_UConverter_fromUnicode_UTF32_LE() 808 UChar32 ch, ch2; T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC() local [all...] |
H A D | ucnv_u8.cpp | 75 uint32_t ch, ch2 = 0; in ucnv_toUnicode_UTF8() local 110 toUBytes[i] = (char) (ch2 = *mySource); in ucnv_toUnicode_UTF8() 111 if (!icu::UTF8::isValidTrail(ch, static_cast<uint8_t>(ch2), i, inBytes) && in ucnv_toUnicode_UTF8() 112 !(isCESU8 && i == 1 && ch == 0xed && U8_IS_TRAIL(ch2))) in ucnv_toUnicode_UTF8() 116 ch = (ch << 6) + ch2; in ucnv_toUnicode_UTF8() 193 uint32_t ch, ch2 = 0; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() local 227 toUBytes[i] = (char) (ch2 = *mySource); in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() 228 if (!icu::UTF8::isValidTrail(ch, static_cast<uint8_t>(ch2), i, inBytes) && in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() 229 !(isCESU8 && i == 1 && ch == 0xed && U8_IS_TRAIL(ch2))) in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() 233 ch = (ch << 6) + ch2; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() [all...] |
H A D | ustrtrns.cpp | 163 UChar ch2; in u_strToUTF32WithSub() local 214 } else if(U16_IS_SURROGATE_LEAD(ch) && src < srcLimit && U16_IS_TRAIL(ch2 = *src)) { in u_strToUTF32WithSub() 216 ch = U16_GET_SUPPLEMENTARY(ch, ch2); in u_strToUTF32WithSub() 801 uint32_t ch=0,ch2=0; in u_strToUTF8WithSub() local 855 if(U16_IS_SURROGATE_LEAD(ch) && U16_IS_TRAIL(ch2=*pSrc)) { in u_strToUTF8WithSub() 857 ch=U16_GET_SUPPLEMENTARY(ch, ch2); in u_strToUTF8WithSub() 884 } else if(U16_IS_SURROGATE_LEAD(ch) && U16_IS_TRAIL(ch2=*pSrc)) { in u_strToUTF8WithSub() 942 if(U16_IS_SURROGATE_LEAD(ch) && U16_IS_TRAIL(ch2=*pSrc)) { in u_strToUTF8WithSub() 944 ch=U16_GET_SUPPLEMENTARY(ch, ch2); in u_strToUTF8WithSub() 997 if(U16_IS_SURROGATE_LEAD(ch) && pSrc<pSrcLimit && U16_IS_TRAIL(ch2 in u_strToUTF8WithSub() [all...] |
/third_party/node/deps/icu-small/source/common/ |
H A D | ucnv_u32.cpp | 220 UChar32 ch, ch2; in T_UConverter_fromUnicode_UTF32_BE() local 256 ch2 = *mySource; in T_UConverter_fromUnicode_UTF32_BE() 257 if (U_IS_TRAIL(ch2)) { in T_UConverter_fromUnicode_UTF32_BE() 258 ch = ((ch - SURROGATE_HIGH_START) << HALF_SHIFT) + ch2 + SURROGATE_LOW_BASE; in T_UConverter_fromUnicode_UTF32_BE() 322 UChar32 ch, ch2; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC() local 360 ch2 = *mySource; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC() 361 if (U_IS_TRAIL(ch2)) { in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC() 362 ch = ((ch - SURROGATE_HIGH_START) << HALF_SHIFT) + ch2 + SURROGATE_LOW_BASE; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC() 698 UChar32 ch, ch2; in T_UConverter_fromUnicode_UTF32_LE() local 738 ch2 in T_UConverter_fromUnicode_UTF32_LE() 808 UChar32 ch, ch2; T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC() local [all...] |
H A D | ucnv_u8.cpp | 75 uint32_t ch, ch2 = 0; in ucnv_toUnicode_UTF8() local 110 toUBytes[i] = (char) (ch2 = *mySource); in ucnv_toUnicode_UTF8() 111 if (!icu::UTF8::isValidTrail(ch, static_cast<uint8_t>(ch2), i, inBytes) && in ucnv_toUnicode_UTF8() 112 !(isCESU8 && i == 1 && ch == 0xed && U8_IS_TRAIL(ch2))) in ucnv_toUnicode_UTF8() 116 ch = (ch << 6) + ch2; in ucnv_toUnicode_UTF8() 193 uint32_t ch, ch2 = 0; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() local 227 toUBytes[i] = (char) (ch2 = *mySource); in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() 228 if (!icu::UTF8::isValidTrail(ch, static_cast<uint8_t>(ch2), i, inBytes) && in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() 229 !(isCESU8 && i == 1 && ch == 0xed && U8_IS_TRAIL(ch2))) in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() 233 ch = (ch << 6) + ch2; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() [all...] |
/third_party/skia/third_party/externals/icu/source/common/ |
H A D | ucnv_u32.cpp | 220 UChar32 ch, ch2; in T_UConverter_fromUnicode_UTF32_BE() local 256 ch2 = *mySource; in T_UConverter_fromUnicode_UTF32_BE() 257 if (U_IS_TRAIL(ch2)) { in T_UConverter_fromUnicode_UTF32_BE() 258 ch = ((ch - SURROGATE_HIGH_START) << HALF_SHIFT) + ch2 + SURROGATE_LOW_BASE; in T_UConverter_fromUnicode_UTF32_BE() 322 UChar32 ch, ch2; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC() local 360 ch2 = *mySource; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC() 361 if (U_IS_TRAIL(ch2)) { in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC() 362 ch = ((ch - SURROGATE_HIGH_START) << HALF_SHIFT) + ch2 + SURROGATE_LOW_BASE; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC() 698 UChar32 ch, ch2; in T_UConverter_fromUnicode_UTF32_LE() local 738 ch2 in T_UConverter_fromUnicode_UTF32_LE() 808 UChar32 ch, ch2; T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC() local [all...] |
H A D | ucnv_u8.cpp | 75 uint32_t ch, ch2 = 0; in ucnv_toUnicode_UTF8() local 110 toUBytes[i] = (char) (ch2 = *mySource); in ucnv_toUnicode_UTF8() 111 if (!icu::UTF8::isValidTrail(ch, static_cast<uint8_t>(ch2), i, inBytes) && in ucnv_toUnicode_UTF8() 112 !(isCESU8 && i == 1 && ch == 0xed && U8_IS_TRAIL(ch2))) in ucnv_toUnicode_UTF8() 116 ch = (ch << 6) + ch2; in ucnv_toUnicode_UTF8() 193 uint32_t ch, ch2 = 0; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() local 227 toUBytes[i] = (char) (ch2 = *mySource); in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() 228 if (!icu::UTF8::isValidTrail(ch, static_cast<uint8_t>(ch2), i, inBytes) && in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() 229 !(isCESU8 && i == 1 && ch == 0xed && U8_IS_TRAIL(ch2))) in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() 233 ch = (ch << 6) + ch2; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/ |
H A D | ConvertUTF.cpp | 173 UTF32 ch, ch2; in ConvertUTF16toUTF32() local 181 ch2 = *source; in ConvertUTF16toUTF32() 183 if (ch2 >= UNI_SUR_LOW_START && ch2 <= UNI_SUR_LOW_END) { in ConvertUTF16toUTF32() 185 + (ch2 - UNI_SUR_LOW_START) + halfBase; in ConvertUTF16toUTF32() 215 fprintf(stderr, "ConvertUTF16toUTF32 illegal seq 0x%04x,%04x\n", ch, ch2); in ConvertUTF16toUTF32() 238 UTF32 ch2 = *source; in ConvertUTF16toUTF8() local 240 if (ch2 >= UNI_SUR_LOW_START && ch2 <= UNI_SUR_LOW_END) { in ConvertUTF16toUTF8() 242 + (ch2 in ConvertUTF16toUTF8() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
H A D | ConvertUTF.cpp | 199 UTF32 ch, ch2; in ConvertUTF16toUTF32() local 207 ch2 = *source; in ConvertUTF16toUTF32() 209 if (ch2 >= UNI_SUR_LOW_START && ch2 <= UNI_SUR_LOW_END) { in ConvertUTF16toUTF32() 211 + (ch2 - UNI_SUR_LOW_START) + halfBase; in ConvertUTF16toUTF32() 241 fprintf(stderr, "ConvertUTF16toUTF32 illegal seq 0x%04x,%04x\n", ch, ch2); in ConvertUTF16toUTF32() 264 UTF32 ch2 = *source; in ConvertUTF16toUTF8() local 266 if (ch2 >= UNI_SUR_LOW_START && ch2 <= UNI_SUR_LOW_END) { in ConvertUTF16toUTF8() 268 + (ch2 in ConvertUTF16toUTF8() [all...] |
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/normalizer/ |
H A D | UnicodeNormalizer.java | 124 int ch2; in internalDecompose() 125 for (; k > 0; k -= UTF16Util.codePointLength(ch2)) { in internalDecompose() 126 ch2 = UTF16Util.prevCodePoint(target, k); in internalDecompose() 127 if (data.getCanonicalClass(ch2) <= chClass) break; in internalDecompose()
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/normalizer/ |
H A D | UnicodeNormalizer.java | 121 int ch2; in internalDecompose() 122 for (; k > 0; k -= UTF16Util.codePointLength(ch2)) { in internalDecompose() 123 ch2 = UTF16Util.prevCodePoint(target, k); in internalDecompose() 124 if (data.getCanonicalClass(ch2) <= chClass) break; in internalDecompose()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
H A D | ReplaceableUCharacterIterator.java | 110 int ch2 = current(); in currentCodePoint() 114 if(UTF16.isTrailSurrogate(ch2)){ in currentCodePoint() 116 return Character.toCodePoint((char)ch, (char)ch2); in currentCodePoint()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
H A D | ReplaceableUCharacterIterator.java | 112 int ch2 = current(); in currentCodePoint() 116 if(UTF16.isTrailSurrogate((char)ch2)){ in currentCodePoint() 118 return Character.toCodePoint((char)ch, (char)ch2); in currentCodePoint()
|
/third_party/ltp/testcases/kernel/syscalls/copy_file_range/ |
H A D | copy_file_range01.c | 40 int ch1, ch2; in check_file_content() local 53 ch2 = getc(fp2); in check_file_content() 55 } while ((count < len) && (ch1 == ch2)); in check_file_content() 60 return !(ch1 == ch2); in check_file_content()
|
/third_party/mesa3d/src/microsoft/compiler/ |
H A D | dxil_container.h | 56 #define DXIL_FOURCC(ch0, ch1, ch2, ch3) ( \ 58 (uint32_t)(ch2) << 16 | (uint32_t)(ch3) << 24)
|
/third_party/node/deps/v8/src/inspector/ |
H A D | v8-string-conversions.cc | 67 UChar32 ch2 = static_cast<uint16_t>(*source); in convertUTF16ToUTF8() local 69 if (ch2 >= 0xDC00 && ch2 <= 0xDFFF) { in convertUTF16ToUTF8() 70 ch = ((ch - 0xD800) << 10) + (ch2 - 0xDC00) + 0x0010000; in convertUTF16ToUTF8()
|
/third_party/skia/third_party/externals/libjpeg-turbo/ |
H A D | rdswitch.c | 400 char ch1, ch2; in GLOBAL() local 404 ch2 = ','; /* if not set by sscanf, will be ',' */ in GLOBAL() 405 if (sscanf(arg, "%d%c%d%c", &val1, &ch1, &val2, &ch2) < 3) in GLOBAL() 407 if ((ch1 != 'x' && ch1 != 'X') || ch2 != ',') /* syntax check */ in GLOBAL()
|