mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-19 23:14:55 +02:00
Use a multistage lookup table for grapheme segmentation
This commit is contained in:
32
tools/wcswidth/char-props-data.go
generated
Normal file
32
tools/wcswidth/char-props-data.go
generated
Normal file
@@ -0,0 +1,32 @@
|
||||
package wcswidth
|
||||
|
||||
|
||||
type GraphemeBreakProperty uint8
|
||||
|
||||
const (
|
||||
GBP_AtStart GraphemeBreakProperty = iota
|
||||
GBP_None
|
||||
GBP_Prepend
|
||||
GBP_CR
|
||||
GBP_LF
|
||||
GBP_Control
|
||||
GBP_Extend
|
||||
GBP_Regional_Indicator
|
||||
GBP_SpacingMark
|
||||
GBP_L
|
||||
GBP_V
|
||||
GBP_T
|
||||
GBP_LV
|
||||
GBP_LVT
|
||||
GBP_ZWJ
|
||||
)
|
||||
|
||||
type IndicConjunctBreak uint8
|
||||
|
||||
const (
|
||||
ICB_None IndicConjunctBreak = iota
|
||||
ICB_Linker
|
||||
ICB_Consonant
|
||||
ICB_Extend
|
||||
)
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user