Home
last modified time | relevance | path

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

123

/packages/inputmethods/PinyinIME/jni/share/
Dspellingtrie.cpp121 char ch = kHalfId2Sc_[*splid]; in if_valid_id_update() local
122 if (ch > 'Z') { in if_valid_id_update()
125 if (szm_is_enabled(ch)) { in if_valid_id_update()
127 } else if (is_yunmu_char(ch)) { in if_valid_id_update()
170 char ch = kHalfId2Sc_[splid]; in is_half_id_yunmu() local
172 if (ch >= 'a') { in is_half_id_yunmu()
176 return char_flags_[ch - 'A'] & kHalfIdYunmuMask; in is_half_id_yunmu()
179 bool SpellingTrie::is_shengmu_char(char ch) const { in is_shengmu_char()
180 return char_flags_[ch - 'A'] & kHalfIdShengmuMask; in is_shengmu_char()
183 bool SpellingTrie::is_yunmu_char(char ch) const { in is_yunmu_char()
[all …]
/packages/apps/Dialer/src/com/android/dialer/dialpad/
DSmartDialNameMatcher.java444 char ch = number.charAt(i); in normalizeNumber() local
445 if (ch >= '0' && ch <= '9') { in normalizeNumber()
446 s.append(ch); in normalizeNumber()
506 char ch = phoneNumber.charAt(i); in matchesNumberWithOffset() local
507 if (ch >= '0' && ch <= '9') { in matchesNumberWithOffset()
508 if (ch != query.charAt(queryAt)) { in matchesNumberWithOffset()
593 char ch = displayName.charAt(nameStart); in matchesCombination() local
595 ch = remapAccentedChars(ch); in matchesCombination()
596 if (isLowercaseLatinLetterOrDigit(ch)) { in matchesCombination()
597 if (ch >= 'a' && ch <= 'z') { in matchesCombination()
[all …]
DSmartDialTrie.java116 char ch = prefix.charAt(i); in getAllWithPrefix() local
117 current = current.getChild(ch, false); in getAllWithPrefix()
220 final char ch = number.charAt(i); in getOffsetForNANPNumbers() local
221 if (ch >= '0' && ch <= '9') { in getOffsetForNANPNumbers()
224 if (ch == '1') { in getOffsetForNANPNumbers()
310 char ch; in putNumber()
312 ch = phoneNumber.charAt(i); in putNumber()
313 if (ch >= '0' && ch <= '9') { in putNumber()
314 current = current.getChild(ch, true); in putNumber()
/packages/inputmethods/LatinIME/dictionaries/
Dcs_wordlist.combined.gz
/packages/apps/Email/src/org/apache/james/mime4j/codec/
DEncoderUtil.java72 for (char ch = 33; ch < 127; ch++) { in initChars()
73 if (specials.indexOf(ch) == -1) { in initChars()
74 bs.set(ch); in initChars()
225 char ch = text.charAt(idx); in hasToBeEncoded() local
226 if (ch == '\t' || ch == ' ') { in hasToBeEncoded()
238 if (ch < 32 || ch >= 127) { in hasToBeEncoded()
444 char ch = str.charAt(idx); in isToken() local
445 if (!TOKEN_CHARS.get(ch)) in isToken()
459 char ch = str.charAt(idx); in isAtomPhrase() local
460 if (ATEXT_CHARS.get(ch)) { in isAtomPhrase()
[all …]
/packages/apps/Exchange/exchange2/src/com/android/exchange/utility/
DUriCodec.java47 char ch = uri.charAt(i); in validate() local
48 if ((ch >= 'a' && ch <= 'z') in validate()
49 || (ch >= 'A' && ch <= 'Z') in validate()
50 || (ch >= '0' && ch <= '9') in validate()
51 || isRetained(ch)) { in validate()
53 } else if (ch == '%') { in validate()
78 char ch = s.charAt(i); in validateSimple() local
79 if (!((ch >= 'a' && ch <= 'z') in validateSimple()
80 || (ch >= 'A' && ch <= 'Z') in validateSimple()
81 || (ch >= '0' && ch <= '9') in validateSimple()
[all …]
DSimpleIcsWriter.java142 char ch = s.charAt(i); in escapeTextValue() local
143 if (ch == '\n') { in escapeTextValue()
145 } else if (ch == '\r') { in escapeTextValue()
147 } else if (ch == ',' || ch == ';' || ch == '\\') { in escapeTextValue()
149 sb.append(ch); in escapeTextValue()
151 sb.append(ch); in escapeTextValue()
/packages/apps/Email/src/com/android/email/mail/store/imap/
DImapResponseParser.java227 final int ch = readByte(); in readUntil() local
228 if (ch != end) { in readUntil()
229 mBufferReadUntil.append((char) ch); in readUntil()
259 final int ch = peek(); in parseResponse() local
260 if (ch == '+') { // Continuation request in parseResponse()
274 if (ch == '*') { in parseResponse()
366 final int ch = peek(); in parseBareString() local
369 if (ch == '(' || ch == ')' || ch == '{' || ch == ' ' || in parseBareString()
371 ch == ']' || in parseBareString()
376 ch == '%' || in parseBareString()
[all …]
/packages/apps/Email/src/com/beetstra/jutf7/
DUTF7StyleCharsetEncoder.java148 char ch = in.get(); in encodeLoop() local
149 if (cs.canEncodeDirectly(ch)) { in encodeLoop()
150 unshift(out, ch); in encodeLoop()
151 out.put((byte)ch); in encodeLoop()
152 } else if (!base64mode && ch == shift) { in encodeLoop()
156 encodeBase64(ch, out); in encodeLoop()
180 private void unshift(ByteBuffer out, char ch) { in unshift() argument
185 if (base64.contains(ch) || ch == unshift || strict) in unshift()
203 private void encodeBase64(char ch, ByteBuffer out) { in encodeBase64() argument
210 sextet += (ch >> bitsToOutput); in encodeBase64()
[all …]
DBase64Util.java75 final char ch = this.alphabet[i]; in Base64Util() local
76 if (ch >= 128) in Base64Util()
77 throw new IllegalArgumentException("invalid character in alphabet: " + ch); in Base64Util()
78 inverseAlphabet[ch] = i; in Base64Util()
90 int getSextet(final byte ch) { in getSextet() argument
91 if (ch >= 128) in getSextet()
93 return inverseAlphabet[ch]; in getSextet()
102 boolean contains(final char ch) { in contains() argument
103 if (ch >= 128) in contains()
105 return inverseAlphabet[ch] >= 0; in contains()
DModifiedUTF7Charset.java44 boolean canEncodeDirectly(char ch) { in canEncodeDirectly() argument
45 if (ch == shift()) in canEncodeDirectly()
47 return ch >= 0x20 && ch <= 0x7E; in canEncodeDirectly()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPhotoFallbackEffect.java110 float ch = s.height() * scale; in drawEntry() local
115 mTarget.set(cx - ch / 2, cy - ch / 2, cx + ch / 2, cy + ch / 2); in drawEntry()
123 mTarget.set(cx - cw / 2, cy - ch / 2, cx - ch / 2, cy + ch / 2); in drawEntry()
128 mTarget.set(cx + ch / 2, cy - ch / 2, cx + cw / 2, cy + ch / 2); in drawEntry()
143 mTarget.set(cx - cw / 2, cy - ch / 2, cx + cw / 2, cy - cw / 2); in drawEntry()
148 mTarget.set(cx - cw / 2, cy + cw / 2, cx + cw / 2, cy + ch / 2); in drawEntry()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DHelpers.java633 char ch; in replaceInvalidVfatCharacters() local
636 ch = filename.charAt(i); in replaceInvalidVfatCharacters()
637 if ((START_CTRLCODE <= ch && in replaceInvalidVfatCharacters()
638 ch <= END_CTRLCODE) || in replaceInvalidVfatCharacters()
639 ch == QUOTEDBL || in replaceInvalidVfatCharacters()
640 ch == ASTERISK || in replaceInvalidVfatCharacters()
641 ch == SLASH || in replaceInvalidVfatCharacters()
642 ch == COLON || in replaceInvalidVfatCharacters()
643 ch == LESS || in replaceInvalidVfatCharacters()
644 ch == GREATER || in replaceInvalidVfatCharacters()
[all …]
/packages/inputmethods/PinyinIME/jni/include/
Dspellingtrie.h135 bool is_shengmu_char(char ch) const;
138 bool is_yunmu_char(char ch) const;
157 inline static bool is_valid_spl_char(char ch) { in is_valid_spl_char() argument
158 return (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z'); in is_valid_spl_char()
193 bool is_szm_char(char ch) const;
197 bool szm_is_enabled(char ch) const;
208 bool is_szm_enabled(char ch) const;
/packages/apps/VoiceDialer/src/com/android/voicedialer/
DCommandRecognizerEngine.java407 char ch = name.charAt(i); in scrubName() local
408 if (ch < ' ' || '~' < ch) { in scrubName()
410 nm[i] = mLatin1Base <= ch && ch < mLatin1Base + mLatin1Letters.length ? in scrubName()
411 mLatin1Letters[ch - mLatin1Base] : ' '; in scrubName()
433 char ch = name.charAt(i); in scrubName() local
434 if (('a' <= ch && ch <= 'z') || ('A' <= ch && ch <= 'Z') || ('0' <= ch && ch <= '9')) { in scrubName()
/packages/apps/Email/src/org/apache/commons/io/
DIOUtils.java1224 int ch = input1.read(); in contentEquals() local
1225 while (-1 != ch) { in contentEquals()
1227 if (ch != ch2) { in contentEquals()
1230 ch = input1.read(); in contentEquals()
1261 int ch = input1.read(); in contentEquals() local
1262 while (-1 != ch) { in contentEquals()
1264 if (ch != ch2) { in contentEquals()
1267 ch = input1.read(); in contentEquals()
/packages/apps/Email/src/org/apache/james/mime4j/field/datetime/parser/
DTokenMgrError.java57 char ch; in addEscapes() local
88 if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) { in addEscapes()
89 String s = "0000" + Integer.toString(ch, 16); in addEscapes()
92 retval.append(ch); in addEscapes()
DParseException.java164 char ch; in add_escapes() local
195 if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) { in add_escapes()
196 String s = "0000" + Integer.toString(ch, 16); in add_escapes()
199 retval.append(ch); in add_escapes()
/packages/apps/Email/src/org/apache/james/mime4j/field/address/parser/
DTokenMgrError.java57 char ch; in addEscapes() local
88 if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) { in addEscapes()
89 String s = "0000" + Integer.toString(ch, 16); in addEscapes()
92 retval.append(ch); in addEscapes()
DParseException.java164 char ch; in add_escapes() local
195 if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) { in add_escapes()
196 String s = "0000" + Integer.toString(ch, 16); in add_escapes()
199 retval.append(ch); in add_escapes()
/packages/apps/Email/src/org/apache/james/mime4j/field/contenttype/parser/
DTokenMgrError.java57 char ch; in addEscapes() local
88 if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) { in addEscapes()
89 String s = "0000" + Integer.toString(ch, 16); in addEscapes()
92 retval.append(ch); in addEscapes()
DParseException.java164 char ch; in add_escapes() local
195 if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) { in add_escapes()
196 String s = "0000" + Integer.toString(ch, 16); in add_escapes()
199 retval.append(ch); in add_escapes()
/packages/inputmethods/LatinIME/tools/maketext/src/com/android/inputmethod/latin/maketext/
DStringResourceMap.java97 public void comment(char[] ch, int start, int length) { in comment() argument
98 mComment.append(ch, start, length); in comment()
99 if (ch[start + length - 1] != '\n') { in comment()
115 public void characters(char[] ch, int start, int length) { in characters() argument
116 mValue.append(ch, start, length); in characters()
/packages/apps/Calendar/src/com/android/calendar/
DUtils.java1857 char ch = spanText.charAt(i); in extendedLinkify() local
1858 if (ch == '+' || Character.isDigit(ch)) { in extendedLinkify()
1859 dialBuilder.append(ch); in extendedLinkify()
1986 char ch; in findNanpMatchEnd() local
1988 ch = text.charAt(curPos); in findNanpMatchEnd()
1990 ch = 27; // fake invalid symbol at end to trigger loop break in findNanpMatchEnd()
1993 if (Character.isDigit(ch)) { in findNanpMatchEnd()
1995 firstDigit = ch; in findNanpMatchEnd()
2002 } else if (Character.isWhitespace(ch)) { in findNanpMatchEnd()
2012 } else if (NANP_ALLOWED_SYMBOLS.indexOf(ch) == -1) { in findNanpMatchEnd()
/packages/apps/Email/src/org/apache/commons/io/input/
DTeeInputStream.java106 int ch = super.read(); in read() local
107 if (ch != -1) { in read()
108 branch.write(ch); in read()
110 return ch; in read()

123