Source File
common.go
Belonging Package
golang.org/x/text/internal/number
// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.package numberimport ()// A system identifies a CLDR numbering system.type system bytetype systemData struct {id systemdigitSize byte // number of UTF-8 bytes per digitzero [utf8.UTFMax]byte // UTF-8 sequence of zero digit.}// A SymbolType identifies a symbol of a specific kind.type SymbolType intconst (SymDecimal SymbolType = iotaSymGroupSymListSymPercentSignSymPlusSignSymMinusSignSymExponentialSymSuperscriptingExponentSymPerMilleSymInfinitySymNanSymTimeSeparatorNumSymbolTypes)const hasNonLatnMask = 0x8000// symOffset is an offset into altSymData if the bit indicated by hasNonLatnMask// is not 0 (with this bit masked out), and an offset into symIndex otherwise.//// TODO: this type can be a byte again if we use an indirection into altsymData// and introduce an alt -> offset slice (the length of this will be number of// alternatives plus 1). This also allows getting rid of the compactTag field// in altSymData. In total this will save about 1K.type symOffset uint16type altSymData struct {compactTag compact.IDsymIndex symOffsetsystem system}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |