• 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
..
cmd Loading commit data...
lib9 Loading commit data...
libbio Loading commit data...
libcgo Loading commit data...
libmach Loading commit data...
pkg Loading commit data...
Make.386 Loading commit data...
Make.amd64 Loading commit data...
Make.arm Loading commit data...
Make.cmd Loading commit data...
Make.common Loading commit data...
Make.conf Loading commit data...
Make.pkg Loading commit data...
all-arm.bash Loading commit data...
all-nacl.bash Loading commit data...
all.bash Loading commit data...
clean.bash Loading commit data...
env.bash Loading commit data...
make.bash Loading commit data...
quietgcc.bash Loading commit data...
run.bash Loading commit data...
sudo.bash Loading commit data...
version.bash Loading commit data...