Lines Matching refs:substr

116     PatternStr = PatternStr.substr(0, PatternStr.size()-1);  in ParsePattern()
158 if (AddRegExToRegEx(PatternStr.substr(2, End-2), CurParen, SM)) in ParsePattern()
162 PatternStr = PatternStr.substr(End+2); in ParsePattern()
180 StringRef MatchStr = PatternStr.substr(2, End-2); in ParsePattern()
181 PatternStr = PatternStr.substr(End+2); in ParsePattern()
185 StringRef Name = MatchStr.substr(0, NameEnd); in ParsePattern()
219 if (AddRegExToRegEx(MatchStr.substr(NameEnd+1), CurParen, SM)) in ParsePattern()
229 AddFixedStringToRegEx(PatternStr.substr(0, FixedMatchEnd), RegExStr); in ParsePattern()
230 PatternStr = PatternStr.substr(FixedMatchEnd); in ParsePattern()
360 StringRef BufferPrefix = Buffer.substr(0, ExampleString.size()); in ComputeMatchDistance()
411 unsigned Distance = ComputeMatchDistance(Buffer.substr(i), VariableTable); in PrintFailureInfo()
520 Buffer = Buffer.substr(Buffer.find(CheckPrefix)); in ReadCheckFile()
534 Buffer = Buffer.substr(CheckPrefix.size()+1); in ReadCheckFile()
537 Buffer = Buffer.substr(CheckPrefix.size()+7); in ReadCheckFile()
541 Buffer = Buffer.substr(CheckPrefix.size()+6); in ReadCheckFile()
544 Buffer = Buffer.substr(1); in ReadCheckFile()
550 Buffer = Buffer.substr(Buffer.find_first_not_of(" \t")); in ReadCheckFile()
560 if (P.ParsePattern(Buffer.substr(0, EOL), SM)) in ReadCheckFile()
563 Buffer = Buffer.substr(EOL); in ReadCheckFile()
615 Buffer = Buffer.substr(Buffer.find_first_not_of(" \t\n\r")); in PrintCheckFailed()
630 Range = Range.substr(Range.find_first_of("\n\r")); in CountNumNewlinesBetween()
639 Range = Range.substr(1); in CountNumNewlinesBetween()
640 Range = Range.substr(1); in CountNumNewlinesBetween()
694 Buffer = Buffer.substr(MatchPos); in main()
756 Buffer = Buffer.substr(MatchLen); in main()