Home
last modified time | relevance | path

Searched refs:tok (Results 1 – 13 of 13) sorted by relevance

/build/kati/
Dfind.cc376 bool GetNextToken(StringPiece* tok) { in GetNextToken() argument
378 *tok = unget_tok_; in GetNextToken()
386 *tok = cur_.substr(0, 1); in GetNextToken()
394 *tok = cur_.substr(0, 2); in GetNextToken()
405 *tok = cur_.substr(0, i); in GetNextToken()
408 const char c = tok->get(0); in GetNextToken()
410 if (tok->size() < 2 || (*tok)[tok->size()-1] != c) in GetNextToken()
412 *tok = tok->substr(1, tok->size() - 2); in GetNextToken()
419 void UngetToken(StringPiece tok) { in UngetToken() argument
421 if (!tok.empty()) in UngetToken()
[all …]
Dfunc.cc103 for (StringPiece tok : WordScanner(str)) { in PatsubstFunc() local
105 pat.AppendSubst(tok, repl, s); in PatsubstFunc()
112 for (StringPiece tok : WordScanner(str)) { in StripFunc() local
113 ww.Write(tok); in StripFunc()
153 for (StringPiece tok : WordScanner(text)) { in FilterFunc() local
155 if (pat.Match(tok)) { in FilterFunc()
156 ww.Write(tok); in FilterFunc()
171 for (StringPiece tok : WordScanner(text)) { in FilterOutFunc() local
174 if (pat.Match(tok)) { in FilterOutFunc()
180 ww.Write(tok); in FilterOutFunc()
[all …]
Dpathutil.go544 tok, err := p.token()
545 if err == io.EOF || tok == "" {
554 switch tok {
607 tok, err = p.token()
608 if err != io.EOF || tok != "" {
631 tok, err := p.token()
632 if err == io.EOF || tok == "" || tok == ";" {
642 if tok != "" && (tok[0] == '-' || tok == "\\(") {
643 p.unget(tok)
653 p.fc.finddirs = append(p.fc.finddirs, tok)
[all …]
Drule.cc65 for (StringPiece tok : WordScanner(first)) { in ParseRule() local
66 outputs.push_back(Intern(TrimLeadingCurdir(tok))); in ParseRule()
129 for (StringPiece tok : WordScanner(second)) { in ParseRule() local
130 tok = TrimLeadingCurdir(tok); in ParseRule()
132 if (!Pattern(tok).Match(output.str())) { in ParseRule()
138 rule->output_patterns.push_back(Intern(tok)); in ParseRule()
Deval.cc267 for (StringPiece tok : WordScanner(exports)) { in EvalExport() local
268 size_t equal_index = tok.find('='); in EvalExport()
270 exports_[Intern(tok)] = stmt->is_export; in EvalExport()
273 (tok[0] == ':' || tok[0] == '?' || tok[0] == '+'))) { in EvalExport()
279 ParseAssignStatement(tok, equal_index, &lhs, &rhs, &op); in EvalExport()
Dfind_test.cc47 for (StringPiece tok : WordScanner(out)) { in main() local
48 printf("%.*s\n", SPF(tok)); in main()
Dcommand.cc141 for (StringPiece tok : WordScanner(buf)) { in Eval() local
142 ww.Write(Dirname(tok)); in Eval()
150 for (StringPiece tok : WordScanner(buf)) { in Eval() local
151 ww.Write(Basename(tok)); in Eval()
Dstrutil_test.cc33 for (StringPiece tok : WordScanner("foo bar baz hogeeeeeeeeeeeeeeee")) { in TestWordScanner() local
34 ss.push_back(tok); in TestWordScanner()
Dfunc.go362 for _, tok := range wb.words {
363 toks = append(toks, string(tok))
370 for _, tok := range toks {
371 if prev == tok {
374 w.writeWordString(tok)
375 prev = tok
662 tok := string(word)
663 e := filepath.Ext(tok)
688 tok := string(word)
689 e := stripExt(tok)
Dstrutil.cc492 for (StringPiece tok : WordScanner(s)) { in SortWordsInString() local
493 toks.push_back(tok.as_string()); in SortWordsInString()
Dexpr.cc194 for (StringPiece tok : WordScanner(value)) { in Eval() local
196 pat.AppendSubstRef(tok, subst, s); in Eval()
/build/soong/androidmk/parser/
Dparser.go44 tok rune member
84 for _, tok := range toks {
85 if p.tok != tok {
86 p.errorf("expected %s, found %s", scanner.TokenString(tok),
87 scanner.TokenString(p.tok))
96 if p.tok != scanner.EOF {
97 p.tok = p.scanner.Scan()
98 for p.tok == '\r' {
99 p.tok = p.scanner.Scan()
117 switch p.tok {
[all …]
/build/blueprint/parser/
Dparser.go87 tok rune member
127 for _, tok := range toks {
128 if p.tok != tok {
129 p.errorf("expected %s, found %s", scanner.TokenString(tok),
130 scanner.TokenString(p.tok))
139 if p.tok != scanner.EOF {
140 p.tok = p.scanner.Scan()
141 for p.tok == scanner.Comment {
144 p.tok = p.scanner.Scan()
152 switch p.tok {
[all …]