Home
last modified time | relevance | path

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

/third_party/gn/src/base/strings/
Dstring_util.cc662 const size_t find_length = matcher.MatchSize(); in DoReplaceMatchesAfterOffset() local
663 if (!find_length) in DoReplaceMatchesAfterOffset()
675 str->replace(first_match, find_length, replace_with.data(), replace_length); in DoReplaceMatchesAfterOffset()
681 if (find_length == 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()
714 match = matcher.Find(*str, match + find_length)) { in DoReplaceMatchesAfterOffset()
731 pos = match + find_length; in DoReplaceMatchesAfterOffset()
747 size_t shift_src = first_match + find_length; in DoReplaceMatchesAfterOffset()
779 read_offset += find_length; in DoReplaceMatchesAfterOffset()