Searched refs:npos (Results 1 – 16 of 16) sorted by relevance
/build/kati/ |
D | string_piece.cc | 64 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 …]
|
D | ninja.cc | 51 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 …]
|
D | rule.cc | 45 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()
|
D | strutil.cc | 156 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 …]
|
D | string_piece.h | 58 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;
|
D | parser.cc | 187 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()
|
D | eval.cc | 113 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()
|
D | ninja_test.cc | 69 ASSERT_EQ(GetGomaccPosForAndroidCompileCommand("echo foo"), string::npos); in TestGetGomaccPosForAndroidCompileCommand()
|
D | command.cc | 207 index = string::npos; in Eval() 222 if (index == string::npos) in Eval()
|
D | main.cc | 110 CHECK(found != string::npos); in SetVar()
|
D | find.cc | 215 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()
|
D | func.cc | 46 if (cmd->find('#') == string::npos) in StripShellComment() 129 if (found == string::npos) in SubstFunc() 141 if (in.find(find) != string::npos) in FindstringFunc()
|
D | expr.cc | 367 if (found != string::npos) { in ParseDollar() 430 if (found != string::npos) { in ParseDollar()
|
D | dep.cc | 137 if (dot_index == string::npos || in IsSuffixRule() 138 rest.substr(dot_index+1).find('.') != string::npos) { in IsSuffixRule()
|
/build/tools/makeparallel/ |
D | makeparallel.cpp | 83 } while (found != makeflags.npos); in ReadMakeflags() 93 if (args[0].find('=') == makeflags.npos) { in ReadMakeflags()
|
/build/tools/atree/ |
D | files.cpp | 136 if (input.find("${") == string::npos) { in replace_variables() 153 while((pos = result.find(it->first, pos)) != string::npos) { in replace_variables()
|