Home
last modified time | relevance | path

Searched refs:npos (Results 1 – 18 of 18) sorted by relevance

/build/kati/
Dstring_piece.cc64 return npos; in find()
69 return xpos + s.length_ <= length_ ? xpos : npos; in find()
74 return npos; in find()
77 return result != ptr_ + length_ ? static_cast<size_t>(result - ptr_) : npos; in find()
82 return npos; in rfind()
89 return result != last ? static_cast<size_t>(result - ptr_) : npos; in rfind()
94 return npos; in rfind()
102 return npos; in rfind()
125 return npos; in find_first_of()
138 return npos; in find_first_of()
[all …]
Drule.cc45 return s.find('%') != string::npos; in IsPatternRule()
60 if (index == string::npos) { in ParseRule()
88 if ((term_index != string::npos && rest[term_index] == '=') || in ParseRule()
89 (term_index == string::npos && term == '=')) { in ParseRule()
90 if (term_index == string::npos) in ParseRule()
104 term_index = string::npos; in ParseRule()
123 if (term_index != string::npos && term != ';') { in ParseRule()
132 if (index == string::npos) { in ParseRule()
Dninja.cc51 if (found == string::npos || found == 0) in FindCommandLineFlag()
52 return string::npos; in FindCommandLineFlag()
59 if (index == string::npos) in FindCommandLineFlagWithArg()
64 while (index != string::npos) { in FindCommandLineFlagWithArg()
82 if (index == string::npos) in GetGomaccPosForAndroidCompileCommand()
83 return string::npos; in GetGomaccPosForAndroidCompileCommand()
88 return pos == string::npos ? string::npos : pos + index; in GetGomaccPosForAndroidCompileCommand()
91 return string::npos; in GetGomaccPosForAndroidCompileCommand()
93 return string::npos; in GetGomaccPosForAndroidCompileCommand()
96 return string::npos; in GetGomaccPosForAndroidCompileCommand()
[all …]
Dstring_piece.h58 static const size_type npos; variable
157 size_type rfind(const StringPiece& s, size_type pos = npos) const;
158 size_type rfind(char c, size_type pos = npos) const;
166 size_type find_last_of(const StringPiece& s, size_type pos = npos) const;
167 size_type find_last_of(char c, size_type pos = npos) const {
170 size_type find_last_not_of(const StringPiece& s, size_type pos = npos) const;
171 size_type find_last_not_of(char c, size_type pos = npos) const;
173 StringPiece substr(size_type pos, size_type n = npos) const;
Dstrutil.cc167 if (found == string::npos) in HasWord()
196 if (percent_index_ == string::npos) in Match()
215 if (percent_index_ == string::npos) { in AppendSubst()
227 if (subst_percent_index == string::npos) { in AppendSubst()
243 if (percent_index_ != string::npos && subst.find('%') != string::npos) { in AppendSubstRef()
254 if (index == string::npos) in NoLineBreak()
257 while (index != string::npos) { in NoLineBreak()
299 if (found == string::npos) in Dirname()
308 if (found == string::npos || found == 0) in Basename()
315 if (found == string::npos) in GetExt()
[all …]
Dparser.cc196 if (sep == string::npos || line[sep] == ';') { in ParseRuleOrAssign()
197 ParseRule(line, string::npos); in ParseRuleOrAssign()
213 if (sep != string::npos) { in ParseRule()
228 const bool is_rule = sep != string::npos && line[sep] == ':'; in ParseRule()
233 if (found != string::npos) { in ParseRule()
366 if (end == string::npos) in ParseIfEqCond()
493 if (i == string::npos) in RemoveComment()
Dninja_test.cc69 ASSERT_EQ(GetGomaccPosForAndroidCompileCommand("echo foo"), string::npos); in TestGetGomaccPosForAndroidCompileCommand()
Deval.cc140 if (expr.find_first_not_of(" \t;") == string::npos) { in EvalRule()
247 if (lhs.str().find_first_of(" \t") != string::npos) in EvalIf()
325 if (equal_index == string::npos) { in EvalExport()
Dcommand.cc209 index = string::npos; in Eval()
224 if (index == string::npos) in Eval()
Dflags.cc58 if (!HasPrefix(tok, "-") && tok.find('=') != string::npos) in Parse()
Dfileutil.cc68 if (shell[0] != '/' || shell.find_first_of(" $") != string::npos) { in RunCommand()
Dfind.cc62 has_wildcard_ = (n.find_first_of("?*[") != string::npos); in NameCond()
257 if (index == string::npos) in FindDir()
638 } else if (tok.find_first_of("|;&><*'\"") != string::npos) { in ParseFind()
1018 if (path.find('/') == string::npos) { in ResolveSymlinks()
Dmain.cc110 CHECK(found != string::npos); in SetVar()
Dexpr.cc367 if (found != string::npos) { in ParseDollar()
430 if (found != string::npos) { in ParseDollar()
Dfunc.cc48 if (cmd->find('#') == string::npos) in StripShellComment()
131 if (found == string::npos) in SubstFunc()
143 if (in.find(find) != string::npos) in FindstringFunc()
Ddep.cc138 if (dot_index == string::npos || in IsSuffixRule()
139 rest.substr(dot_index+1).find('.') != string::npos) { in IsSuffixRule()
/build/make/tools/makeparallel/
Dmakeparallel.cpp84 } while (found != makeflags.npos); in ReadMakeflags()
94 if (args[0].find('=') == makeflags.npos) { in ReadMakeflags()
/build/make/tools/atree/
Dfiles.cpp136 if (input.find("${") == string::npos) { in replace_variables()
153 while((pos = result.find(it->first, pos)) != string::npos) { in replace_variables()