Home
last modified time | relevance | path

Searched refs:substr (Results 1 – 24 of 24) sorted by relevance

/build/kati/
Dstrutil.cc99 return in->substr(s, i - s); in operator *()
155 return size_diff >= 0 && str.substr(0, prefix.size()) == prefix; in HasPrefix()
160 return size_diff >= 0 && str.substr(size_diff) == suffix; in HasSuffix()
177 if (size_diff < 0 || str.substr(0, prefix.size()) != prefix) in TrimPrefix()
179 return str.substr(prefix.size()); in TrimPrefix()
184 if (size_diff < 0 || str.substr(size_diff) != suffix) in TrimSuffix()
186 return str.substr(0, size_diff); in TrimSuffix()
198 return (HasPrefix(str, pat_.substr(0, percent_index_)) && in MatchImpl()
199 HasSuffix(str, pat_.substr(percent_index_ + 1))); in MatchImpl()
205 return str.substr(percent_index_, in Stem()
[all …]
Dparser.cc171 stmt->expr = ParseExpr(line.substr(1), ParseExprOpt::COMMAND); in ParseLine()
227 size_t found = FindTwoOutsideParen(line.substr(sep + 1), '=', ';'); in ParseRule()
230 rule_stmt->lhs = ParseExpr(TrimSpace(line.substr(0, found))); in ParseRule()
245 rule_stmt->rhs = ParseExpr(TrimLeftSpace(line.substr(found + 1)), opt); in ParseRule()
272 rhs = TrimLeftSpace(rhs.substr(2)); in ParseAssign()
322 RemoveComment(TrimLeftSpace(line.substr(sizeof("endef"))))); in ParseInsideDefine()
332 rhs = buf_.substr(define_start_, l_ - define_start_ - 1); in ParseInsideDefine()
366 s = s.substr(1, s.size() - 2); in ParseIfEqCond()
372 s = TrimLeftSpace(s.substr(n + 1)); in ParseIfEqCond()
374 s = TrimLeftSpace(s.substr(n)); in ParseIfEqCond()
[all …]
Drule.cc55 Intern(TrimLeftSpace(line.substr(separator_pos + 1))).str())); in ParsePrerequisites()
56 prereq_string = line.substr(0, separator_pos); in ParsePrerequisites()
76 StringPiece target_prereq = prereq_string.substr(0, separator_pos); in ParsePrerequisites()
77 StringPiece prereq_patterns = prereq_string.substr(separator_pos + 1); in ParsePrerequisites()
Dexpr.cc299 i += SkipSpaces(s.substr(i), terms); in ParseFunc()
326 Value* v = ParseExprImpl(loc, s.substr(i), terms, ParseExprOpt::FUNC, &n, in ParseFunc()
365 return new SymRef(Intern(s.substr(1, 1))); in ParseDollar()
372 ParseExprImpl(loc, s.substr(i), terms, ParseExprOpt::NORMAL, &n); in ParseDollar()
422 ParseExprImpl(loc, s.substr(i + 1), terms, ParseExprOpt::NORMAL, &n); in ParseDollar()
431 ParseExprImpl(loc, s.substr(i + 1), terms, ParseExprOpt::NORMAL, &n); in ParseDollar()
443 return new SymRef(Intern(s.substr(2, found - 2))); in ParseDollar()
472 list.push_back(new Literal(s.substr(b, i - b))); in ParseExprImpl()
487 list.push_back(new Literal(s.substr(b, i - b))); in ParseExprImpl()
502 list.push_back(ParseDollar(loc, s.substr(i), &n)); in ParseExprImpl()
[all …]
Dfind.cc236 const string& p = d.substr(0, index).as_string(); in FindDir()
238 return FindDir(d.substr(index + 1)); in FindDir()
244 StringPiece nd = d.substr(index + 1); in FindDir()
424 *tok = cur_.substr(0, 1); in GetNextToken()
425 cur_ = cur_.substr(1); in GetNextToken()
432 *tok = cur_.substr(0, 2); in GetNextToken()
433 cur_ = cur_.substr(2); in GetNextToken()
443 *tok = cur_.substr(0, i); in GetNextToken()
444 cur_ = cur_.substr(i); in GetNextToken()
450 *tok = tok->substr(1, tok->size() - 2); in GetNextToken()
[all …]
Dninja.cc62 StringPiece val = TrimLeftSpace(cmd.substr(index + name.size())); in FindCommandLineFlagWithArg()
65 val = TrimLeftSpace(val.substr(index + name.size())); in FindCommandLineFlagWithArg()
70 return val.substr(0, index); in FindCommandLineFlagWithArg()
76 *s = s->substr(p.size()); in StripPrefix()
84 StringPiece cmd = cmdline.substr(0, index); in GetGomaccPosForAndroidCompileCommand()
87 size_t pos = GetGomaccPosForAndroidCompileCommand(cmdline.substr(index)); in GetGomaccPosForAndroidCompileCommand()
99 StringPiece rest = cmdline.substr(index); in GetGomaccPosForAndroidCompileCommand()
338 cmd = cmd.substr(9, cmd.size()); in IsOutputMkdir()
340 cmd = cmd.substr(0, cmd.size() - 1); in IsOutputMkdir()
354 cmd = cmd.substr(5, cmd.size()); in GetDescriptionFromCommand()
Dcommand.cc161 *s = TrimLeftSpace(s->substr(1)); in ParseCommandPrefixes()
203 StringPiece cmd = TrimLeftSpace(cmds.substr(0, index)); in Eval()
204 cmds = cmds.substr(index + 1); in Eval()
Ddep.cc98 p.first->second->Add(name.substr(1), rule); in Add()
104 HasSuffix(name, ent.suffix.substr(1))) { in Get()
112 found->second->Get(name.substr(1), rules); in Get()
131 const StringPiece rest = StringPiece(output.str()).substr(1); in IsSuffixRule()
136 rest.substr(dot_index + 1).find('.') != string::npos) { in IsSuffixRule()
441 const StringPiece rest = StringPiece(output.str()).substr(1); in PopulateSuffixRule()
444 StringPiece input_suffix = rest.substr(0, dot_index); in PopulateSuffixRule()
445 StringPiece output_suffix = rest.substr(dot_index + 1); in PopulateSuffixRule()
602 output_suffix = output_suffix.substr(1); in PickRule()
Dmain.cc121 Symbol lhs = Intern(l.substr(0, found)); in SetVar()
122 StringPiece rhs = l.substr(found + 1); in SetVar()
Deval.cc178 StringPiece targets_string = before_term.substr(0, pos); in ParseRuleTargets()
192 return before_term.substr(pos + 1); in ParseRuleTargets()
277 after_targets = after_targets.substr(1); in EvalRule()
Dfunc.cc136 AppendString(StringPiece(str).substr(index, found - index), s); in SubstFunc()
140 AppendString(StringPiece(str).substr(index), s); in SubstFunc()
791 filename = TrimLeftSpace(filename.substr(1)); in FileFunc()
804 filename = filename.substr(2); in FileFunc()
806 filename = filename.substr(1); in FileFunc()
Dstring_piece.h169 StringPiece substr(size_type pos, size_type n = npos) const;
Dstring_piece.cc231 StringPiece StringPiece::substr(size_type pos, size_type n) const { in substr() function in StringPiece
/build/make/tools/droiddoc/templates-pdk/assets/
Dandroid-developer-reference.js229 if (toroot.substr(0, 1) == "/") {
230 if (full.substr(0, toroot.length) == toroot) {
231 return full.substr(toroot.length);
241 if (toroot.substr(toroot.length-3, 3) == "../" || toroot == "./") {
243 file = full.substr(pos) + file;
244 full = full.substr(0, pos);
245 toroot = toroot.substr(0, toroot.length-3);
248 return file.substr(1);
Dsearch_autocomplete.js176 s = s.substr(tmp + 1);
205 var partsAfter = _countChar(labelLower.substr(t + 1), '.');
211 var partsAfter = _countChar(labelLower.substr(t + 1), '.');
Djquery-1.6.2.min.js16 …lit(bN),e=0,g=d.length,h,i,j;for(;e<g;e++)h=d[e],j=/^\+/.test(h),j&&(h=h.substr(1)||"*"),i=a[h]=a[…
17substr(j.length-1)!=="\\"){g[1]=(g[1]||"").replace(i,""),d=l.find[h](g,b,c);if(d!=null){a=a.replac…
Djquery-resizable.min.js19substr(U.length-1)!=="\\"){X[1]=(X[1]||"").replace(/\\/g,"");Z=I.find[Y](X,T,ab);if(Z!=null){aa=aa…
/build/make/tools/droiddoc/templates-ndk/assets/design/
Ddefault.js5 pagePath = pagePath.substr(SITE_ROOT.length);
/build/make/tools/droiddoc/templates-pdk/assets/design/
Ddefault.js5 pagePath = pagePath.substr(SITE_ROOT.length);
/build/make/tools/droiddoc/templates-ndk/assets/js/
Ddocs.js150 pagePath = pagePath.substr(pagePath.indexOf("/",6)); // start after intl/ to get last /
2465 s = s.substr(tmp + 1);
2494 var partsAfter = _countChar(labelLower.substr(t + 1), '.');
2500 var partsAfter = _countChar(labelLower.substr(t + 1), '.');
2694 var hash = escape(location.hash.substr(1));
3055 if (toroot.substr(0, 1) == "/") {
3056 if (full.substr(0, toroot.length) == toroot) {
3057 return full.substr(toroot.length);
3067 if (toroot.substr(toroot.length-3, 3) == "../" || toroot == "./") {
3069 file = full.substr(pos) + file;
[all …]
Dandroid_3p-bundle.js2478 …="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.s…
2616substr(1));try{aK=b("#"+aJ+', a[name="'+aJ+'"]')}catch(s){return}if(aK.length&&Y.find(aJ)){if(al.s…
2706 …-(a[1].length-b[1].length)}),f=-1;$.each(e,function(a,c){var d=c[1];if(b.substr(r,d.length).toLowe…
/build/make/tools/atree/
Dfs.cpp112 string p = path.substr(0, pos); in mkdir_recursively()
Dfiles.cpp389 return filename.substr(0, pos); in dir_part()
/build/make/tools/makeparallel/
Dmakeparallel.cpp82 args.push_back(makeflags.substr(base, found - base)); in ReadMakeflags()