Lines Matching refs:c
101 char16_t c = str[pos]; in Text() local
106 if (c == '\'') { in Text()
111 if (c == kArgStart) { in Text()
113 } else if (c == kArgEnd && depth) { in Text()
145 static const char* PseudolocalizeChar(const char c) { in PseudolocalizeChar() argument
146 switch (c) { in PseudolocalizeChar()
260 static bool IsPossibleNormalPlaceholderEnd(const char c) { in IsPossibleNormalPlaceholderEnd() argument
261 switch (c) { in IsPossibleNormalPlaceholderEnd()
366 char c = s[i]; in Text() local
367 if (c == '%') { in Text()
371 chunk.append(&c, 1); in Text()
374 c = s[i]; in Text()
375 chunk.append(&c, 1); in Text()
376 if (IsPossibleNormalPlaceholderEnd(c)) { in Text()
378 } else if (i + 1 < I && c == 't') { in Text()
380 c = s[i]; in Text()
381 chunk.append(&c, 1); in Text()
386 result += ((c == '%') ? chunk : Placeholder(chunk)); in Text()
387 } else if (c == '<' || c == '&') { in Text()
391 if (c == '&') { in Text()
393 escape_text.append(&c, 1); in Text()
398 c = s[html_code_pos]; in Text()
399 escape_text.append(&c, 1); in Text()
401 if (c == ';') { in Text()
406 else if (!((c == '#' || (c >= 'a' && c <= 'z') || in Text()
407 (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9')))) { in Text()
417 if (c == '>') { in Text()
419 result.append(&c, 1); in Text()
422 result.append(&c, 1); in Text()
424 c = s[i]; in Text()
428 const char* p = PseudolocalizeChar(c); in Text()
432 bool space = isspace(c); in Text()
437 result.append(&c, 1); in Text()
459 char c = s[i]; in Text() local
460 if (!escape && c == ESCAPE_CHAR) { in Text()
464 space = (!escape && isspace(c)) || (escape && (c == 'n' || c == 't')); in Text()
477 result.append(&c, 1); in Text()