Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultCondition = &Condition{EastAsianWidth}
View Source
var EastAsianWidth = IsEastAsian()
Functions ¶
func IsAmbiguousWidth ¶
IsAmbiguousWidth returns whether is ambiguous width or not.
func IsEastAsian ¶
func IsEastAsian() bool
func IsNeutralWidth ¶
IsAmbiguousWidth returns whether is ambiguous width or not.
func RuneWidth ¶
RuneWidth returns the number of cells in r. See http://www.unicode.org/reports/tr11/
func StringWidth ¶
Types ¶
type Condition ¶
type Condition struct {
EastAsianWidth bool
}
func NewCondition ¶
func NewCondition() *Condition
func (*Condition) RuneWidth ¶
RuneWidth returns the number of cells in r. See http://www.unicode.org/reports/tr11/
func (*Condition) StringWidth ¶
Click to show internal directories.
Click to hide internal directories.