Home
last modified time | relevance | path

Searched refs:npos (Results 1 – 16 of 16) 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 …]
Drule.cc45 return s.find('%') != string::npos; in IsPatternRule()
59 if (index == string::npos) { in ParseRule()
87 if ((term_index != string::npos && rest[term_index] == '=') || in ParseRule()
88 (term_index == string::npos && term == '=')) { in ParseRule()
89 if (term_index == string::npos) in ParseRule()
107 if (term_index != string::npos && term != ';') { in ParseRule()
116 if (index == string::npos) { in ParseRule()
Dstrutil.cc156 if (found == string::npos) in HasWord()
178 if (percent_index_ == string::npos) in Match()
197 if (percent_index_ == string::npos) { in AppendSubst()
209 if (subst_percent_index == string::npos) { in AppendSubst()
225 if (percent_index_ != string::npos && subst.find('%') != string::npos) { in AppendSubstRef()
236 if (index == string::npos) in NoLineBreak()
239 while (index != string::npos) { in NoLineBreak()
281 if (found == string::npos) in Dirname()
290 if (found == string::npos || found == 0) in Basename()
297 if (found == string::npos) in GetExt()
[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;
Dparser.cc187 if (sep == string::npos || line[sep] == ';') { in ParseRuleOrAssign()
188 ParseRule(line, string::npos); in ParseRuleOrAssign()
204 if (sep != string::npos) { in ParseRule()
219 const bool is_rule = sep != string::npos && line[sep] == ':'; in ParseRule()
224 if (found != string::npos) { in ParseRule()
351 if (end == string::npos) in ParseIfEqCond()
478 if (i == string::npos) in RemoveComment()
Deval.cc113 if (expr.find_first_not_of(" \t;") == string::npos) { in EvalRule()
192 if (lhs.str().find_first_of(" \t") != string::npos) in EvalIf()
269 if (equal_index == string::npos) { in EvalExport()
Dninja_test.cc69 ASSERT_EQ(GetGomaccPosForAndroidCompileCommand("echo foo"), string::npos); in TestGetGomaccPosForAndroidCompileCommand()
Dcommand.cc207 index = string::npos; in Eval()
222 if (index == string::npos) in Eval()
Dmain.cc110 CHECK(found != string::npos); in SetVar()
Dfind.cc215 if (index == string::npos) in FindDir()
584 } else if (tok.find_first_of("|;&><*'\"") != string::npos) { in ParseFind()
925 if (path.find('/') == string::npos) { in ResolveSymlinks()
Dfunc.cc46 if (cmd->find('#') == string::npos) in StripShellComment()
129 if (found == string::npos) in SubstFunc()
141 if (in.find(find) != string::npos) in FindstringFunc()
Dexpr.cc367 if (found != string::npos) { in ParseDollar()
430 if (found != string::npos) { in ParseDollar()
Ddep.cc137 if (dot_index == string::npos || in IsSuffixRule()
138 rest.substr(dot_index+1).find('.') != string::npos) { in IsSuffixRule()
/build/tools/makeparallel/
Dmakeparallel.cpp83 } while (found != makeflags.npos); in ReadMakeflags()
93 if (args[0].find('=') == makeflags.npos) { in ReadMakeflags()
/build/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()