]> Cypherpunks repositories - gostls13.git/commit
strings: remove byteBitmap
authorRui Ueyama <ruiu@google.com>
Thu, 17 Jul 2014 16:55:12 +0000 (09:55 -0700)
committerRui Ueyama <ruiu@google.com>
Thu, 17 Jul 2014 16:55:12 +0000 (09:55 -0700)
commit90870e61b7311a0c2b4d3059368cf75006157a50
tree5d91ad41e09d471041c5fca8ca6a57f686cc41c0
parent8158b8b68606fa101a89d6e761744ea79f969b77
strings: remove byteBitmap

Previously we had a bitmap to check whether or not a byte
appears in a string should be replaced. But we don't actually
need a separate bitmap for that purpose. Removing the bitmap
makes the code simpler.

LGTM=dave, iant, nigeltao
R=golang-codereviews, dave, gobot, nigeltao, iant, bradfitz, rsc
CC=golang-codereviews
https://golang.org/cl/110100043
src/pkg/strings/replace.go