Lines Matching refs:TokenAt

63     CharBlock tok{token.TokenAt(firstToken + j)};  in Tokenize()
82 const CharBlock &token{tokens.TokenAt(j)}; in Stringify()
105 if (IsTokenPasting(text.TokenAt(j))) { in AnyTokenPasting()
120 if (IsTokenPasting(text.TokenAt(j))) { in TokenPasting()
123 result.TokenAt(result.SizeInTokens() - 1).IsBlank()) { in TokenPasting()
131 } else if (pasting && text.TokenAt(j).IsBlank()) { in TokenPasting()
147 CharBlock token{replacement_.TokenAt(j)}; in Apply()
165 while (prev > 0 && replacement_.TokenAt(prev - 1).IsBlank()) { in Apply()
168 if (prev > 0 && replacement_.TokenAt(prev - 1).size() == 1 && in Apply()
169 replacement_.TokenAt(prev - 1)[0] == in Apply()
172 while (resultSize > 0 && result.TokenAt(resultSize - 1).IsBlank()) { in Apply()
177 result.TokenAt(resultSize - 1) == replacement_.TokenAt(prev - 1)); in Apply()
185 if (prev == 0 || !IsTokenPasting(replacement_.TokenAt(prev - 1))) { in Apply()
187 if (next >= tokens || !IsTokenPasting(replacement_.TokenAt(next))) { in Apply()
210 j + 2 < tokens && replacement_.TokenAt(j + 1).ToString() == "(" && in Apply()
265 CharBlock token{input.TokenAt(j)}; in MacroReplacement()
276 const CharBlock &token{input.TokenAt(j)}; in MacroReplacement()
293 std::string name{def.replacement().TokenAt(0).ToString()}; in MacroReplacement()
330 const CharBlock &lookAhead{input.TokenAt(k)}; in MacroReplacement()
342 CharBlock token{input.TokenAt(k)}; in MacroReplacement()
404 if (dir.TokenAt(j).ToString() != "#") { in Directive()
409 while (tokens > 0 && dir.TokenAt(tokens - 1).IsBlank()) { in Directive()
415 if (IsDecimalDigit(dir.TokenAt(j)[0]) || dir.TokenAt(j)[0] == '"') { in Directive()
419 std::string dirName{ToLowerCaseLetters(dir.TokenAt(dirOffset).ToString())}; in Directive()
422 if (j < tokens && IsLegalIdentifierStart(dir.TokenAt(j)[0])) { in Directive()
423 nameToken = dir.TokenAt(j); in Directive()
435 if (++j < tokens && dir.TokenAt(j).size() == 1 && in Directive()
436 dir.TokenAt(j)[0] == '(') { in Directive()
440 if (dir.TokenAt(j).ToString() != ")") { in Directive()
442 std::string an{dir.TokenAt(j).ToString()}; in Directive()
459 std::string punc{dir.TokenAt(j).ToString()}; in Directive()
587 if (dir.TokenAt(j).ToString() == "<") { // #include <foo> in Directive()
594 while (k < tokens && dir.TokenAt(k) != ">") { in Directive()
604 } else if ((include = dir.TokenAt(j).ToString()).substr(0, 1) == "\"" && in Directive()
624 if (j < tokens && dir.TokenAt(j).ToString() != "!") { in Directive()
661 if (j == tokens || line.TokenAt(j).ToString() != "#") { in GetDirectiveName()
671 return ToLowerCaseLetters(line.TokenAt(j).ToString()); in GetDirectiveName()
813 std::string t{token.TokenAt(opAt).ToString()}; in ExpressionValue()
836 ToLowerCaseLetters(token.TokenAt(*atToken + 1).ToString()) == "not" && in ExpressionValue()
837 token.TokenAt(*atToken + 2).ToString() == ".") { in ExpressionValue()
863 if (*atToken < tokens && token.TokenAt(*atToken).ToString() == ")") { in ExpressionValue()
897 t = token.TokenAt(*atToken).ToString(); in ExpressionValue()
899 token.TokenAt(*atToken + 2).ToString() == ".") { in ExpressionValue()
900 t += ToLowerCaseLetters(token.TokenAt(*atToken + 1).ToString()) + '.'; in ExpressionValue()
1033 if (*atToken >= tokens || token.TokenAt(*atToken).ToString() != ":") { in ExpressionValue()
1062 if (ToLowerCaseLetters(expr1.TokenAt(j).ToString()) == "defined") { in IsIfPredicateTrue()
1065 expr1.TokenAt(j + 1).ToString() == "(" && in IsIfPredicateTrue()
1066 expr1.TokenAt(j + 3).ToString() == ")") { in IsIfPredicateTrue()
1067 name = expr1.TokenAt(j + 2); in IsIfPredicateTrue()
1070 IsLegalIdentifierStart(expr1.TokenAt(j + 1))) { in IsIfPredicateTrue()
1071 name = expr1.TokenAt(++j); in IsIfPredicateTrue()
1095 expr3.TokenAt(atToken).ToString() != "!") { in IsIfPredicateTrue()