Home
last modified time | relevance | path

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

/external/libchrome/base/strings/
Dstring_util.cc744 const size_t replace_length = replace_with.length(); in DoReplaceMatchesAfterOffset() local
746 str->replace(first_match, find_length, replace_with.data(), replace_length); in DoReplaceMatchesAfterOffset()
752 if (find_length == replace_length) { in DoReplaceMatchesAfterOffset()
755 offset = matcher.Find(*str, offset + replace_length)) { in DoReplaceMatchesAfterOffset()
756 CharTraits::copy(buffer + offset, replace_with.data(), replace_length); in DoReplaceMatchesAfterOffset()
779 if (replace_length > find_length) { in DoReplaceMatchesAfterOffset()
782 const size_t expansion_per_match = (replace_length - find_length); in DoReplaceMatchesAfterOffset()
801 str->append(replace_with.data(), replace_length); in DoReplaceMatchesAfterOffset()
845 if (replace_length) { in DoReplaceMatchesAfterOffset()
847 replace_length); in DoReplaceMatchesAfterOffset()
[all …]