Lines Matching defs:string

20 #include "src/strings/string-builder-inl.h"
21 #include "src/strings/string-search.h"
135 // the negation of an index into the replacement string.
143 // of the replacement string.
146 // string ranging over -tag .. data.
157 // the replacement string into an internal representation that avoids
266 // If no closing bracket is found, '$<' is treated as a string
285 // through the following '>' with the empty string.
356 // Find substrings of replacement string and create them as String objects.
360 if (tag <= 0) { // A replacement string slice.
663 // Guessing the number of parts that the final result string is built
753 // Add substring subject[prev;start] to answer string.
769 // Add substring subject[prev;length] to answer string.
777 // Shorten string and fill
888 // length of a string, i.e. it is always a Smi. We check anyway for security.
901 // length of a string, i.e. it is always a Smi. We check anyway for security.
1349 Isolate* isolate, Handle<JSRegExp> regexp, Handle<String> string,
1365 // Non-global regexp search, string replace.
1379 // A lastIndex exceeding the string length always returns null (signalling
1381 if (last_index <= static_cast<uint32_t>(string->length())) {
1384 RegExp::Exec(isolate, regexp, string, last_index, last_match_info),
1390 return string;
1403 builder.AppendString(factory->NewSubString(string, 0, start_index));
1406 MatchInfoBackedMatch m(isolate, regexp, string, match_indices);
1415 factory->NewSubString(string, end_index, string->length()));
1418 // Global regexp search, string replace.
1437 if (string->IsOneByteRepresentation()) {
1440 isolate, string, regexp, last_match_info);
1445 isolate, string, regexp, last_match_info);
1451 isolate, string, regexp, replace, last_match_info);
1522 // A lastIndex exceeding the string length always returns null (signalling
1641 // RegExp.prototype [ @@split ] ( string, limit )
1647 Handle<String> string = args.at<String>(1);
1697 const uint32_t length = string->length();
1704 isolate, result, RegExpUtils::RegExpExec(isolate, splitter, string,
1710 elems->set(0, *string);
1726 isolate, result, RegExpUtils::RegExpExec(isolate, splitter, string,
1731 RegExpUtils::AdvanceStringIndex(string, string_index, unicode));
1746 RegExpUtils::AdvanceStringIndex(string, string_index, unicode));
1752 factory->NewSubString(string, prev_string_index, string_index);
1786 factory->NewSubString(string, prev_string_index, length);
1795 // RegExp.prototype [ @@replace ] ( string, replaceValue )
1801 Handle<String> string = args.at<String>(1);
1806 string = String::Flatten(isolate, string);
1824 RegExpReplace(isolate, Handle<JSRegExp>::cast(recv), string, replace));
1829 const uint32_t length = string->length();
1854 isolate, result, RegExpUtils::RegExpExec(isolate, recv, string,
1872 isolate, recv, string, unicode));
1952 argv[cursor++] = string;
1971 VectorBackedMatch m(isolate, string, match, position,
1979 factory->NewSubString(string, next_source_position, position));
1988 factory->NewSubString(string, next_source_position, length));