Home
last modified time | relevance | path

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

12345678910>>...84

/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.java49 for (int ch = MIN_; ch < MAX_; ch ++) { in testDigit()
50 UCharacter.digit(ch, 10); in testDigit()
64 for (char ch = (char)MIN_; ch < (char)MAX_; ch ++) {
65 Character.digit(ch, 10);
79 for (int ch = MIN_; ch < MAX_; ch ++) {
80 UCharacter.getNumericValue(ch);
94 for (char ch = (char)MIN_; ch < (char)MAX_; ch ++) {
95 Character.getNumericValue(ch);
109 for (int ch = MIN_; ch < MAX_; ch ++) {
110 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 …]
/external/icu/icu4c/source/common/
Dustrtrns.cpp48 UChar32 ch; in u_strFromUTF32WithSub() local
77 while((ch=*src) != 0 && in u_strFromUTF32WithSub()
78 ((uint32_t)ch < 0xd800 || (0xe000 <= ch && ch <= 0xffff))) { in u_strFromUTF32WithSub()
81 *pDest++ = (UChar)ch; in u_strFromUTF32WithSub()
87 if(ch != 0) { in u_strFromUTF32WithSub()
97 ch = *src++; in u_strFromUTF32WithSub()
100 if((uint32_t)ch < 0xd800 || (0xe000 <= ch && ch <= 0xffff)) { in u_strFromUTF32WithSub()
102 *pDest++ = (UChar)ch; in u_strFromUTF32WithSub()
107 } else if(0x10000 <= ch && ch <= 0x10ffff) { in u_strFromUTF32WithSub()
109 *pDest++ = U16_LEAD(ch); in u_strFromUTF32WithSub()
[all …]
Ducnv_u8.c111 uint32_t ch, ch2 = 0; in ucnv_toUnicode_UTF8() local
121 ch = cnv->toUnicodeStatus;/*Stores the previously calculated ch from a previous call*/ in ucnv_toUnicode_UTF8()
129 ch = *(mySource++); in ucnv_toUnicode_UTF8()
130 if (ch < 0x80) /* Simple case */ in ucnv_toUnicode_UTF8()
132 *(myTarget++) = (UChar) ch; in ucnv_toUnicode_UTF8()
137 toUBytes[0] = (char)ch; in ucnv_toUnicode_UTF8()
138 inBytes = bytesFromUTF8[ch]; /* lookup current sequence length */ in ucnv_toUnicode_UTF8()
151 ch = (ch << 6) + ch2; in ucnv_toUnicode_UTF8()
158 cnv->toUnicodeStatus = ch; in ucnv_toUnicode_UTF8()
166 ch -= offsetsFromUTF8[inBytes]; in ucnv_toUnicode_UTF8()
[all …]
/external/unicode/
DConvertUTF.c68 UTF32 ch; in ConvertUTF32toUTF16() local
72 ch = *source++; in ConvertUTF32toUTF16()
73 if (ch <= UNI_MAX_BMP) { /* Target is a character <= 0xFFFF */ in ConvertUTF32toUTF16()
75 if (ch >= UNI_SUR_HIGH_START && ch <= UNI_SUR_LOW_END) { in ConvertUTF32toUTF16()
84 *target++ = (UTF16)ch; /* normal case */ in ConvertUTF32toUTF16()
86 } else if (ch > UNI_MAX_LEGAL_UTF32) { in ConvertUTF32toUTF16()
98 ch -= halfBase; in ConvertUTF32toUTF16()
99 *target++ = (UTF16)((ch >> halfShift) + UNI_SUR_HIGH_START); in ConvertUTF32toUTF16()
100 *target++ = (UTF16)((ch & halfMask) + UNI_SUR_LOW_START); in ConvertUTF32toUTF16()
116 UTF32 ch, ch2; in ConvertUTF16toUTF32() local
[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.java30 int ch = s.charAt(i); in nextCodePoint() local
31 if (0xd800 <= ch && ch <= 0xdbff && ++i < s.length()) { in nextCodePoint()
34 ch = (ch << 10) + ch2 - suppOffset; in nextCodePoint()
37 return ch; in nextCodePoint()
48 int ch = s.charAt(--i); in prevCodePoint() local
49 if (0xdc00 <= ch && ch <= 0xdfff && --i >= 0) { in prevCodePoint()
52 ch = (ch2 << 10) + ch - suppOffset; in prevCodePoint()
55 return ch; in prevCodePoint()
66 int ch = s.charAt(i); in nextCodePoint() local
67 if (0xd800 <= ch && ch <= 0xdbff && ++i < s.length()) { in nextCodePoint()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/
DUTF16Util.java31 int ch = s.charAt(i); in nextCodePoint() local
32 if (0xd800 <= ch && ch <= 0xdbff && ++i < s.length()) { in nextCodePoint()
35 ch = (ch << 10) + ch2 - suppOffset; in nextCodePoint()
38 return ch; in nextCodePoint()
49 int ch = s.charAt(--i); in prevCodePoint() local
50 if (0xdc00 <= ch && ch <= 0xdfff && --i >= 0) { in prevCodePoint()
53 ch = (ch2 << 10) + ch - suppOffset; in prevCodePoint()
56 return ch; in prevCodePoint()
67 int ch = s.charAt(i); in nextCodePoint() local
68 if (0xd800 <= ch && ch <= 0xdbff && ++i < s.length()) { in nextCodePoint()
[all …]
/external/libcups/cups/
Dstring-private.h96 _cups_isalnum(int ch) /* I - Character to test */ in _cups_isalnum() argument
98 return ((ch >= '0' && ch <= '9') || in _cups_isalnum()
99 (ch >= 'A' && ch <= 'Z') || in _cups_isalnum()
100 (ch >= 'a' && ch <= 'z')); in _cups_isalnum()
104 _cups_isalpha(int ch) /* I - Character to test */ in _cups_isalpha() argument
106 return ((ch >= 'A' && ch <= 'Z') || in _cups_isalpha()
107 (ch >= 'a' && ch <= 'z')); in _cups_isalpha()
111 _cups_islower(int ch) /* I - Character to test */ in _cups_islower() argument
113 return (ch >= 'a' && ch <= 'z'); in _cups_islower()
117 _cups_isspace(int ch) /* I - Character to test */ in _cups_isspace() argument
[all …]
Dtranscode.c121 int ch; /* Character from string */ in cupsCharsetToUTF8() local
129 ch = *src++ & 255; in cupsCharsetToUTF8()
131 if (ch & 128) in cupsCharsetToUTF8()
133 *destptr++ = (cups_utf8_t)(0xc0 | (ch >> 6)); in cupsCharsetToUTF8()
134 *destptr++ = (cups_utf8_t)(0x80 | (ch & 0x3f)); in cupsCharsetToUTF8()
137 *destptr++ = (cups_utf8_t)ch; in cupsCharsetToUTF8()
242 int ch, /* Character from string */ in cupsUTF8ToCharset() local
251 ch = *src++; in cupsUTF8ToCharset()
253 if ((ch & 0xe0) == 0xc0) in cupsUTF8ToCharset()
255 ch = ((ch & 0x1f) << 6) | (*src++ & 0x3f); in cupsUTF8ToCharset()
[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/icu/icu4c/source/test/perf/charperf/
Dcharperf.h23 typedef void (*CharPerfFn)(UChar32 ch);
24 typedef void (*StdLibCharPerfFn)(wchar_t ch);
123 inline void isAlpha(UChar32 ch) in isAlpha() argument
125 u_isalpha(ch); in isAlpha()
128 inline void isUpper(UChar32 ch) in isUpper() argument
130 u_isupper(ch); in isUpper()
133 inline void isLower(UChar32 ch) in isLower() argument
135 u_islower(ch); in isLower()
138 inline void isDigit(UChar32 ch) in isDigit() argument
140 u_isdigit(ch); in isDigit()
[all …]
/external/slf4j/log4j-over-slf4j/compatibility/lib/
Dlogback-core-0.9.8-SNAPSHOT.jar ... -INF/ META-INF/MANIFEST.MF ch/ ch/qos/ ch/qos/logback
Dlogback-classic-0.9.8-SNAPSHOT.jar ... -INF/ META-INF/MANIFEST.MF ch/ ch/qos/ ch/qos/logback
/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/pdfium/xfa/fxfa/fm2js/
Dxfa_lexer.cpp45 static bool isUnicodeAlpha(uint16_t ch);
73 inline bool XFA_FMDChar::isUnicodeAlpha(uint16_t ch) { in isUnicodeAlpha() argument
74 if (ch == 0 || ch == 0x0A || ch == 0x0D || ch == 0x09 || ch == 0x0B || in isUnicodeAlpha()
75 ch == 0x0C || ch == 0x20 || ch == '.' || ch == ';' || ch == '"' || in isUnicodeAlpha()
76 ch == '=' || ch == '<' || ch == '>' || ch == ',' || ch == '(' || in isUnicodeAlpha()
77 ch == ')' || ch == ']' || ch == '[' || ch == '&' || ch == '|' || in isUnicodeAlpha()
78 ch == '+' || ch == '-' || ch == '*' || ch == '/') { in isUnicodeAlpha()
174 uint16_t ch = 0; in Scan() local
177 ch = XFA_FMDChar::get(m_ptr); in Scan()
178 Error(kFMErrUnsupportedChar, ch); in Scan()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DArabicShaping.java887 char ch = dest[i]; in shapeToArabicDigitsWithContext() local
888 switch (bdp.getClass(ch)) { in shapeToArabicDigitsWithContext()
897 if (lastStrongWasAL && ch <= '\u0039') { in shapeToArabicDigitsWithContext()
898 dest[i] = (char)(ch + digitBase); in shapeToArabicDigitsWithContext()
932 private static char changeLamAlef(char ch) { in changeLamAlef() argument
933 switch(ch) { in changeLamAlef()
947 private static int specialChar(char ch) { in specialChar() argument
948 if ((ch > '\u0621' && ch < '\u0626') || in specialChar()
949 (ch == '\u0627') || in specialChar()
950 (ch > '\u062E' && ch < '\u0633') || in specialChar()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DArabicShaping.java839 char ch = dest[i]; in shapeToArabicDigitsWithContext() local
840 switch (bdp.getClass(ch)) { in shapeToArabicDigitsWithContext()
849 if (lastStrongWasAL && ch <= '\u0039') { in shapeToArabicDigitsWithContext()
850 dest[i] = (char)(ch + digitBase); in shapeToArabicDigitsWithContext()
884 private static char changeLamAlef(char ch) { in changeLamAlef() argument
885 switch(ch) { in changeLamAlef()
899 private static int specialChar(char ch) { in specialChar() argument
900 if ((ch > '\u0621' && ch < '\u0626') || in specialChar()
901 (ch == '\u0627') || in specialChar()
902 (ch > '\u062E' && ch < '\u0633') || in specialChar()
[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/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/pdfium/xfa/fxbarcode/pdf417/
DBC_PDF417HighLevelEncoder.cpp67 FX_WCHAR ch = (FX_WCHAR)(bytes.GetAt(i) & 0xff); in encodeHighLevel() local
68 if (ch == '?' && bytes.GetAt(i) != '?') { in encodeHighLevel()
72 msg += ch; in encodeHighLevel()
160 FX_WCHAR ch = msg.GetAt(startpos + idx); in encodeText() local
163 if (isAlphaUpper(ch)) { in encodeText()
164 if (ch == ' ') { in encodeText()
167 tmp += (FX_WCHAR)(ch - 65); in encodeText()
170 if (isAlphaLower(ch)) { in encodeText()
174 } else if (isMixed(ch)) { in encodeText()
180 tmp += PUNCTUATION[ch]; in encodeText()
[all …]
/external/pdfium/xfa/fxbarcode/oned/
DBC_OnedCode39Writer.cpp51 FX_WCHAR ch = contents.GetAt(i); in CheckContentValidity() local
52 if ((ch >= (FX_WCHAR)'0' && ch <= (FX_WCHAR)'9') || in CheckContentValidity()
53 (ch >= (FX_WCHAR)'A' && ch <= (FX_WCHAR)'Z') || ch == (FX_WCHAR)'-' || in CheckContentValidity()
54 ch == (FX_WCHAR)'.' || ch == (FX_WCHAR)' ' || ch == (FX_WCHAR)'*' || in CheckContentValidity()
55 ch == (FX_WCHAR)'$' || ch == (FX_WCHAR)'/' || ch == (FX_WCHAR)'+' || in CheckContentValidity()
56 ch == (FX_WCHAR)'%') { in CheckContentValidity()
68 FX_WCHAR ch = contents.GetAt(i); in FilterContents() local
69 if (ch == (FX_WCHAR)'*' && (i == 0 || i == contents.GetLength() - 1)) { in FilterContents()
72 if (ch > 175) { in FilterContents()
76 ch = Upper(ch); in FilterContents()
[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 …]

12345678910>>...84