Lines Matching defs:string
11 #include "src/strings/string-search.h"
316 // string contents.
350 MaybeHandle<String> UnescapeSlow(Isolate* isolate, Handle<String> string,
353 int length = string->length();
358 base::Vector<const Char> vector = string->GetCharVector<Char>(no_gc);
371 isolate->factory()->NewProperSubString(string, 0, start_index);
381 base::Vector<const Char> vector = string->GetCharVector<Char>(no_gc);
394 base::Vector<const Char> vector = string->GetCharVector<Char>(no_gc);
440 Handle<String> string) {
441 DCHECK(string->IsFlat());
443 int length = string->length();
447 base::Vector<const Char> vector = string->GetCharVector<Char>(no_gc);
464 // No length change implies no change. Return original string if no change.
465 if (escaped_length == length) return string;
475 base::Vector<const Char> vector = string->GetCharVector<Char>(no_gc);
509 MaybeHandle<String> Uri::Escape(Isolate* isolate, Handle<String> string) {
511 string = String::Flatten(isolate, string);
512 return String::IsOneByteRepresentationUnderneath(*string)
513 ? EscapePrivate<uint8_t>(isolate, string)
514 : EscapePrivate<base::uc16>(isolate, string);
517 MaybeHandle<String> Uri::Unescape(Isolate* isolate, Handle<String> string) {
519 string = String::Flatten(isolate, string);
520 return String::IsOneByteRepresentationUnderneath(*string)
521 ? UnescapePrivate<uint8_t>(isolate, string)
522 : UnescapePrivate<base::uc16>(isolate, string);