Documentation
¶
Index ¶
- func GraphemeWidth(cluster []rune) int
- func IsGraphemeExtend(r rune) bool
- func IsRegionalIndicator(r rune) bool
- func IsWideRune(r rune) bool
- func NextGraphemeBoundary(runes []rune, pos int) int
- func PreviousGraphemeBoundary(runes []rune, pos int) int
- func RuneByteOffsets(text string) []int
- func TruncateFragmentToWidth(text string, maxWidth int) (string, int)
- func VisibleWidthPlain(clean string) int
- type GraphemeSpan
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GraphemeWidth ¶
func IsGraphemeExtend ¶
func IsRegionalIndicator ¶
func IsWideRune ¶
func NextGraphemeBoundary ¶
func RuneByteOffsets ¶
func TruncateFragmentToWidth ¶
func VisibleWidthPlain ¶
Types ¶
type GraphemeSpan ¶
func GraphemeSpans ¶
func GraphemeSpans(runes []rune) []GraphemeSpan
Click to show internal directories.
Click to hide internal directories.