Documentation
¶
Index ¶
- func HasFullWidth(s string) bool
- func HasHalfWidth(s string) bool
- func IsFullWidth(s string) bool
- func IsFullWidthRune(c rune) bool
- func IsHalfWidth(s string) bool
- func IsHalfWidthRune(c rune) bool
- func IsVariableWidth(s string) bool
- func ToASCII(s string) string
- func ToASCIIRune(c rune) rune
- func ToFullRune(c rune) rune
- func ToFullWidth(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasFullWidth ¶
HasFullWidth checks if the string contains any full-width chars.
func HasHalfWidth ¶
HasHalfWidth checks if the string contains any unicode half-width chars.
func IsFullWidth ¶
IsFullWidth checks if the string contains full-width chars only.
func IsFullWidthRune ¶
func IsHalfWidth ¶
IsHalfWidth checks if the string contains half-width chars only.
func IsHalfWidthRune ¶
IsHalfWidthRune checks if the rune c is unicode half-width char. \u0000-\u00FF\uFF61-\uFFDF\uFFE8-\uFFEE
func IsVariableWidth ¶
IsVariableWidth checks if the string contains a mixture of full and half-width chars.
func ToASCIIRune ¶
ToASCIIRune convert multi ascii rune c to single ascii rune
func ToFullRune ¶
ToFullRune convert single ascii rune c to multi ascii rune
func ToFullWidth ¶
ToFullWidth convert the string from single ascii to multi ascii
Types ¶
This section is empty.