• Rob Pike's avatar
    unicode: add "In" function to test membership of a rune · 6a801539
    Rob Pike authored
    The existing function, IsOneOf, is hard to use. Since the slice comes
    before the rune, in parallelism with the other Is functions, the slice
    is clumsy to build. This CL adds a nicer-signatured In function of
    equivalent functionality (its implementation is identical) that's much
    easier to use. Compare:
            unicode.IsOneOf([]*unicode.RangeTable{unicode.Letter, unicode.Number}, r)
            unicode.In(r, unicode.Letter, unicode.Number)
    
    R=golang-dev, adg
    CC=golang-dev
    https://golang.org/cl/11672044
    6a801539
Name
Last commit
Last update
..
cmd Loading commit data...
lib9 Loading commit data...
libbio Loading commit data...
libmach Loading commit data...
pkg Loading commit data...
Make.dist Loading commit data...
all.bash Loading commit data...
all.bat Loading commit data...
all.rc Loading commit data...
clean.bash Loading commit data...
clean.bat Loading commit data...
clean.rc Loading commit data...
make.bash Loading commit data...
make.bat Loading commit data...
make.rc Loading commit data...
race.bash Loading commit data...
race.bat Loading commit data...
run.bash Loading commit data...
run.bat Loading commit data...
run.rc Loading commit data...
sudo.bash Loading commit data...