Documentation ¶
Overview ¶
Package plural defines CLDR plural categories.
Index ¶
Constants ¶
View Source
const ( Invalid Category = "invalid" Zero = "zero" One = "one" Two = "two" Few = "few" Many = "many" Other = "other" )
All defined plural categories.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Category ¶
type Category string
Category represents a language pluralization form as defined here: http://cldr.unicode.org/index/cldr-spec/plural-rules
func NewCategory ¶
NewCategory returns src as a Category or Invalid and a non-nil error if src is not a valid Category.
type Operands ¶
type Operands struct { N float64 // absolute value of the source number (integer and decimals) I int64 // integer digits of n V int // number of visible fraction digits in n, with trailing zeros W int // number of visible fraction digits in n, without trailing zeros F int // visible fractional digits in n, with trailing zeros T int // visible fractional digits in n, without trailing zeros }
http://unicode.org/reports/tr35/tr35-numbers.html#Operands
func NewOperands ¶
Click to show internal directories.
Click to hide internal directories.