Lines Matching refs:fChar
29 , fChar(start) in TextParser()
38 const char* ptr = fChar; in anyOf()
51 const size_t matchLen = fChar - wordStart; in anyOf()
63 const char* matchStart = fChar; in anyWord()
102 const char* start = fChar - len; in back()
109 fChar = start; in back()
115 const char* start = fChar - len; in backup()
126 while (fChar > fStart && isalpha(fChar[-1])) { in backupWord()
127 --fChar; in backupWord()
148 fChar = result + len; in containsWord()
160 const char* ptr = fChar - 1; in doubleLF()
181 if (matchLen > fChar - fLine) { in endsWith()
184 return !strncmp(fChar - matchLen, match, matchLen); in endsWith()
187 bool eof() const { return fChar >= fEnd; } in eof()
190 const char* ptr = fChar; in lineEnd()
210 SkASSERT(fChar < fEnd); in next()
211 char result = *fChar++; in next()
214 fLine = fChar; in next()
219 char peek() const { SkASSERT(fChar < fEnd); return *fChar; } in peek()
222 fChar = save.fChar; in restorePlace()
228 save->fChar = fChar; in savePlace()
261 SkASSERT(fChar < fEnd); in skipToBalancedEndBracket()
262 SkASSERT(startB == fChar[0]); in skipToBalancedEndBracket()
268 } while (startCount && fChar < fEnd); in skipToBalancedEndBracket()
276 while (fChar[0] != endBracket) {
277 if (fChar >= end) {
287 while (strncmp(fChar, endBracket, len)) { in skipToEndBracket()
288 if (fChar >= fEnd) { in skipToEndBracket()
301 while (fChar < skip) { in skipTo()
307 while (fChar < fEnd && !isalpha(fChar[0])) { in skipToAlpha()
308 fChar++; in skipToAlpha()
315 while (fChar < fEnd && !isalnum(fChar[0])) { in skipToAlphaNum()
316 sawCloseBrace |= '}' == *fChar++; in skipToAlphaNum()
334 while (fChar < fEnd && (isalnum(fChar[0]) in skipFullName()
335 || '_' == fChar[0] /* || '-' == fChar[0] */ in skipFullName()
336 || (':' == fChar[0] && fChar + 1 < fEnd && ':' == fChar[1]))) { in skipFullName()
337 if (':' == fChar[0] && fChar + 1 < fEnd && ':' == fChar[1]) { in skipFullName()
338 fChar++; in skipFullName()
340 last = fChar[0]; in skipFullName()
341 fChar++; in skipFullName()
343 if (fChar + 1 >= fEnd || '/' != fChar[0] || !isalpha(last) || !isalpha(fChar[1])) { in skipFullName()
346 fChar++; // skip slash in skipFullName()
352 while (!this->eof() && '\n' != fChar[0]) { in skipToLineBalance()
375 while (fChar < fEnd && (islower(fChar[0]) || '_' == fChar[0])) { in skipLower()
376 fChar++; in skipLower()
381 while (fChar < fEnd && (isalnum(fChar[0]) || '_' == fChar[0])) { in skipToNonAlphaNum()
382 fChar++; in skipToNonAlphaNum()
387 while (fChar < fEnd && (isalnum(fChar[0]) in skipToNonName()
388 || '_' == fChar[0] || '-' == fChar[0] in skipToNonName()
389 || (':' == fChar[0] && fChar + 1 < fEnd && ':' == fChar[1]) in skipToNonName()
390 || ('.' == fChar[0] && fChar + 1 < fEnd && isalpha(fChar[1])))) { in skipToNonName()
391 if (':' == fChar[0] && fChar +1 < fEnd && ':' == fChar[1]) { in skipToNonName()
392 fChar++; in skipToNonName()
394 fChar++; in skipToNonName()
399 while (fChar < fEnd && (islower(fChar[0]) || '_' == fChar[0])) { in skipPhraseName()
400 fChar++; in skipPhraseName()
405 while (fChar < fEnd && ' ' != fChar[0]) { in skipToSpace()
406 fChar++; in skipToSpace()
411 while (fChar < fEnd && ' ' < fChar[0]) { in skipToWhiteSpace()
412 fChar++; in skipToWhiteSpace()
418 if (len <= (size_t) (fEnd - fChar) && !strncmp(word, fChar, len)) { in skipName()
423 return this->eof() || ' ' >= fChar[0]; in skipName()
429 if (fChar >= fEnd) { in skipSpace()
440 const char* save = fChar; in skipWord()
442 fChar = save; in skipWord()
454 if (fChar >= fEnd) { in skipWhiteSpace()
469 if (fChar >= fEnd) { in skipWhiteSpace()
478 ptrdiff_t lineLen = fEnd - fChar; in startsWith()
479 return len <= (size_t) lineLen && 0 == strncmp(str, fChar, len); in startsWith()
485 size_t tLen = fEnd - fChar; in startsWith()
488 bool tSpace = ' ' >= fChar[tIndex]; in startsWith()
496 } while (tIndex < tLen && ' ' >= fChar[tIndex]); in startsWith()
502 if (fChar[tIndex] != str[oIndex]) { in startsWith()
512 const char* ptr = fChar; in strnchr()
525 ptrdiff_t len = end - fChar; in strnstr()
532 if (0 == strncmp(&fChar[index], match, matchLen)) { in strnstr()
533 return &fChar[index]; in strnstr()
542 while (index < max && bracket != fChar[index]) { in trimmedBracketEnd()
546 while (index > 0 && ' ' >= fChar[index - 1]) { in trimmedBracketEnd()
549 return fChar + index; in trimmedBracketEnd()
554 string line(fChar, max); in trimmedBracketEnd()
557 while (index > 0 && ' ' >= fChar[index - 1]) { in trimmedBracketEnd()
560 return fChar + index; in trimmedBracketEnd()
564 int max = (int) (fEnd - fChar); in trimmedBracketNoEnd()
566 while (index < max && bracket != fChar[index]) { in trimmedBracketNoEnd()
570 while (index > 0 && ' ' >= fChar[index - 1]) { in trimmedBracketNoEnd()
573 return fChar + index; in trimmedBracketNoEnd()
578 while (result > fChar && ' ' >= result[-1]) { in trimmedLineEnd()
595 const char* end = fChar; in wordEnd()
605 const char* fChar; variable
617 fSave.fChar = parser->fChar; in TextParserSave()
626 fParser->fChar = fSave.fChar; in restore()
720 fStart = fLine = fChar = fStorage; in EscapeParser()
781 if (space < fChar + len) { in wordEndsWith()