vendor/golang.org/x/text/runes/runes.go
changeset 265 05c40b36d3b2
parent 260 445e01aede7e
equal deleted inserted replaced
264:8f478162d991 265:05c40b36d3b2
    31 // the given RangeTable.
    31 // the given RangeTable.
    32 func In(rt *unicode.RangeTable) Set {
    32 func In(rt *unicode.RangeTable) Set {
    33 	return setFunc(func(r rune) bool { return unicode.Is(rt, r) })
    33 	return setFunc(func(r rune) bool { return unicode.Is(rt, r) })
    34 }
    34 }
    35 
    35 
    36 // In creates a Set with a Contains method that returns true for all runes not
    36 // NotIn creates a Set with a Contains method that returns true for all runes not
    37 // in the given RangeTable.
    37 // in the given RangeTable.
    38 func NotIn(rt *unicode.RangeTable) Set {
    38 func NotIn(rt *unicode.RangeTable) Set {
    39 	return setFunc(func(r rune) bool { return !unicode.Is(rt, r) })
    39 	return setFunc(func(r rune) bool { return !unicode.Is(rt, r) })
    40 }
    40 }
    41 
    41