equal
deleted
inserted
replaced
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 |