Home
last modified time | relevance | path

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

12345678910>>...67

/external/caliper/examples/src/main/java/examples/
DCharacterBenchmark.java58 for (int ch = 0; ch < 65536; ++ch) { in isSpace()
59 dummy ^= ((char) ch == ' '); in isSpace()
64 for (int ch = 0; ch < 65536; ++ch) { in isSpace()
65 dummy ^= (ch == ' '); in isSpace()
75 for (int ch = 0; ch < 65536; ++ch) { in digit()
76 Character.digit(chars[ch], 10); in digit()
81 for (int ch = 0; ch < 65536; ++ch) { in digit()
82 Character.digit((int) chars[ch], 10); in digit()
91 for (int ch = 0; ch < 65536; ++ch) { in getNumericValue()
92 Character.getNumericValue(chars[ch]); in getNumericValue()
[all …]
/external/icu/icu4j/perf-tests/src/com/ibm/icu/dev/test/perf/
DUCharacterPerf.java47 for (int ch = MIN_; ch < MAX_; ch ++) { in testDigit()
48 UCharacter.digit(ch, 10); in testDigit()
62 for (char ch = (char)MIN_; ch < (char)MAX_; ch ++) {
63 Character.digit(ch, 10);
77 for (int ch = MIN_; ch < MAX_; ch ++) {
78 UCharacter.getNumericValue(ch);
92 for (char ch = (char)MIN_; ch < (char)MAX_; ch ++) {
93 Character.getNumericValue(ch);
107 for (int ch = MIN_; ch < MAX_; ch ++) {
108 UCharacter.getType(ch);
[all …]
/external/aac/libAACenc/src/
Dpsy_main.cpp250 int i, ch, n, chInc = 0, resetChannels = 3; in FDKaacEnc_psyInit() local
262 for (ch=0; ch<cm->elInfo[i].nChannelsInEl; ch++) { in FDKaacEnc_psyInit()
264 hPsy->psyElement[i]->psyStatic[ch] = hPsy->pStaticChannels[chInc]; in FDKaacEnc_psyInit()
266 FDKaacEnc_psyInitStates(hPsy, hPsy->psyElement[i]->psyStatic[ch], audioObjectType); in FDKaacEnc_psyInit()
268 hPsy->psyElement[i]->psyStatic[ch]->isLFE = 0; in FDKaacEnc_psyInit()
271 hPsy->psyElement[i]->psyStatic[ch] = hPsy->pStaticChannels[nMaxChannels-1]; in FDKaacEnc_psyInit()
272 hPsy->psyElement[i]->psyStatic[ch]->isLFE = 1; in FDKaacEnc_psyInit()
281 for (ch=0; ch<cm->elInfo[i].nChannelsInEl; ch++) { in FDKaacEnc_psyInit()
282 phpsyOut[n]->psyOutElement[i]->psyOutChannel[ch] = phpsyOut[n]->pPsyOutChannels[chInc++]; in FDKaacEnc_psyInit()
313 int i, ch; in FDKaacEnc_psyMainInit() local
[all …]
Dadj_thr.cpp386 INT ch, sfb, sfbGrp; in FDKaacEnc_calcThreshExp() local
389 for (ch=0; ch<nChannels; ch++) { in FDKaacEnc_calcThreshExp()
390 for(sfbGrp = 0;sfbGrp < psyOutChannel[ch]->sfbCnt;sfbGrp+= psyOutChannel[ch]->sfbPerGroup) { in FDKaacEnc_calcThreshExp()
391 for (sfb=0; sfb<psyOutChannel[ch]->maxSfbPerGroup; sfb++) { in FDKaacEnc_calcThreshExp()
392 thrExpLdData = psyOutChannel[ch]->sfbThresholdLdData[sfbGrp+sfb]>>2 ; in FDKaacEnc_calcThreshExp()
393 thrExp[ch][sfbGrp+sfb] = CalcInvLdData(thrExpLdData); in FDKaacEnc_calcThreshExp()
409 INT ch, sfb, sfbGrp, nSfb; in FDKaacEnc_adaptMinSnr() local
415 for (ch=0; ch<nChannels; ch++) { in FDKaacEnc_adaptMinSnr()
420 for (sfbGrp=0; sfbGrp < psyOutChannel[ch]->sfbCnt; sfbGrp+=psyOutChannel[ch]->sfbPerGroup) { in FDKaacEnc_adaptMinSnr()
421 for (sfb=0; sfb<psyOutChannel[ch]->maxSfbPerGroup; sfb++) { in FDKaacEnc_adaptMinSnr()
[all …]
/external/icu/icu4c/source/common/
Dustrtrns.cpp46 UChar32 ch; in u_strFromUTF32WithSub() local
75 while((ch=*src) != 0 && in u_strFromUTF32WithSub()
76 ((uint32_t)ch < 0xd800 || (0xe000 <= ch && ch <= 0xffff))) { in u_strFromUTF32WithSub()
79 *pDest++ = (UChar)ch; in u_strFromUTF32WithSub()
85 if(ch != 0) { in u_strFromUTF32WithSub()
95 ch = *src++; in u_strFromUTF32WithSub()
98 if((uint32_t)ch < 0xd800 || (0xe000 <= ch && ch <= 0xffff)) { in u_strFromUTF32WithSub()
100 *pDest++ = (UChar)ch; in u_strFromUTF32WithSub()
105 } else if(0x10000 <= ch && ch <= 0x10ffff) { in u_strFromUTF32WithSub()
107 *pDest++ = U16_LEAD(ch); in u_strFromUTF32WithSub()
[all …]
Ducnv_u8.c109 uint32_t ch, ch2 = 0; in ucnv_toUnicode_UTF8() local
119 ch = cnv->toUnicodeStatus;/*Stores the previously calculated ch from a previous call*/ in ucnv_toUnicode_UTF8()
127 ch = *(mySource++); in ucnv_toUnicode_UTF8()
128 if (ch < 0x80) /* Simple case */ in ucnv_toUnicode_UTF8()
130 *(myTarget++) = (UChar) ch; in ucnv_toUnicode_UTF8()
135 toUBytes[0] = (char)ch; in ucnv_toUnicode_UTF8()
136 inBytes = bytesFromUTF8[ch]; /* lookup current sequence length */ in ucnv_toUnicode_UTF8()
149 ch = (ch << 6) + ch2; in ucnv_toUnicode_UTF8()
156 cnv->toUnicodeStatus = ch; in ucnv_toUnicode_UTF8()
164 ch -= offsetsFromUTF8[inBytes]; in ucnv_toUnicode_UTF8()
[all …]
Ducnv_u32.c53 uint32_t ch, i; in T_UConverter_toUnicode_UTF32_BE() local
60ch = args->converter->toUnicodeStatus - 1;/*Stores the previously calculated ch from a previous ca… in T_UConverter_toUnicode_UTF32_BE()
67 ch = 0; in T_UConverter_toUnicode_UTF32_BE()
71 ch = (ch << 8) | (uint8_t)(*mySource); in T_UConverter_toUnicode_UTF32_BE()
77 args->converter->toUnicodeStatus = ch + 1; in T_UConverter_toUnicode_UTF32_BE()
83 if (ch <= MAXIMUM_UTF && !U_IS_SURROGATE(ch)) { in T_UConverter_toUnicode_UTF32_BE()
85 if (ch <= MAXIMUM_UCS2) in T_UConverter_toUnicode_UTF32_BE()
88 *(myTarget++) = (UChar) ch; in T_UConverter_toUnicode_UTF32_BE()
92 *(myTarget++) = U16_LEAD(ch); in T_UConverter_toUnicode_UTF32_BE()
93 ch = U16_TRAIL(ch); in T_UConverter_toUnicode_UTF32_BE()
[all …]
/external/google-breakpad/src/common/
Dconvert_UTF.c88 UTF32 ch; in ConvertUTF32toUTF16() local
92 ch = *source++; in ConvertUTF32toUTF16()
93 if (ch <= UNI_MAX_BMP) { /* Target is a character <= 0xFFFF */ in ConvertUTF32toUTF16()
95 if (ch >= UNI_SUR_HIGH_START && ch <= UNI_SUR_LOW_END) { in ConvertUTF32toUTF16()
104 *target++ = (UTF16)ch; /* normal case */ in ConvertUTF32toUTF16()
106 } else if (ch > UNI_MAX_LEGAL_UTF32) { in ConvertUTF32toUTF16()
118 ch -= halfBase; in ConvertUTF32toUTF16()
119 *target++ = (UTF16)((ch >> halfShift) + UNI_SUR_HIGH_START); in ConvertUTF32toUTF16()
120 *target++ = (UTF16)((ch & halfMask) + UNI_SUR_LOW_START); in ConvertUTF32toUTF16()
135 UTF32 ch, ch2; in ConvertUTF16toUTF32() local
[all …]
/external/antlr/antlr-3.4/runtime/C/src/
Dantlr3convertutf.c59 UTF32 ch; in ConvertUTF32toUTF16() local
63 ch = *source++; in ConvertUTF32toUTF16()
64 if (ch <= UNI_MAX_BMP) { /* Target is a character <= 0xFFFF */ in ConvertUTF32toUTF16()
66 if (ch >= UNI_SUR_HIGH_START && ch <= UNI_SUR_LOW_END) { in ConvertUTF32toUTF16()
75 *target++ = (UTF16)ch; /* normal case */ in ConvertUTF32toUTF16()
77 } else if (ch > UNI_MAX_LEGAL_UTF32) { in ConvertUTF32toUTF16()
89 ch -= halfBase; in ConvertUTF32toUTF16()
90 *target++ = (UTF16)((ch >> halfShift) + UNI_SUR_HIGH_START); in ConvertUTF32toUTF16()
91 *target++ = (UTF16)((ch & halfMask) + UNI_SUR_LOW_START); in ConvertUTF32toUTF16()
107 UTF32 ch, ch2; in ConvertUTF16toUTF32() local
[all …]
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/
DUTF16Util.java28 int ch = s.charAt(i); in nextCodePoint() local
29 if (0xd800 <= ch && ch <= 0xdbff && ++i < s.length()) { in nextCodePoint()
32 ch = (ch << 10) + ch2 - suppOffset; in nextCodePoint()
35 return ch; in nextCodePoint()
46 int ch = s.charAt(--i); in prevCodePoint() local
47 if (0xdc00 <= ch && ch <= 0xdfff && --i >= 0) { in prevCodePoint()
50 ch = (ch2 << 10) + ch - suppOffset; in prevCodePoint()
53 return ch; in prevCodePoint()
64 int ch = s.charAt(i); in nextCodePoint() local
65 if (0xd800 <= ch && ch <= 0xdbff && ++i < s.length()) { in nextCodePoint()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/
DUTF16Util.java29 int ch = s.charAt(i); in nextCodePoint() local
30 if (0xd800 <= ch && ch <= 0xdbff && ++i < s.length()) { in nextCodePoint()
33 ch = (ch << 10) + ch2 - suppOffset; in nextCodePoint()
36 return ch; in nextCodePoint()
47 int ch = s.charAt(--i); in prevCodePoint() local
48 if (0xdc00 <= ch && ch <= 0xdfff && --i >= 0) { in prevCodePoint()
51 ch = (ch2 << 10) + ch - suppOffset; in prevCodePoint()
54 return ch; in prevCodePoint()
65 int ch = s.charAt(i); in nextCodePoint() local
66 if (0xd800 <= ch && ch <= 0xdbff && ++i < s.length()) { in nextCodePoint()
[all …]
/external/pdfium/xfa/src/fxbarcode/oned/
DBC_OnedCode39Writer.cpp46 FX_WCHAR ch = contents.GetAt(i); in CheckContentValidity() local
47 if ((ch >= (FX_WCHAR)'0' && ch <= (FX_WCHAR)'9') || in CheckContentValidity()
48 (ch >= (FX_WCHAR)'A' && ch <= (FX_WCHAR)'Z') || ch == (FX_WCHAR)'-' || in CheckContentValidity()
49 ch == (FX_WCHAR)'.' || ch == (FX_WCHAR)' ' || ch == (FX_WCHAR)'*' || in CheckContentValidity()
50 ch == (FX_WCHAR)'$' || ch == (FX_WCHAR)'/' || ch == (FX_WCHAR)'+' || in CheckContentValidity()
51 ch == (FX_WCHAR)'%') { in CheckContentValidity()
61 FX_WCHAR ch = contents.GetAt(i); in CheckExtendedContentValidity() local
62 if (ch > 127) { in CheckExtendedContentValidity()
75 FX_WCHAR ch = contents.GetAt(i); in FilterContents() local
76 if (ch == (FX_WCHAR)'*' && (i == 0 || i == contents.GetLength() - 1)) { in FilterContents()
[all …]
/external/icu/icu4c/source/test/perf/charperf/
Dcharperf.h19 typedef void (*CharPerfFn)(UChar32 ch);
20 typedef void (*StdLibCharPerfFn)(wchar_t ch);
119 inline void isAlpha(UChar32 ch) in isAlpha() argument
121 u_isalpha(ch); in isAlpha()
124 inline void isUpper(UChar32 ch) in isUpper() argument
126 u_isupper(ch); in isUpper()
129 inline void isLower(UChar32 ch) in isLower() argument
131 u_islower(ch); in isLower()
134 inline void isDigit(UChar32 ch) in isDigit() argument
136 u_isdigit(ch); in isDigit()
[all …]
/external/llvm/lib/Support/
DConvertUTF.c125 UTF32 ch; in ConvertUTF32toUTF16() local
129 ch = *source++; in ConvertUTF32toUTF16()
130 if (ch <= UNI_MAX_BMP) { /* Target is a character <= 0xFFFF */ in ConvertUTF32toUTF16()
132 if (ch >= UNI_SUR_HIGH_START && ch <= UNI_SUR_LOW_END) { in ConvertUTF32toUTF16()
141 *target++ = (UTF16)ch; /* normal case */ in ConvertUTF32toUTF16()
143 } else if (ch > UNI_MAX_LEGAL_UTF32) { in ConvertUTF32toUTF16()
155 ch -= halfBase; in ConvertUTF32toUTF16()
156 *target++ = (UTF16)((ch >> halfShift) + UNI_SUR_HIGH_START); in ConvertUTF32toUTF16()
157 *target++ = (UTF16)((ch & halfMask) + UNI_SUR_LOW_START); in ConvertUTF32toUTF16()
173 UTF32 ch, ch2; in ConvertUTF16toUTF32() local
[all …]
/external/libevent/
Depoll.c176 const struct event_change *ch) in epoll_apply_one_change() argument
194 if ((ch->read_change & EV_CHANGE_ADD) || in epoll_apply_one_change()
195 (ch->write_change & EV_CHANGE_ADD)) { in epoll_apply_one_change()
200 if (ch->read_change & EV_CHANGE_ADD) { in epoll_apply_one_change()
202 } else if (ch->read_change & EV_CHANGE_DEL) { in epoll_apply_one_change()
204 } else if (ch->old_events & EV_READ) { in epoll_apply_one_change()
207 if (ch->write_change & EV_CHANGE_ADD) { in epoll_apply_one_change()
209 } else if (ch->write_change & EV_CHANGE_DEL) { in epoll_apply_one_change()
211 } else if (ch->old_events & EV_WRITE) { in epoll_apply_one_change()
214 if ((ch->read_change|ch->write_change) & EV_ET) in epoll_apply_one_change()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DArabicShaping.java882 char ch = dest[i]; in shapeToArabicDigitsWithContext() local
883 switch (bdp.getClass(ch)) { in shapeToArabicDigitsWithContext()
892 if (lastStrongWasAL && ch <= '\u0039') { in shapeToArabicDigitsWithContext()
893 dest[i] = (char)(ch + digitBase); in shapeToArabicDigitsWithContext()
927 private static char changeLamAlef(char ch) { in changeLamAlef() argument
928 switch(ch) { in changeLamAlef()
942 private static int specialChar(char ch) { in specialChar() argument
943 if ((ch > '\u0621' && ch < '\u0626') || in specialChar()
944 (ch == '\u0627') || in specialChar()
945 (ch > '\u062E' && ch < '\u0633') || in specialChar()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DArabicShaping.java834 char ch = dest[i]; in shapeToArabicDigitsWithContext() local
835 switch (bdp.getClass(ch)) { in shapeToArabicDigitsWithContext()
844 if (lastStrongWasAL && ch <= '\u0039') { in shapeToArabicDigitsWithContext()
845 dest[i] = (char)(ch + digitBase); in shapeToArabicDigitsWithContext()
879 private static char changeLamAlef(char ch) { in changeLamAlef() argument
880 switch(ch) { in changeLamAlef()
894 private static int specialChar(char ch) { in specialChar() argument
895 if ((ch > '\u0621' && ch < '\u0626') || in specialChar()
896 (ch == '\u0627') || in specialChar()
897 (ch > '\u062E' && ch < '\u0633') || in specialChar()
[all …]
/external/nist-sip/java/gov/nist/core/
DStringTokenizer.java75 public static boolean isHexDigit(char ch) { in isHexDigit() argument
76 return (ch >= 'A' && ch <= 'F') || in isHexDigit()
77 (ch >= 'a' && ch <= 'f') || in isHexDigit()
78 isDigit(ch); in isHexDigit()
81 public static boolean isAlpha(char ch) { in isAlpha() argument
82 if (ch <= 127) { in isAlpha()
83 return ((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z')); in isAlpha()
86 return Character.isLowerCase(ch) || Character.isUpperCase(ch); in isAlpha()
90 public static boolean isDigit(char ch) { in isDigit() argument
91 if (ch <= 127) { in isDigit()
[all …]
/external/c-ares/
Dinet_net_pton.c81 int n, ch, tmp = 0, dirty, bits; in inet_net_pton_ipv4() local
84 ch = *src++; in inet_net_pton_ipv4()
85 if (ch == '0' && (src[0] == 'x' || src[0] == 'X') in inet_net_pton_ipv4()
93 while ((ch = *src++) != '\0' && ISASCII(ch) && ISXDIGIT(ch)) { in inet_net_pton_ipv4()
94 if (ISUPPER(ch)) in inet_net_pton_ipv4()
95 ch = tolower(ch); in inet_net_pton_ipv4()
96 n = aresx_sztosi(strchr(xdigits, ch) - xdigits); in inet_net_pton_ipv4()
113 } else if (ISASCII(ch) && ISDIGIT(ch)) { in inet_net_pton_ipv4()
118 n = aresx_sztosi(strchr(digits, ch) - digits); in inet_net_pton_ipv4()
123 } while ((ch = *src++) != '\0' && in inet_net_pton_ipv4()
[all …]
/external/pdfium/xfa/src/fxfa/src/fm2js/
Dxfa_lexer.cpp44 static FX_BOOL isUnicodeAlpha(uint16_t ch);
69 inline FX_BOOL XFA_FMDChar::isUnicodeAlpha(uint16_t ch) { in isUnicodeAlpha() argument
70 if (ch == 0 || ch == 0x0A || ch == 0x0D || ch == 0x09 || ch == 0x0B || in isUnicodeAlpha()
71 ch == 0x0C || ch == 0x20 || ch == '.' || ch == ';' || ch == '"' || in isUnicodeAlpha()
72 ch == '=' || ch == '<' || ch == '>' || ch == ',' || ch == '(' || in isUnicodeAlpha()
73 ch == ')' || ch == ']' || ch == '[' || ch == '&' || ch == '|' || in isUnicodeAlpha()
74 ch == '+' || ch == '-' || ch == '*' || ch == '/') { in isUnicodeAlpha()
184 uint16_t ch = 0; in Scan() local
187 ch = XFA_FMDChar::get(m_ptr); in Scan()
188 Error(FMERR_UNSUPPORTED_CHAR, ch); in Scan()
[all …]
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/
DFixASCIIControlsReader.java112 private char processChar(char ch) in processChar() argument
117 if (ch == '&') in processChar()
121 return ch; in processChar()
124 if (ch == '#') in processChar()
132 return ch; in processChar()
135 if (ch == 'x') in processChar()
141 else if ('0' <= ch && ch <= '9') in processChar()
143 control = Character.digit(ch, 10); in processChar()
151 return ch; in processChar()
154 if ('0' <= ch && ch <= '9') in processChar()
[all …]
/external/pdfium/xfa/src/fxbarcode/pdf417/
DBC_PDF417HighLevelEncoder.cpp63 FX_WCHAR ch = (FX_WCHAR)(bytes.GetAt(i) & 0xff); in encodeHighLevel() local
64 if (ch == '?' && bytes.GetAt(i) != '?') { in encodeHighLevel()
68 msg += ch; in encodeHighLevel()
158 FX_WCHAR ch = msg.GetAt(startpos + idx); in encodeText() local
161 if (isAlphaUpper(ch)) { in encodeText()
162 if (ch == ' ') { in encodeText()
165 tmp += (FX_WCHAR)(ch - 65); in encodeText()
168 if (isAlphaLower(ch)) { in encodeText()
172 } else if (isMixed(ch)) { in encodeText()
178 tmp += PUNCTUATION[ch]; in encodeText()
[all …]
/external/icu/icu4c/source/layout/
DIndicReordering.h105 CharClass getCharClass(LEUnicode ch) const;
109 inline le_bool isVowelModifier(LEUnicode ch) const;
110 inline le_bool isStressMark(LEUnicode ch) const;
111 inline le_bool isConsonant(LEUnicode ch) const;
112 inline le_bool isReph(LEUnicode ch) const;
113 inline le_bool isVirama(LEUnicode ch) const;
114 inline le_bool isAlLakuna(LEUnicode ch) const;
115 inline le_bool isNukta(LEUnicode ch) const;
116 inline le_bool isVattu(LEUnicode ch) const;
117 inline le_bool isMatra(LEUnicode ch) const;
[all …]
/external/guava/guava-tests/test/com/google/common/xml/
DXmlEscapersTest.java76 for (char ch = 0; ch < 0x20; ch++) { in assertBasicXmlEscaper()
77 if (ch == '\t' || ch == '\n' || ch == '\r') { in assertBasicXmlEscaper()
80 assertEscaping(xmlEscaper, "&#x" + Integer.toHexString(ch).toUpperCase() + ";", ch); in assertBasicXmlEscaper()
82 assertUnescaped(xmlEscaper, ch); in assertBasicXmlEscaper()
86 assertEscaping(xmlEscaper, "\uFFFD", ch); in assertBasicXmlEscaper()
91 for (char ch = 0x20; ch <= 0xFFFD; ch++) { in assertBasicXmlEscaper()
93 if (ch == '&') { in assertBasicXmlEscaper()
94 assertEscaping(xmlEscaper, "&amp;", ch); in assertBasicXmlEscaper()
95 } else if (ch == '<') { in assertBasicXmlEscaper()
96 assertEscaping(xmlEscaper, "&lt;", ch); in assertBasicXmlEscaper()
[all …]
/external/testng/doc/
Dprettify.js133 this.ch = '\0';
138 var ch = s.charAt(i);
139 if ('&' == ch) {
145 ch = '<';
147 ch = '>';
149 ch = '"';
151 ch = '\'';
153 ch = '&';
160 this.ch = ch;
161 return this.ch;
[all …]

12345678910>>...67