Documentation ¶
Overview ¶
This file is generated by cldrplural/generator/generate.sh; DO NOT EDIT
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.
Click to show internal directories.
Click to hide internal directories.