• Russ Cox's avatar
    bytes, strings: add Replace · 0bf413ab
    Russ Cox authored
    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.
    
    R=r, cw
    CC=golang-dev
    https://golang.org/cl/1731048
    0bf413ab
Name
Last commit
Last update
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
pkg Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...