Home
last modified time | relevance | path

Searched refs:npos (Results 1 – 19 of 19) 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 …]
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
153 size_type rfind(const StringPiece& s, size_type pos = npos) const;
154 size_type rfind(char c, size_type pos = npos) const;
162 size_type find_last_of(const StringPiece& s, size_type pos = npos) const;
163 size_type find_last_of(char c, size_type pos = npos) const {
166 size_type find_last_not_of(const StringPiece& s, size_type pos = npos) const;
167 size_type find_last_not_of(char c, size_type pos = npos) const;
169 StringPiece substr(size_type pos, size_type n = npos) const;
Dstrutil.cc165 if (found == string::npos) in HasWord()
192 if (percent_index_ == string::npos) in Match()
212 if (percent_index_ == string::npos) { in AppendSubst()
224 if (subst_percent_index == string::npos) { in AppendSubst()
241 if (percent_index_ != string::npos && subst.find('%') != string::npos) { in AppendSubstRef()
252 if (index == string::npos) in NoLineBreak()
255 while (index != string::npos) { in NoLineBreak()
297 if (found == string::npos) in Dirname()
306 if (found == string::npos || found == 0) in Basename()
313 if (found == string::npos) in GetExt()
[all …]
Drule.cc50 if (separator_pos != string::npos && in ParsePrerequisites()
59 if ((separator_pos = prereq_string.find(':')) == string::npos) { in ParsePrerequisites()
Deval.cc175 if (pos == string::npos) { in ParseRuleTargets()
265 if (before_term.find_first_not_of(" \t;") == string::npos) { in EvalRule()
286 if (separator_pos != string::npos) { in EvalRule()
288 } else if (separator_pos == string::npos && in EvalRule()
321 separator_pos = string::npos; in EvalRule()
375 if (lhs.str().find_first_of(" \t") != string::npos) in EvalIf()
458 if (equal_index == string::npos) { in EvalExport()
Dparser.cc191 if (sep == string::npos || line[sep] == ';') { in ParseRuleOrAssign()
192 ParseRule(line, string::npos); in ParseRuleOrAssign()
208 if (sep != string::npos) { in ParseRule()
223 const bool is_rule = sep != string::npos && line[sep] == ':'; in ParseRule()
228 if (found != string::npos) { in ParseRule()
383 if (end == string::npos) in ParseIfEqCond()
508 if (i == string::npos) in RemoveComment()
Drule.h47 return target_string.find('%') != string::npos; in IsPatternRule()
Dninja_test.cc76 ASSERT_EQ(GetGomaccPosForAndroidCompileCommand("echo foo"), string::npos); in TestGetGomaccPosForAndroidCompileCommand()
Dcommand.cc202 index = string::npos; in Eval()
217 if (index == string::npos) in Eval()
Ddep.cc135 if (dot_index == string::npos || in IsSuffixRule()
136 rest.substr(dot_index + 1).find('.') != string::npos) { in IsSuffixRule()
696 output.str().find("/") != string::npos) { in BuildPlan()
733 output.str().find("/") != string::npos) { in BuildPlan()
773 is_phony = input.str().find("/") == string::npos; in BuildPlan()
Dflags.cc59 if (!HasPrefix(tok, "-") && tok.find('=') != string::npos) in Parse()
Dfind.cc63 has_wildcard_ = (n.find_first_of("?*[") != string::npos); in NameCond()
242 if (index == string::npos) in FindDir()
459 if (tok->find("\\") != string::npos) { in GetNextToken()
634 } else if (tok.find_first_of("|;&><*'\"") != string::npos) { in ParseFind()
1014 if (path.find('/') == string::npos) { in ResolveSymlinks()
Dfileutil.cc70 if (shell[0] != '/' || shell.find_first_of(" $") != string::npos) { in RunCommand()
Dexpr.cc381 if (found != string::npos) { in ParseDollar()
440 if (found != string::npos) { in ParseDollar()
Dmain.cc120 CHECK(found != string::npos); in SetVar()
Dfunc.cc48 if (cmd->find('#') == string::npos) in StripShellComment()
134 if (found == string::npos) in SubstFunc()
146 if (in.find(find) != string::npos) in FindstringFunc()
/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()