Documentation ¶
Overview ¶
This file is generated by cldrplural/generator/generate.sh; DO NOT EDIT
Package cldrplural provides support for using CLDR plural rules in text.
NOTE: The following package are subject to change and are not intended primarily for official use. However, they can be helpful if you want to implement your own catalog. So use them at your own risk.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Operand ¶
type Operand int
const ( OperandN Operand = iota // the absolute value of N.* OperandI // the integer digits of N.* OperandV // the number of visible fraction digits in N, with trailing zeros.* OperandW // the number of visible fraction digits in N, without trailing zeros.* OperandF // the visible fraction digits in N, with trailing zeros, expressed as an integer.* OperandT // the visible fraction digits in N, without trailing zeros, expressed as an integer.* OperandC // compact decimal exponent value: exponent of the power of 10 used in compact decimal formatting. )
type Operands ¶
The Operands are numeric values corresponding to features of the source number.
func MustNewOperands ¶
func MustNewOperands(a interface{}) *Operands
func NewOperands ¶
NewOperands converts the representation of a float value into the appropriate Operands.
type RuleSet ¶
func ForLanguage ¶
ForLanguage returns the set of rules for a language. If no matching language is found, the English rule set and false are returned.
func MustParseRules ¶
func ParseRules ¶
ParseRules creates a RuleSet from a set of rules, which can be evaluated at runtime.