Home
last modified time | relevance | path

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

123

/third_party/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/
DUTF16Util.java32 int ch2 = s.charAt(i); in nextCodePoint() local
33 if (0xdc00 <= ch2 && ch2 <= 0xdfff) { in nextCodePoint()
34 ch = (ch << 10) + ch2 - suppOffset; in nextCodePoint()
50 int ch2 = s.charAt(i); in prevCodePoint() local
51 if (0xd800 <= ch2 && ch2 <= 0xdbff) { in prevCodePoint()
52 ch = (ch2 << 10) + ch - suppOffset; in prevCodePoint()
68 int ch2 = s.charAt(i); in nextCodePoint() local
69 if (0xdc00 <= ch2 && ch2 <= 0xdfff) { in nextCodePoint()
70 ch = (ch << 10) + ch2 - suppOffset; in nextCodePoint()
86 int ch2 = s.charAt(i); in prevCodePoint() local
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/
DUTF16Util.java36 int ch2 = s.charAt(i); in nextCodePoint() local
37 if (0xdc00 <= ch2 && ch2 <= 0xdfff) { in nextCodePoint()
38 ch = (ch << 10) + ch2 - suppOffset; in nextCodePoint()
54 int ch2 = s.charAt(i); in prevCodePoint() local
55 if (0xd800 <= ch2 && ch2 <= 0xdbff) { in prevCodePoint()
56 ch = (ch2 << 10) + ch - suppOffset; in prevCodePoint()
72 int ch2 = s.charAt(i); in nextCodePoint() local
73 if (0xdc00 <= ch2 && ch2 <= 0xdfff) { in nextCodePoint()
74 ch = (ch << 10) + ch2 - suppOffset; in nextCodePoint()
90 int ch2 = s.charAt(i); in prevCodePoint() local
[all …]
/third_party/rust/crates/shlex/src/
Dlib.rs66 '\\' => if let Some(ch2) = self.next_char() { in parse_word()
67 if ch2 != '\n' as u8 { result.push(ch2); } in parse_word()
75 if let Some(ch2) = self.next_char() { ch = ch2; } else { break; } in parse_word()
82 if let Some(ch2) = self.next_char() { in parse_double()
83 match ch2 as char { in parse_double()
99 _ => { result.push(ch2); }, in parse_double()
109 if let Some(ch2) = self.next_char() { in parse_single()
110 match ch2 as char { in parse_single()
112 _ => { result.push(ch2); }, in parse_single()
136 while let Some(ch2) = self.next_char() { in next()
[all …]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DUCharacterIterator.java163 int ch2 = current(); in currentCodePoint() local
168 if (UTF16.isTrailSurrogate(ch2)) { in currentCodePoint()
171 return Character.toCodePoint((char) ch, (char) ch2); in currentCodePoint()
215 int ch2 = next(); in nextCodePoint() local
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() local
248 if (UTF16.isLeadSurrogate(ch2)) { in previousCodePoint()
249 return Character.toCodePoint((char) ch2, (char) ch1); in previousCodePoint()
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
DUCharacterIterator.java152 int ch2 = current(); in currentCodePoint() local
157 if (UTF16.isTrailSurrogate((char) ch2)) { in currentCodePoint()
160 return Character.toCodePoint((char) ch, (char) ch2); in currentCodePoint()
200 int ch2 = next(); in nextCodePoint() local
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() local
231 if (UTF16.isLeadSurrogate((char) ch2)) { in previousCodePoint()
232 return Character.toCodePoint((char) ch2, (char) ch1); in previousCodePoint()
[all …]
/third_party/python/Objects/stringlib/
Dcodecs.h99 Py_UCS4 ch2; in STRINGLIB() local
111 ch2 = (unsigned char)s[1]; in STRINGLIB()
112 if (!IS_CONTINUATION_BYTE(ch2)) in STRINGLIB()
115 ch = (ch << 6) + ch2 - in STRINGLIB()
129 Py_UCS4 ch2, ch3; in STRINGLIB() local
135 ch2 = (unsigned char)s[1]; in STRINGLIB()
136 if (!IS_CONTINUATION_BYTE(ch2) || in STRINGLIB()
137 (ch2 < 0xA0 ? ch == 0xE0 : ch == 0xED)) in STRINGLIB()
142 ch2 = (unsigned char)s[1]; in STRINGLIB()
144 if (!IS_CONTINUATION_BYTE(ch2)) { in STRINGLIB()
[all …]
/third_party/ffmpeg/libavcodec/
Ddca_lbr.c501 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][sb]); in parse_grid_1_sec_ch()
[all …]
/third_party/openssl/test/recipes/
D70-test_tls13psk.t76 my $ch2 = ${$proxy->message_list}[2];
77 my $ch2seen = defined $ch2 && $ch2->mt() == TLSProxy::Message::MT_CLIENT_HELLO;
79 && defined ${$ch2->{extension_data}}{TLSProxy::Message::EXT_PSK};
99 $ch2 = ${$proxy->message_list}[2];
100 $ch2seen = defined $ch2 && $ch2->mt() == TLSProxy::Message::MT_CLIENT_HELLO;
102 && defined ${$ch2->extension_data}{TLSProxy::Message::EXT_PSK};
/third_party/skia/third_party/externals/freetype/src/tools/ftrandom/
Dftrandom.c280 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 == 'F' && ch3 == 'R' && ch4 == '0' ) in figurefiletype()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/
DConvertUTF.cpp173 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 - UNI_SUR_LOW_START) + halfBase; in ConvertUTF16toUTF8()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DConvertUTF.cpp199 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 - UNI_SUR_LOW_START) + halfBase; in ConvertUTF16toUTF8()
/third_party/node/deps/icu-small/source/common/
Ducnv_u32.cpp220 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 = *mySource; in T_UConverter_fromUnicode_UTF32_LE()
[all …]
Ducnv_u8.cpp75 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()
Dustrtrns.cpp163 char16_t 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=*pSrc)) { in u_strToUTF8WithSub()
[all …]
/third_party/skia/third_party/externals/icu/source/common/
Ducnv_u32.cpp220 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 = *mySource; in T_UConverter_fromUnicode_UTF32_LE()
[all …]
Ducnv_u8.cpp75 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()
Dustrtrns.cpp163 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=*pSrc)) { in u_strToUTF8WithSub()
[all …]
/third_party/icu/icu4c/source/common/
Ducnv_u32.cpp220 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 = *mySource; in T_UConverter_fromUnicode_UTF32_LE()
[all …]
Ducnv_u8.cpp75 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()
Dustrtrns.cpp163 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=*pSrc)) { in u_strToUTF8WithSub()
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/normalizer/
DUnicodeNormalizer.java124 int ch2; in internalDecompose() local
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/
DUnicodeNormalizer.java121 int ch2; in internalDecompose() local
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/
DReplaceableUCharacterIterator.java110 int ch2 = current(); in currentCodePoint() local
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/
DReplaceableUCharacterIterator.java112 int ch2 = current(); in currentCodePoint() local
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/
Dcopy_file_range01.c40 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()

123