Lines Matching refs:StringRef

44 StringRef ScriptLexer::getLine() {  in getLine()
45 StringRef S = getCurrentMB().getBuffer(); in getLine()
46 StringRef Tok = Tokens[Pos - 1]; in getLine()
49 if (Pos != StringRef::npos) in getLine()
56 StringRef S = getCurrentMB().getBuffer(); in getLineNumber()
57 StringRef Tok = Tokens[Pos - 1]; in getLineNumber()
63 StringRef Tok = Tokens[Pos - 1]; in getColumnNumber()
88 std::vector<StringRef> Vec; in tokenize()
90 StringRef S = MB.getBuffer(); in tokenize()
91 StringRef Begin = S; in tokenize()
104 if (E == StringRef::npos) { in tokenize()
105 StringRef Filename = MB.getBufferIdentifier(); in tokenize()
143 StringRef ScriptLexer::skipSpace(StringRef S) { in skipSpace()
147 if (E == StringRef::npos) { in skipSpace()
156 if (E == StringRef::npos) in skipSpace()
173 static std::vector<StringRef> tokenizeExpr(StringRef S) { in tokenizeExpr()
174 StringRef Ops = "+-*/:!~"; // List of operators in tokenizeExpr()
181 std::vector<StringRef> Ret; in tokenizeExpr()
186 if (E == StringRef::npos) { in tokenizeExpr()
220 std::vector<StringRef> V = tokenizeExpr(Tokens[Pos]); in maybeSplitExpr()
227 StringRef ScriptLexer::next() { in next()
239 StringRef ScriptLexer::peek() { in peek()
240 StringRef Tok = next(); in peek()
247 StringRef ScriptLexer::peek2() { in peek2()
249 StringRef Tok = next(); in peek2()
256 bool ScriptLexer::consume(StringRef Tok) { in consume()
265 bool ScriptLexer::consumeLabel(StringRef Tok) { in consumeLabel()
278 void ScriptLexer::expect(StringRef Expect) { in expect()
281 StringRef Tok = next(); in expect()
287 static bool encloses(StringRef S, StringRef T) { in encloses()