Documentation
¶
Overview ¶
Package pattern parses brace-delimited formatter patterns.
It provides the small tokenizer used by ECMA-402 partition algorithms before formatter packages substitute localized field values.
Only internal ECMA-402 and formatter code should use this package; public callers receive already formatted strings or parts.
Package pattern parses generated CLDR placeholder patterns.
Index ¶
Constants ¶
View Source
const Literal = "literal"
Literal is the part type for raw pattern text.
Variables ¶
View Source
var ErrInvalid = errors.New("invalid pattern")
ErrInvalid classifies malformed placeholder patterns.
Functions ¶
func FormatIndexed ¶
FormatIndexed replaces numeric placeholders with the corresponding value.
Types ¶
Click to show internal directories.
Click to hide internal directories.