• 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
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc 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...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...