Home
last modified time | relevance | path

Searched refs:charAt (Results 1 – 25 of 173) sorted by relevance

1234567

/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/
DHtmlParser.java324 char ch = html.charAt(pos); in scanText()
327 ch = html.charAt(pos + 1); in scanText()
405 char ch = html.charAt(pos); in scanName()
473 X.assertTrue(html.charAt(start) != '>'); in scanName()
481 char ch = html.charAt(pos); in scanName()
505 if ((pos == end) || (html.charAt(pos) != '=')) { in scanValue()
521 char ch = html.charAt(pos); in scanValue()
526 while (pos < end && html.charAt(pos) != ch) { in scanValue()
537 ch = html.charAt(pos); in scanValue()
567 if (!Character.isWhitespace(html.charAt(pos))) { in skipSpaces()
[all …]
/packages/apps/ExactCalculator/src/com/android/calculator2/
DEvaluator.java453 if (oldDigs.charAt(oldLen - 1) != '9') { in unflipZeroes()
459 if (newDigs.charAt(oldLastInNew) != '0') { in unflipZeroes()
559 for (i = -1; decIndex + i > 0 && cache.charAt(decIndex + i) == '0'; --i) { } in getLsdOffset()
581 final int negative = cache.charAt(0) == '-' ? 1 : 0; in getPreferredPrec()
636 final int negative = cache.charAt(0) == '-' ? 1 : 0; in getShortString()
683 return negativeSign + cache.charAt(msdIndex) + "." in getShortString()
693 return negativeSign + cache.charAt(msdIndex) + "." in getShortString()
707 char c = s.charAt(i); in getMsdIndexOf()
713 if (nonzeroIndex >= 0 && (nonzeroIndex < len - 1 || s.charAt(nonzeroIndex) != '1')) { in getMsdIndexOf()
729 if (mResultString.charAt(mMsdIndex) == '0') { in getMsdIndex()
[all …]
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
DCharMatcher.java440 return is(sequence.charAt(0));
442 final char match1 = sequence.charAt(0);
443 final char match2 = sequence.charAt(1);
729 if (!matches(sequence.charAt(i))) {
767 if (matches(sequence.charAt(i))) {
794 if (matches(sequence.charAt(i))) {
813 if (matches(sequence.charAt(i))) {
826 if (matches(sequence.charAt(i))) {
939 return replaceFrom(sequence, replacement.charAt(0));
984 if (!matches(sequence.charAt(first))) {
[all …]
DStringUtil.java160 char c = chars.charAt(i); in indexOfChars()
173 char c = string.charAt(i); in indexOfChars()
283 char ch = s.charAt(trimCount); in trimStart()
324 char ch = s.charAt(s.length() - trimCount - 1); in trimEnd()
687 if (chars.indexOf(str.charAt(pos)) < 0) { in lastIndexNotOf()
764 char c = str.charAt(i); in hexToBytes()
872 char c = s.charAt(i++); in unescapeCString()
874 c = s.charAt(i++); in unescapeCString()
889 if ((c == 'x') && (i < len) && isHex(s.charAt(i))) { in unescapeCString()
891 int v = hexValue(s.charAt(i++)); in unescapeCString()
[all …]
DUnicodeEscaper.java282 completeSurrogatePair(csq.charAt(start++)); in escape()
288 char last = csq.charAt(end - 1); in escape()
391 char c1 = seq.charAt(index++); in codePointAt()
402 char c2 = seq.charAt(index); in codePointAt()
DSplitter.java173 if (toSplit.charAt(i + p) != separator.charAt(i)) {
386 while (start < end && trimmer.matches(toSplit.charAt(start))) {
389 while (end > start && trimmer.matches(toSplit.charAt(end - 1))) {
/packages/apps/Dialer/src/com/android/dialer/dialpad/
DSmartDialNameMatcher.java109 char ch = number.charAt(i); in normalizeNumber()
207 char ch = phoneNumber.charAt(i); in matchesNumberWithOffset()
209 if (ch != query.charAt(queryAt)) { in matchesNumberWithOffset()
297 char ch = displayName.charAt(nameStart); in matchesCombination()
304 if (ch != query.charAt(queryStart)) { in matchesCombination()
322 displayName.charAt(nameStart - 1)))) { in matchesCombination()
326 displayName.charAt(nameStart)))) { in matchesCombination()
356 displayName.charAt(j)))) { in matchesCombination()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactLookupKey.java135 c = string.charAt(offset++); in parse()
166 c = string.charAt(offset++); in parse()
173 c = string.charAt(offset); in parse()
189 c = string.charAt(offset++); in parse()
205 c = string.charAt(offset++); in parse()
221 c = string.charAt(offset); in parse()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DCapsModeUtils.java135 final char c = cs.charAt(i - 1); in getCapsMode()
154 prevChar = cs.charAt(j - 1); in getCapsMode()
167 prevChar = cs.charAt(j); in getCapsMode()
206 final char c = cs.charAt(j - 1); in getCapsMode()
215 char c = cs.charAt(--j); in getCapsMode()
279 c = cs.charAt(--j); in getCapsMode()
/packages/services/Telephony/src/org/apache/james/mime4j/
DMimeStreamParser.java259 while (pos < sb.length() && sb.charAt(pos) != '\r') { in parseHeader()
262 if (pos < sb.length() - 1 && sb.charAt(pos + 1) != '\n') { in parseHeader()
267 if (pos >= sb.length() - 2 || fieldChars.get(sb.charAt(pos + 2))) { in parseHeader()
281 if (index != -1 && fieldChars.get(field.charAt(0))) { in parseHeader()
285 if (!fieldChars.get(fieldName.charAt(i))) { in parseHeader()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/
DMimeStreamParser.java259 while (pos < sb.length() && sb.charAt(pos) != '\r') { in parseHeader()
262 if (pos < sb.length() - 1 && sb.charAt(pos + 1) != '\n') { in parseHeader()
267 if (pos >= sb.length() - 2 || fieldChars.get(sb.charAt(pos + 2))) { in parseHeader()
281 if (index != -1 && fieldChars.get(field.charAt(0))) { in parseHeader()
285 if (!fieldChars.get(fieldName.charAt(i))) { in parseHeader()
/packages/apps/UnifiedEmail/src/com/android/emailcommon/utility/
DTextUtilities.java351 char c = htmlText.charAt(i); in findTagEnd()
384 char c = text.charAt(i); in makeSnippetFromText()
388 char peek = text.charAt(i + 1); in makeSnippetFromText()
469 if (text.charAt(i) == ';') { in stripHtmlEntity()
484 } else if ((entityLength > 2) && (entity.charAt(1) == '#')) { in stripHtmlEntity()
489 if ((entity.charAt(2) == 'x') && (entityLength > 3)) { in stripHtmlEntity()
593 char chr = text.charAt(i); in highlightTerms()
598 char peek = text.charAt(i + 1); in highlightTerms()
622 chr = text.charAt(i); in highlightTerms()
645 if (chrLowerCase == t.mTermLowerCase.charAt(t.mMatchLength)) { in highlightTerms()
/packages/apps/Email/tests/src/com/android/email/
DVendorPolicyLoaderTest.java122 assertEquals("\"", id.charAt(0)); in testGetImapIdValues()
123 assertEquals("\"", id.charAt(id.length()-1)); in testGetImapIdValues()
135 assertTrue(elements[i+1].charAt(0) != ' '); in testGetImapIdValues()
137 assertTrue(elements[i+3].charAt(0) != ' '); in testGetImapIdValues()
/packages/apps/ContactsCommon/src/com/android/contacts/common/format/
DFormatUtils.java156 while (i < textLength && !Character.isLetterOrDigit(text.charAt(i))) { in indexOfWordPrefix()
167 if (Character.toUpperCase(text.charAt(i + j)) != prefix.charAt(j)) { in indexOfWordPrefix()
176 while (i < textLength && Character.isLetterOrDigit(text.charAt(i))) { in indexOfWordPrefix()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DPath.java129 if (s.charAt(0) != '/') { in split()
138 char c = s.charAt(j); in split()
158 if (s.charAt(0) != '{' || s.charAt(n-1) != '}') { in splitSequence()
167 char c = s.charAt(j); in splitSequence()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DUtf8ByteLengthFilter.java52 char c = source.charAt(i); in filter()
60 char c = dest.charAt(i); in filter()
72 char c = source.charAt(i); in filter()
/packages/apps/UnifiedEmail/src/org/apache/commons/io/
DFileSystemUtils.java218 if (path.length() > 2 && path.charAt(1) == ':') { in freeSpaceWindows()
261 char c = line.charAt(j); in parseDir()
271 char c = line.charAt(j); in parseDir()
289 if (buf.charAt(k) == ',' || buf.charAt(k) == '.') { in parseDir()
/packages/apps/Calculator/src/com/android/calculator2/
DCalculatorExpressionBuilder.java48 switch (appendExpr.charAt(0)) { in replace()
66 while (start > 0 && "+-*/".indexOf(expr.charAt(start - 1)) != -1) { in replace()
72 if (start > 0 && "+-".indexOf(expr.charAt(start - 1)) != -1) { in replace()
/packages/apps/Email/src/com/android/email/mail/transport/
DSmtpSender.java259 while (line.length() >= 4 && line.charAt(3) == '-') { in executeSensitiveCommand()
265 char c = result.charAt(0); in executeSensitiveCommand()
304 if (me.getMessage().length() > 1 && me.getMessage().charAt(1) == '3') { in saslAuthLogin()
319 if (me.getMessage().length() > 1 && me.getMessage().charAt(1) == '3') { in saslAuthPlain()
347 if (me.getMessage().length() > 1 && me.getMessage().charAt(1) == '3') { in saslAuthOAuth()
/packages/apps/Messaging/src/com/android/messaging/util/
DEmailAddress.java149 if (host.charAt(0) == '.') { in isValidInternal()
156 if (host.charAt(host.length() - 1) == '.' && secondDot == -1) { in isValidInternal()
201 final char ch = user.charAt(i); in isQuotedUserValid()
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
DSearchUtil.java59 if (contents.charAt(start) == '\n') { in findMatchingLine()
66 if (contents.charAt(end) == '\n') { in findMatchingLine()
190 if (Character.isLowSurrogate(query.charAt(end))) { in cleanStartAndEndOfSearchQuery()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/codec/
DEncoderUtil.java225 char ch = text.charAt(idx); in hasToBeEncoded()
444 char ch = str.charAt(idx); in isToken()
459 char ch = str.charAt(idx); in isAtomPhrase()
483 char ch = str.charAt(idx); in isDotAtomText()
597 char ch = text.charAt(index); in determineCharset()
/packages/services/Telephony/src/org/apache/james/mime4j/codec/
DEncoderUtil.java225 char ch = text.charAt(idx); in hasToBeEncoded()
444 char ch = str.charAt(idx); in isToken()
459 char ch = str.charAt(idx); in isAtomPhrase()
483 char ch = str.charAt(idx); in isDotAtomText()
597 char ch = text.charAt(index); in determineCharset()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DCandidateFilter.java48 if (str.charAt(i) < 0x20 || 0x7E < str.charAt(i)) { in isAllowed()
/packages/apps/ContactsCommon/src/com/android/contacts/common/compat/
DPhoneNumberUtilsCompat.java59 char c = phoneNumber.charAt(i); in normalizeNumberInternal()
178 sb.append(PhoneNumberUtils.isISODigit(number.charAt(i)) in splitAtNonNumerics()
179 ? number.charAt(i) in splitAtNonNumerics()

1234567