package wcswidth import ( "fmt" "iter" ) var _ = fmt.Print type GraphemeSegmentationState struct { last_char_prop GraphemeBreakProperty /* True if the last character ends a sequence of Indic_Conjunct_Break values: consonant {extend|linker}* */ incb_consonant_extended bool /* True if the last character ends a sequence of Indic_Conjunct_Break values: consonant {extend|linker}* linker */ incb_consonant_extended_linker bool /* True if the last character ends a sequence of Indic_Conjunct_Break values: consonant {extend|linker}* linker {extend|linker}* */ incb_consonant_extended_linker_extended bool /* True if the last character ends an emoji modifier sequence \p{Extended_Pictographic} Extend*. */ emoji_modifier_sequence bool /* True if the last character was immediately preceded by an emoji modifier sequence \p{Extended_Pictographic} Extend*. */ emoji_modifier_sequence_before_last_char bool /* Number of consecutive regional indicator (RI) characters seen immediately before the current point. */ ri_count uint } func CharPropsFor(ch rune) CharProps { return charprops_t2[(rune(charprops_t1[ch>>charprops_shift])<