Documentation ¶
Index ¶
- Variables
- func AreEmojiModifier(s string) bool
- func AreVariationSelectorLike(s string) bool
- func AreZeroWidthJoin(s string) bool
- func IsSpaceMoji(m Moji) bool
- func MojiToRune(m Moji) (rune, bool)
- func ResetCharWidth()
- func SetCharWidth(c rune, width int)
- type Moji
- type WidthT
- func GetCharWidth(n rune) WidthTdeprecated
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // SurrogatePairOk is true when the surrogated pair unicode is supported // If it is false, <NNNN> is displayed instead. SurrogatePairOk = isWindowsTerminal || isWezTerm || isContour // ZeroWidthJoinSequenceOk is true when ZWJ(U+200D) is supported. // If it is false, <NNNN> is displayed instead. ZeroWidthJoinSequenceOk = isWindowsTerminal || isWezTerm || isContour // VariationSequenceOk is true when Variation Sequences are supported. // If it is false, <NNNN> is displayed instead. VariationSequenceOk = isWindowsTerminal || isWezTerm || isContour // ModifierSequenceOk is false, SkinTone sequence are treated as two // character ModifierSequenceOk = isWindowsTerminal || isWezTerm // AmbiguousIsWide is true, EastAsianAmbiguous are treated as two width AmbiguousIsWide = !isWindowsTerminal )
Functions ¶
func AreEmojiModifier ¶
func AreZeroWidthJoin ¶
func IsSpaceMoji ¶
func MojiToRune ¶
func ResetCharWidth ¶
func ResetCharWidth()
ResetCharWidth resets the cache for the width of characters.
func SetCharWidth ¶
SetCharWidth sets the width of the character into the cache.
Types ¶
type Moji ¶
Moji is the interface for minimum unit to edit in readline
When we make a new implement type of Moji, we have to append the code in the function: StringToMoji() and KeyFuncInsertSelf().
func StringToMoji ¶
Click to show internal directories.
Click to hide internal directories.