Lines Matching defs:string
15 #include "src/strings/string-builder-inl.h"
16 #include "src/strings/string-search.h"
45 return match_; // Return arbitrary string handle.
119 // If the cons string tree is too deep, we simply abort the recursion and
120 // retry with a flattened subject string.
151 Handle<String> string = args.at<String>(0);
156 DCHECK_LE(end, string->length());
158 return *isolate->factory()->NewSubString(string, start, end);
175 Handle<String> string = args.at<String>(0);
176 return *isolate->factory()->InternalizeString(string);
186 // Flatten the string. If someone wants to get a char at an index
187 // in a cons string, it is likely that more indices will be
417 Handle<String> string = args.at<String>(0);
419 // Equivalent to global replacement `string.replace(/"/g, """)`, but this
422 const int string_length = string->length();
426 int quote_index = String::IndexOf(isolate, string, quotes, 0);
429 if (quote_index == -1) return *string;
434 quote_index = String::IndexOf(isolate, string, quotes, quote_index + 1);
439 // Build the replacement string.
443 ReplacementStringBuilder builder(isolate->heap(), string,