Home
last modified time | relevance | path

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

/third_party/gn/src/base/strings/
Dstring_util.cc673 const size_t replace_length = replace_with.length(); in DoReplaceMatchesAfterOffset() local
675 str->replace(first_match, find_length, replace_with.data(), replace_length); in DoReplaceMatchesAfterOffset()
681 if (find_length == replace_length) { in DoReplaceMatchesAfterOffset()
684 offset = matcher.Find(*str, offset + replace_length)) { in DoReplaceMatchesAfterOffset()
685 CharTraits::copy(buffer + offset, replace_with.data(), replace_length); in DoReplaceMatchesAfterOffset()
708 if (replace_length > find_length) { in DoReplaceMatchesAfterOffset()
711 const size_t expansion_per_match = (replace_length - find_length); in DoReplaceMatchesAfterOffset()
730 str->append(replace_with.data(), replace_length); in DoReplaceMatchesAfterOffset()
774 if (replace_length) { in DoReplaceMatchesAfterOffset()
776 replace_length); in DoReplaceMatchesAfterOffset()
[all …]