graphemeBreakProperty

public func graphemeBreakProperty(Char) -> GraphemeBreakProperty

Looks up the UAX #29 Grapheme_Cluster_Break property for c.

O(1) — two array indexings into the trie. Codepoints above U+10FFFF (which are not valid Unicode scalars) yield .Other.

Examples

graphemeBreakProperty('a') // .Other graphemeBreakProperty('\r') // .CR graphemeBreakProperty('\u{200D}') // .ZWJ

Defined in lang/std/text/unicode/grapheme_tables.ks