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 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/
Types ¶
type Condition ¶
type Condition struct {
EastAsianWidth bool
}
func (*Condition) RuneWidth ¶
RuneWidth returns the number of cells in r. See http://www.unicode.org/reports/tr11/
Click to show internal directories.
Click to hide internal directories.