Descriptionbytes, strings: add Replace
This is the Replace I suggested in the review of CL 1114041.
It's true that we already have
regexp.MustCompile(regexp.QuoteMeta(old)).ReplaceAll(s, new)
but because this Replace is doing a simpler job it is
simpler to call and inherently more efficient.
I will add the bytes implementation and tests to the
CL after the strings one has been reviewed.
Patch Set 1 #Patch Set 2 : code review 1731048: bytes, strings: add Replace #
Total comments: 3
Patch Set 3 : code review 1731048: bytes, strings: add Replace #Patch Set 4 : code review 1731048: bytes, strings: add Replace #Patch Set 5 : code review 1731048: bytes, strings: add Replace #Patch Set 6 : code review 1731048: bytes, strings: add Replace #
MessagesTotal messages: 14
|