Home
last modified time | relevance | path

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

/build/kati/
Dfind.cc414 bool GetNextToken(StringPiece* tok) { in GetNextToken() argument
416 *tok = unget_tok_; in GetNextToken()
424 *tok = cur_.substr(0, 1); in GetNextToken()
432 *tok = cur_.substr(0, 2); in GetNextToken()
443 *tok = cur_.substr(0, i); in GetNextToken()
446 const char c = tok->get(0); in GetNextToken()
448 if (tok->size() < 2 || (*tok)[tok->size() - 1] != c) in GetNextToken()
450 *tok = tok->substr(1, tok->size() - 2); in GetNextToken()
455 *tok = tok->substr(1); in GetNextToken()
459 if (tok->find("\\") != string::npos) { in GetNextToken()
[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 …]
Dfunc.cc108 for (StringPiece tok : WordScanner(str)) { in PatsubstFunc() local
110 pat.AppendSubst(tok, repl, s); in PatsubstFunc()
117 for (StringPiece tok : WordScanner(str)) { in StripFunc() local
118 ww.Write(tok); in StripFunc()
158 for (StringPiece tok : WordScanner(text)) { in FilterFunc() local
160 if (pat.Match(tok)) { in FilterFunc()
161 ww.Write(tok); in FilterFunc()
176 for (StringPiece tok : WordScanner(text)) { in FilterOutFunc() local
179 if (pat.Match(tok)) { in FilterOutFunc()
185 ww.Write(tok); in FilterOutFunc()
[all …]
Dflags.cc58 for (StringPiece tok : WordScanner(makeflags)) { in Parse() local
59 if (!HasPrefix(tok, "-") && tok.find('=') != string::npos) in Parse()
60 cl_vars.push_back(tok); in Parse()
Dstrutil_test.cc35 for (StringPiece tok : WordScanner("foo bar baz hogeeeeeeeeeeeeeeee")) { in TestWordScanner() local
36 ss.push_back(tok); in TestWordScanner()
188 for (StringPiece tok : WordScanner(CreateProtectedString("0123 456789"))) { in TestWordScannerInvalidAccess() local
189 ss.push_back(tok); in TestWordScannerInvalidAccess()
Dcommand.cc134 for (StringPiece tok : WordScanner(buf)) { in Eval() local
135 ww.Write(Dirname(tok)); in Eval()
143 for (StringPiece tok : WordScanner(buf)) { in Eval() local
144 ww.Write(Basename(tok)); in Eval()
Deval.cc455 for (StringPiece tok : WordScanner(exports)) { in EvalExport() local
456 size_t equal_index = tok.find('='); in EvalExport()
459 lhs = tok; in EvalExport()
462 (tok[0] == ':' || tok[0] == '?' || tok[0] == '+'))) { in EvalExport()
468 ParseAssignStatement(tok, equal_index, &lhs, &rhs, &op); in EvalExport()
Dfind_test.cc51 for (StringPiece tok : WordScanner(out)) { in main() local
52 printf("%.*s\n", SPF(tok)); in main()
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.cc488 for (StringPiece tok : WordScanner(s)) { in SortWordsInString() local
489 toks.push_back(tok.as_string()); in SortWordsInString()
Dexpr.cc187 for (StringPiece tok : WordScanner(value)) { in Eval() local
189 pat.AppendSubstRef(tok, subst, s); in Eval()
/build/soong/androidmk/parser/
Dparser.go62 tok rune member
119 for _, tok := range toks {
120 if p.tok != tok {
121 p.errorf("expected %s, found %s", scanner.TokenString(tok),
122 scanner.TokenString(p.tok))
131 if p.tok != scanner.EOF {
132 p.tok = p.scanner.Scan()
133 for p.tok == '\r' {
134 p.tok = p.scanner.Scan()
137 if p.tok == '\n' {
[all …]
/build/blueprint/parser/
Dparser.go103 tok rune member
143 for _, tok := range toks {
144 if p.tok != tok {
145 p.errorf("expected %s, found %s", scanner.TokenString(tok),
146 scanner.TokenString(p.tok))
155 if p.tok != scanner.EOF {
156 p.tok = p.scanner.Scan()
157 if p.tok == scanner.Comment {
159 for p.tok == scanner.Comment {
166 p.tok = p.scanner.Scan()
[all …]
/build/soong/android/
Dprebuilt_etc_test.go170 tok := strings.Split(line, " := ")
171 if tok[0] == k {
173 if tok[1] != expected {
174 t.Errorf("Incorrect %s '%s', expected '%s'", k, tok[1], expected)
/build/blueprint/microfactory/
Dmicrofactory.go248 for _, tok := range f[1:] {
249 matches = matches || matchBuildTag(tok)