Lines Matching refs:chars
732 void CacheBuilder::Debug::wideString(const UChar* chars, int length, bool hex) {
737 uChar(chars, length, hex);
1573 CacheBuilder::FoundState CacheBuilder::FindAddress(const UChar* chars,
1578 addressState.mWords[0] = addressState.mStarts[0] = chars;
1580 FoundState state = FindPartialAddress(chars, chars, length, &addressState);
1592 const UChar* chars, unsigned length, FindState* s)
1703 s->mCurrentStart = chars;
1704 s->mEnd = chars + length;
1709 chars -= 1;
1711 while (++chars <= s->mEnd) {
1713 ch = chars < s->mEnd ? *chars : ' ';
1719 if (s->mEnd - chars < 3)
1721 prior = *++chars;
1722 ch = *++chars;
1725 if (isUnicodeSpace(*++chars) == false)
1728 s->mStartResult = chars - 3 - s->mCurrentStart;
1737 s->mStartResult = chars - s->mCurrentStart;
1768 s->mStartResult = chars - s->mCurrentStart;
1788 s->newWord(baseChars, chars);
1790 s->mFirstLower = chars;
1801 size_t length = chars - s->mFirstLower;
1883 s->newWord(baseChars, chars);
1906 s->newWord(baseChars, chars);
1988 s->mEndResult = chars - s->mCurrentStart;
1995 || chars == s->mEnd;
1997 s->mZipStart = chars;
2006 s->mZipStart = chars;
2027 s->newWord(baseChars, chars);
2035 s->mEndResult = chars - s->mCurrentStart;
2039 --chars;
2056 s->mEndResult = chars - s->mCurrentStart;
2144 --chars;
2171 CacheBuilder::FoundState CacheBuilder::FindPartialEMail(const UChar* chars, unsigned length,
2234 const UChar* start = chars;
2235 const UChar* end = chars + length;
2236 while (chars < end) {
2237 UChar ch = *chars++;
2240 const UChar* atLocation = chars - 1;
2242 ch = *chars++ | 0x20; // convert uppercase to lower
2245 while (chars < end) {
2246 ch = *chars++;
2251 UChar firstLetter = *chars++ | 0x20; // first letter of the domain
2252 if (chars >= end)
2258 ch = *chars | 0x20; // second letter of the domain
2272 if (chars[wordIndex] != match)
2284 chars += wordIndex;
2285 if (chars < end) {
2286 ch = *chars;
2290 } else if (chars + 1 < end && IsDomainChar(chars[1]))
2294 s->mEndResult = chars - start;
2295 chars = atLocation;
2296 if (chars <= start)
2298 ch = *--chars;
2303 chars++;
2306 if (chars == start)
2308 ch = *--chars;
2310 UChar firstChar = *chars;
2313 s->mStartResult = chars - start;
2320 chars = atLocation + 1;
2327 CacheBuilder::FoundState CacheBuilder::FindPartialNumber(const UChar* chars, unsigned length,
2332 const UChar* start = chars;
2333 const UChar* end = chars + length;
2337 while (chars < end) {
2342 UChar ch = s->mCurrent = *chars;
2348 s->mStartResult = chars - start;
2357 lastDigit = chars;
2371 s->mStartResult = chars - start;
2388 chars++;
2397 } while (++chars < end);
2410 CacheBuilder::FoundState CacheBuilder::FindPhoneNumber(const UChar* chars, unsigned length,
2415 FoundState result = FindPartialNumber(chars, length, &state);
2589 const UChar* chars = baseChars + start;
2595 state = FindPartialAddress(baseChars, chars, length, &findState);
2598 state = FindPartialEMail(chars, length, &findState);
2601 state = FindPartialNumber(chars, length, &findState);
3002 const UChar* chars = string->characters();
3018 if ((drawable |= isNotSpace(chars[index])) != false)