Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/locales.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'chr/chr.go')
-rw-r--r--chr/chr.go208
1 files changed, 91 insertions, 117 deletions
diff --git a/chr/chr.go b/chr/chr.go
index 7e3896f9..a923156c 100644
--- a/chr/chr.go
+++ b/chr/chr.go
@@ -14,31 +14,31 @@ type chr struct {
pluralsCardinal []locales.PluralRule
pluralsOrdinal []locales.PluralRule
pluralsRange []locales.PluralRule
- decimal []byte
- group []byte
- minus []byte
- percent []byte
- perMille []byte
- timeSeparator []byte
- inifinity []byte
- currencies [][]byte // idx = enum of currency code
- currencyNegativePrefix []byte
- currencyNegativeSuffix []byte
- monthsAbbreviated [][]byte
- monthsNarrow [][]byte
- monthsWide [][]byte
- daysAbbreviated [][]byte
- daysNarrow [][]byte
- daysShort [][]byte
- daysWide [][]byte
- periodsAbbreviated [][]byte
- periodsNarrow [][]byte
- periodsShort [][]byte
- periodsWide [][]byte
- erasAbbreviated [][]byte
- erasNarrow [][]byte
- erasWide [][]byte
- timezones map[string][]byte
+ decimal string
+ group string
+ minus string
+ percent string
+ perMille string
+ timeSeparator string
+ inifinity string
+ currencies []string // idx = enum of currency code
+ currencyNegativePrefix string
+ currencyNegativeSuffix string
+ monthsAbbreviated []string
+ monthsNarrow []string
+ monthsWide []string
+ daysAbbreviated []string
+ daysNarrow []string
+ daysShort []string
+ daysWide []string
+ periodsAbbreviated []string
+ periodsNarrow []string
+ periodsShort []string
+ periodsWide []string
+ erasAbbreviated []string
+ erasNarrow []string
+ erasWide []string
+ timezones map[string]string
}
// New returns a new instance of translator for the 'chr' locale
@@ -48,28 +48,28 @@ func New() locales.Translator {
pluralsCardinal: []locales.PluralRule{2, 6},
pluralsOrdinal: nil,
pluralsRange: nil,
- decimal: []byte{0x2e},
- group: []byte{0x2c},
- minus: []byte{0x2d},
- percent: []byte{0x25},
- perMille: []byte{0xe2, 0x80, 0xb0},
- timeSeparator: []byte{0x3a},
- inifinity: []byte{0xe2, 0x88, 0x9e},
- currencies: [][]uint8{{0x41, 0x44, 0x50, 0x20}, {0x41, 0x45, 0x44, 0x20}, {0x41, 0x46, 0x41, 0x20}, {0x41, 0x46, 0x4e, 0x20}, {0x41, 0x4c, 0x4b, 0x20}, {0x41, 0x4c, 0x4c, 0x20}, {0x41, 0x4d, 0x44, 0x20}, {0x41, 0x4e, 0x47, 0x20}, {0x41, 0x4f, 0x41, 0x20}, {0x41, 0x4f, 0x4b, 0x20}, {0x41, 0x4f, 0x4e, 0x20}, {0x41, 0x4f, 0x52, 0x20}, {0x41, 0x52, 0x41, 0x20}, {0x41, 0x52, 0x4c, 0x20}, {0x41, 0x52, 0x4d, 0x20}, {0x41, 0x52, 0x50, 0x20}, {0x41, 0x52, 0x53, 0x20}, {0x41, 0x54, 0x53, 0x20}, {0x41, 0x55, 0x44, 0x20}, {0x41, 0x57, 0x47, 0x20}, {0x41, 0x5a, 0x4d, 0x20}, {0x41, 0x5a, 0x4e, 0x20}, {0x42, 0x41, 0x44, 0x20}, {0x42, 0x41, 0x4d, 0x20}, {0x42, 0x41, 0x4e, 0x20}, {0x42, 0x42, 0x44, 0x20}, {0x42, 0x44, 0x54, 0x20}, {0x42, 0x45, 0x43, 0x20}, {0x42, 0x45, 0x46, 0x20}, {0x42, 0x45, 0x4c, 0x20}, {0x42, 0x47, 0x4c, 0x20}, {0x42, 0x47, 0x4d, 0x20}, {0x42, 0x47, 0x4e, 0x20}, {0x42, 0x47, 0x4f, 0x20}, {0x42, 0x48, 0x44, 0x20}, {0x42, 0x49, 0x46, 0x20}, {0x42, 0x4d, 0x44, 0x20}, {0x42, 0x4e, 0x44, 0x20}, {0x42, 0x4f, 0x42, 0x20}, {0x42, 0x4f, 0x4c, 0x20}, {0x42, 0x4f, 0x50, 0x20}, {0x42, 0x4f, 0x56, 0x20}, {0x42, 0x52, 0x42, 0x20}, {0x42, 0x52, 0x43, 0x20}, {0x42, 0x52, 0x45, 0x20}, {0x42, 0x52, 0x4c, 0x20}, {0x42, 0x52, 0x4e, 0x20}, {0x42, 0x52, 0x52, 0x20}, {0x42, 0x52, 0x5a, 0x20}, {0x42, 0x53, 0x44, 0x20}, {0x42, 0x54, 0x4e, 0x20}, {0x42, 0x55, 0x4b, 0x20}, {0x42, 0x57, 0x50, 0x20}, {0x42, 0x59, 0x42, 0x20}, {0x42, 0x59, 0x52, 0x20}, {0x42, 0x5a, 0x44, 0x20}, {0x43, 0x41, 0x44, 0x20}, {0x43, 0x44, 0x46, 0x20}, {0x43, 0x48, 0x45, 0x20}, {0x43, 0x48, 0x46, 0x20}, {0x43, 0x48, 0x57, 0x20}, {0x43, 0x4c, 0x45, 0x20}, {0x43, 0x4c, 0x46, 0x20}, {0x43, 0x4c, 0x50, 0x20}, {0x43, 0x4e, 0x58, 0x20}, {0x43, 0x4e, 0x59, 0x20}, {0x43, 0x4f, 0x50, 0x20}, {0x43, 0x4f, 0x55, 0x20}, {0x43, 0x52, 0x43, 0x20}, {0x43, 0x53, 0x44, 0x20}, {0x43, 0x53, 0x4b, 0x20}, {0x43, 0x55, 0x43, 0x20}, {0x43, 0x55, 0x50, 0x20}, {0x43, 0x56, 0x45, 0x20}, {0x43, 0x59, 0x50, 0x20}, {0x43, 0x5a, 0x4b, 0x20}, {0x44, 0x44, 0x4d, 0x20}, {0x44, 0x45, 0x4d, 0x20}, {0x44, 0x4a, 0x46, 0x20}, {0x44, 0x4b, 0x4b, 0x20}, {0x44, 0x4f, 0x50, 0x20}, {0x44, 0x5a, 0x44, 0x20}, {0x45, 0x43, 0x53, 0x20}, {0x45, 0x43, 0x56, 0x20}, {0x45, 0x45, 0x4b, 0x20}, {0x45, 0x47, 0x50, 0x20}, {0x45, 0x52, 0x4e, 0x20}, {0x45, 0x53, 0x41, 0x20}, {0x45, 0x53, 0x42, 0x20}, {0x45, 0x53, 0x50, 0x20}, {0x45, 0x54, 0x42, 0x20}, {0x45, 0x55, 0x52, 0x20}, {0x46, 0x49, 0x4d, 0x20}, {0x46, 0x4a, 0x44, 0x20}, {0x46, 0x4b, 0x50, 0x20}, {0x46, 0x52, 0x46, 0x20}, {0x47, 0x42, 0x50, 0x20}, {0x47, 0x45, 0x4b, 0x20}, {0x47, 0x45, 0x4c, 0x20}, {0x47, 0x48, 0x43, 0x20}, {0x47, 0x48, 0x53, 0x20}, {0x47, 0x49, 0x50, 0x20}, {0x47, 0x4d, 0x44, 0x20}, {0x47, 0x4e, 0x46, 0x20}, {0x47, 0x4e, 0x53, 0x20}, {0x47, 0x51, 0x45, 0x20}, {0x47, 0x52, 0x44, 0x20}, {0x47, 0x54, 0x51, 0x20}, {0x47, 0x57, 0x45, 0x20}, {0x47, 0x57, 0x50, 0x20}, {0x47, 0x59, 0x44, 0x20}, {0x48, 0x4b, 0x44, 0x20}, {0x48, 0x4e, 0x4c, 0x20}, {0x48, 0x52, 0x44, 0x20}, {0x48, 0x52, 0x4b, 0x20}, {0x48, 0x54, 0x47, 0x20}, {0x48, 0x55, 0x46, 0x20}, {0x49, 0x44, 0x52, 0x20}, {0x49, 0x45, 0x50, 0x20}, {0x49, 0x4c, 0x50, 0x20}, {0x49, 0x4c, 0x52, 0x20}, {0x49, 0x4c, 0x53, 0x20}, {0x49, 0x4e, 0x52, 0x20}, {0x49, 0x51, 0x44, 0x20}, {0x49, 0x52, 0x52, 0x20}, {0x49, 0x53, 0x4a, 0x20}, {0x49, 0x53, 0x4b, 0x20}, {0x49, 0x54, 0x4c, 0x20}, {0x4a, 0x4d, 0x44, 0x20}, {0x4a, 0x4f, 0x44, 0x20}, {0x4a, 0x50, 0x59, 0x20}, {0x4b, 0x45, 0x53, 0x20}, {0x4b, 0x47, 0x53, 0x20}, {0x4b, 0x48, 0x52, 0x20}, {0x4b, 0x4d, 0x46, 0x20}, {0x4b, 0x50, 0x57, 0x20}, {0x4b, 0x52, 0x48, 0x20}, {0x4b, 0x52, 0x4f, 0x20}, {0x4b, 0x52, 0x57, 0x20}, {0x4b, 0x57, 0x44, 0x20}, {0x4b, 0x59, 0x44, 0x20}, {0x4b, 0x5a, 0x54, 0x20}, {0x4c, 0x41, 0x4b, 0x20}, {0x4c, 0x42, 0x50, 0x20}, {0x4c, 0x4b, 0x52, 0x20}, {0x4c, 0x52, 0x44, 0x20}, {0x4c, 0x53, 0x4c, 0x20}, {0x4c, 0x54, 0x4c, 0x20}, {0x4c, 0x54, 0x54, 0x20}, {0x4c, 0x55, 0x43, 0x20}, {0x4c, 0x55, 0x46, 0x20}, {0x4c, 0x55, 0x4c, 0x20}, {0x4c, 0x56, 0x4c, 0x20}, {0x4c, 0x56, 0x52, 0x20}, {0x4c, 0x59, 0x44, 0x20}, {0x4d, 0x41, 0x44, 0x20}, {0x4d, 0x41, 0x46, 0x20}, {0x4d, 0x43, 0x46, 0x20}, {0x4d, 0x44, 0x43, 0x20}, {0x4d, 0x44, 0x4c, 0x20}, {0x4d, 0x47, 0x41, 0x20}, {0x4d, 0x47, 0x46, 0x20}, {0x4d, 0x4b, 0x44, 0x20}, {0x4d, 0x4b, 0x4e, 0x20}, {0x4d, 0x4c, 0x46, 0x20}, {0x4d, 0x4d, 0x4b, 0x20}, {0x4d, 0x4e, 0x54, 0x20}, {0x4d, 0x4f, 0x50, 0x20}, {0x4d, 0x52, 0x4f, 0x20}, {0x4d, 0x54, 0x4c, 0x20}, {0x4d, 0x54, 0x50, 0x20}, {0x4d, 0x55, 0x52, 0x20}, {0x4d, 0x56, 0x50, 0x20}, {0x4d, 0x56, 0x52, 0x20}, {0x4d, 0x57, 0x4b, 0x20}, {0x4d, 0x58, 0x4e, 0x20}, {0x4d, 0x58, 0x50, 0x20}, {0x4d, 0x58, 0x56, 0x20}, {0x4d, 0x59, 0x52, 0x20}, {0x4d, 0x5a, 0x45, 0x20}, {0x4d, 0x5a, 0x4d, 0x20}, {0x4d, 0x5a, 0x4e, 0x20}, {0x4e, 0x41, 0x44, 0x20}, {0x4e, 0x47, 0x4e, 0x20}, {0x4e, 0x49, 0x43, 0x20}, {0x4e, 0x49, 0x4f, 0x20}, {0x4e, 0x4c, 0x47, 0x20}, {0x4e, 0x4f, 0x4b, 0x20}, {0x4e, 0x50, 0x52, 0x20}, {0x4e, 0x5a, 0x44, 0x20}, {0x4f, 0x4d, 0x52, 0x20}, {0x50, 0x41, 0x42, 0x20}, {0x50, 0x45, 0x49, 0x20}, {0x50, 0x45, 0x4e, 0x20}, {0x50, 0x45, 0x53, 0x20}, {0x50, 0x47, 0x4b, 0x20}, {0x50, 0x48, 0x50, 0x20}, {0x50, 0x4b, 0x52, 0x20}, {0x50, 0x4c, 0x4e, 0x20}, {0x50, 0x4c, 0x5a, 0x20}, {0x50, 0x54, 0x45, 0x20}, {0x50, 0x59, 0x47, 0x20}, {0x51, 0x41, 0x52, 0x20}, {0x52, 0x48, 0x44, 0x20}, {0x52, 0x4f, 0x4c, 0x20}, {0x52, 0x4f, 0x4e, 0x20}, {0x52, 0x53, 0x44, 0x20}, {0x52, 0x55, 0x42, 0x20}, {0x52, 0x55, 0x52, 0x20}, {0x52, 0x57, 0x46, 0x20}, {0x53, 0x41, 0x52, 0x20}, {0x53, 0x42, 0x44, 0x20}, {0x53, 0x43, 0x52, 0x20}, {0x53, 0x44, 0x44, 0x20}, {0x53, 0x44, 0x47, 0x20}, {0x53, 0x44, 0x50, 0x20}, {0x53, 0x45, 0x4b, 0x20}, {0x53, 0x47, 0x44, 0x20}, {0x53, 0x48, 0x50, 0x20}, {0x53, 0x49, 0x54, 0x20}, {0x53, 0x4b, 0x4b, 0x20}, {0x53, 0x4c, 0x4c, 0x20}, {0x53, 0x4f, 0x53, 0x20}, {0x53, 0x52, 0x44, 0x20}, {0x53, 0x52, 0x47, 0x20}, {0x53, 0x53, 0x50, 0x20}, {0x53, 0x54, 0x44, 0x20}, {0x53, 0x55, 0x52, 0x20}, {0x53, 0x56, 0x43, 0x20}, {0x53, 0x59, 0x50, 0x20}, {0x53, 0x5a, 0x4c, 0x20}, {0x54, 0x48, 0x42, 0x20}, {0x54, 0x4a, 0x52, 0x20}, {0x54, 0x4a, 0x53, 0x20}, {0x54, 0x4d, 0x4d, 0x20}, {0x54, 0x4d, 0x54, 0x20}, {0x54, 0x4e, 0x44, 0x20}, {0x54, 0x4f, 0x50, 0x20}, {0x54, 0x50, 0x45, 0x20}, {0x54, 0x52, 0x4c, 0x20}, {0x54, 0x52, 0x59, 0x20}, {0x54, 0x54, 0x44, 0x20}, {0x54, 0x57, 0x44, 0x20}, {0x54, 0x5a, 0x53, 0x20}, {0x55, 0x41, 0x48, 0x20}, {0x55, 0x41, 0x4b, 0x20}, {0x55, 0x47, 0x53, 0x20}, {0x55, 0x47, 0x58, 0x20}, {0x24}, {0x55, 0x53, 0x4e, 0x20}, {0x55, 0x53, 0x53, 0x20}, {0x55, 0x59, 0x49, 0x20}, {0x55, 0x59, 0x50, 0x20}, {0x55, 0x59, 0x55, 0x20}, {0x55, 0x5a, 0x53, 0x20}, {0x56, 0x45, 0x42, 0x20}, {0x56, 0x45, 0x46, 0x20}, {0x56, 0x4e, 0x44, 0x20}, {0x56, 0x4e, 0x4e, 0x20}, {0x56, 0x55, 0x56, 0x20}, {0x57, 0x53, 0x54, 0x20}, {0x58, 0x41, 0x46, 0x20}, {0x58, 0x41, 0x47, 0x20}, {0x58, 0x41, 0x55, 0x20}, {0x58, 0x42, 0x41, 0x20}, {0x58, 0x42, 0x42, 0x20}, {0x58, 0x42, 0x43, 0x20}, {0x58, 0x42, 0x44, 0x20}, {0x58, 0x43, 0x44, 0x20}, {0x58, 0x44, 0x52, 0x20}, {0x58, 0x45, 0x55, 0x20}, {0x58, 0x46, 0x4f, 0x20}, {0x58, 0x46, 0x55, 0x20}, {0x58, 0x4f, 0x46, 0x20}, {0x58, 0x50, 0x44, 0x20}, {0x58, 0x50, 0x46, 0x20}, {0x58, 0x50, 0x54, 0x20}, {0x58, 0x52, 0x45, 0x20}, {0x58, 0x53, 0x55, 0x20}, {0x58, 0x54, 0x53, 0x20}, {0x58, 0x55, 0x41, 0x20}, {0x58, 0x58, 0x58, 0x20}, {0x59, 0x44, 0x44, 0x20}, {0x59, 0x45, 0x52, 0x20}, {0x59, 0x55, 0x44, 0x20}, {0x59, 0x55, 0x4d, 0x20}, {0x59, 0x55, 0x4e, 0x20}, {0x59, 0x55, 0x52, 0x20}, {0x5a, 0x41, 0x4c, 0x20}, {0x5a, 0x41, 0x52, 0x20}, {0x5a, 0x4d, 0x4b, 0x20}, {0x5a, 0x4d, 0x57, 0x20}, {0x5a, 0x52, 0x4e, 0x20}, {0x5a, 0x52, 0x5a, 0x20}, {0x5a, 0x57, 0x44, 0x20}, {0x5a, 0x57, 0x4c, 0x20}, {0x5a, 0x57, 0x52, 0x20}},
- currencyNegativePrefix: []byte{0x28},
- currencyNegativeSuffix: []byte{0x29},
- monthsAbbreviated: [][]uint8{[]uint8(nil), {0xe1, 0x8e, 0xa4, 0xe1, 0x8f, 0x83}, {0xe1, 0x8e, 0xa7, 0xe1, 0x8e, 0xa6}, {0xe1, 0x8e, 0xa0, 0xe1, 0x8f, 0x85}, {0xe1, 0x8e, 0xa7, 0xe1, 0x8f, 0xac}, {0xe1, 0x8e, 0xa0, 0xe1, 0x8f, 0x82}, {0xe1, 0x8f, 0x95, 0xe1, 0x8e, 0xad}, {0xe1, 0x8e, 0xab, 0xe1, 0x8f, 0xb0}, {0xe1, 0x8e, 0xa6, 0xe1, 0x8e, 0xb6}, {0xe1, 0x8f, 0x9a, 0xe1, 0x8e, 0xb5}, {0xe1, 0x8f, 0x9a, 0xe1, 0x8f, 0x82}, {0xe1, 0x8f, 0x85, 0xe1, 0x8f, 0x93}, {0xe1, 0x8e, 0xa5, 0xe1, 0x8f, 0x8d}},
- monthsNarrow: [][]uint8{[]uint8(nil), {0xe1, 0x8e, 0xa4}, {0xe1, 0x8e, 0xa7}, {0xe1, 0x8e, 0xa0}, {0xe1, 0x8e, 0xa7}, {0xe1, 0x8e, 0xa0}, {0xe1, 0x8f, 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e1, 0x8e, 0xa6, 0x20, 0xe1, 0x8e, 0xa2, 0xe1, 0x8f, 0xb3, 0xe1, 0x8f, 0xa9, 0xe1, 0x8e, 0xaa, 0xe1, 0x8f, 0x97}, "ARST": {0x41, 0x52, 0x53, 0x54}, "ADT": {0x41, 0x44, 0x54}, "UYST": {0x55, 0x59, 0x53, 0x54}, "GFT": {0x47, 0x46, 0x54}, "MYT": {0x4d, 0x59, 0x54}, "BT": {0x42, 0x54}, "∅∅∅": {0xe2, 0x88, 0x85, 0xe2, 0x88, 0x85, 0xe2, 0x88, 0x85}, "SGT": {0x53, 0x47, 0x54}, "AST": {0x41, 0x53, 0x54}, "PST": {0xe1, 0x8f, 0xad, 0xe1, 0x8f, 0x95, 0xe1, 0x8e, 0xb5, 0xe1, 0x8e, 0xac, 0x20, 0xe1, 0x8f, 0xb0, 0xe1, 0x8e, 0xb5, 0xe1, 0x8f, 0x8a, 0x20, 0xe1, 0x8f, 0x97, 0xe1, 0x8f, 0x99, 0xe1, 0x8e, 0xb3, 0xe1, 0x8e, 0xa9, 0x20, 0xe1, 0x8e, 0xa2, 0xe1, 0x8f, 0xb3, 0xe1, 0x8f, 0xa9, 0xe1, 0x8e, 0xaa, 0xe1, 0x8f, 0x97}, "CLT": {0x43, 0x4c, 0x54}, "AEST": {0x41, 0x45, 0x53, 0x54}, "HKT": {0x48, 0x4b, 0x54}, "ACST": {0x41, 0x43, 0x53, 0x54}, "MESZ": {0x4d, 0x45, 0x53, 0x5a}, "NZDT": {0x4e, 0x5a, 0x44, 0x54}, "IST": {0x49, 0x53, 0x54}, "HAT": {0x48, 0x41, 0x54}, "ACWDT": {0x41, 0x43, 0x57, 0x44, 0x54}, "CAT": {0x43, 0x41, 0x54}, "CHADT": {0x43, 0x48, 0x41, 0x44, 0x54}, "JST": {0x4a, 0x53, 0x54}, "HNT": {0x48, 0x4e, 0x54}, "WAT": {0x57, 0x41, 0x54}, "ACWST": {0x41, 0x43, 0x57, 0x53, 0x54}, "CHAST": {0x43, 0x48, 0x41, 0x53, 0x54}, "WESZ": {0x57, 0x45, 0x53, 0x5a}, "ACDT": {0x41, 0x43, 0x44, 0x54}, "GMT": {0xe1, 0x8e, 0xa2, 0xe1, 0x8f, 0xa4, 0x20, 0xe1, 0x8e, 0xa2, 0xe1, 0x8f, 0xb3, 0xe1, 0x8f, 0x8d, 0xe1, 0x8f, 0x97, 0x20, 0xe1, 0x8e, 0xa2, 0xe1, 0x8f, 0xb3, 0xe1, 0x8f, 0xa9, 0xe1, 0x8e, 0xaa, 0xe1, 0x8f, 0x97}, "HKST": {0x48, 0x4b, 0x53, 0x54}, "EAT": {0x45, 0x41, 0x54}, "SAST": {0x53, 0x41, 0x53, 0x54}, "CST": {0xe1, 0x8e, 0xa0, 0xe1, 0x8f, 0xb0, 0xe1, 0x8e, 0xb5, 0x20, 0xe1, 0x8f, 0xb0, 0xe1, 0x8e, 0xb5, 0xe1, 0x8f, 0x8a, 0x20, 0xe1, 0x8f, 0x97, 0xe1, 0x8f, 0x99, 0xe1, 0x8e, 0xb3, 0xe1, 0x8e, 0xa9, 0x20, 0xe1, 0x8e, 0xa2, 0xe1, 0x8f, 0xb3, 0xe1, 0x8f, 0xa9, 0xe1, 0x8e, 0xaa, 0xe1, 0x8f, 0x97}, "VET": {0x56, 0x45, 0x54}, "SRT": {0x53, 0x52, 0x54}, "WITA": {0x57, 0x49, 0x54, 0x41}, "TMST": {0x54, 0x4d, 0x53, 0x54}, "WIT": {0x57, 0x49, 0x54}, "WIB": {0x57, 0x49, 0x42}, "COT": {0x43, 0x4f, 0x54}, "MEZ": {0x4d, 0x45, 0x5a}, "AKST": {0x41, 0x4b, 0x53, 0x54}, "AWDT": {0x41, 0x57, 0x44, 0x54}, "LHST": {0x4c, 0x48, 0x53, 0x54}, "LHDT": {0x4c, 0x48, 0x44, 0x54}, "MDT": {0xe1, 0x8e, 0xa3, 0xe1, 0x8f, 0x93, 0xe1, 0x8e, 0xb8, 0x20, 0xe1, 0x8e, 0xa2, 0xe1, 0x8e, 0xa6, 0x20, 0xe1, 0x8e, 0xa2, 0xe1, 0x8f, 0xb3, 0xe1, 0x8f, 0xa9, 0xe1, 0x8e, 0xaa, 0xe1, 0x8f, 0x97}, "ART": {0x41, 0x52, 0x54}, "WEZ": {0x57, 0x45, 0x5a}, "ECT": {0x45, 0x43, 0x54}, "OEZ": {0x4f, 0x45, 0x5a}, "CLST": {0x43, 0x4c, 0x53, 0x54}, "UYT": {0x55, 0x59, 0x54}, "NZST": {0x4e, 0x5a, 0x53, 0x54}, "HAST": {0x48, 0x41, 0x53, 0x54}, "OESZ": {0x4f, 0x45, 0x53, 0x5a}, "EDT": {0xe1, 0x8e, 0xa7, 0xe1, 0x8e, 0xb8, 0xe1, 0x8e, 0xac, 0xe1, 0x8e, 0xa2, 0xe1, 0x8f, 0x97, 0xe1, 0x8f, 0xa2, 0x20, 0xe1, 0x8e, 0xa2, 0xe1, 0x8e, 0xa6, 0x20, 0xe1, 0x8e, 0xa2, 0xe1, 0x8f, 0xb3, 0xe1, 0x8f, 0xa9, 0xe1, 0x8e, 0xaa, 0xe1, 0x8f, 0x97}, "WART": {0x57, 0x41, 0x52, 0x54}, "WAST": {0x57, 0x41, 0x53, 0x54}, "AEDT": {0x41, 0x45, 0x44, 0x54}, "TMT": {0x54, 0x4d, 0x54}, "BOT": {0x42, 0x4f, 0x54}, "JDT": {0x4a, 0x44, 0x54}, "WARST": {0x57, 0x41, 0x52, 0x53, 0x54}, "GYT": {0x47, 0x59, 0x54}, "COST": {0x43, 0x4f, 0x53, 0x54}, "HADT": {0x48, 0x41, 0x44, 0x54}, "AKDT": {0x41, 0x4b, 0x44, 0x54}, "EST": {0xe1, 0x8e, 0xa7, 0xe1, 0x8e, 0xb8, 0xe1, 0x8e, 0xac, 0xe1, 0x8e, 0xa2, 0xe1, 0x8f, 0x97, 0xe1, 0x8f, 0xa2, 0x20, 0xe1, 0x8f, 0xb0, 0xe1, 0x8e, 0xb5, 0xe1, 0x8f, 0x8a, 0x20, 0xe1, 0x8f, 0x97, 0xe1, 0x8f, 0x99, 0xe1, 0x8e, 0xb3, 0xe1, 0x8e, 0xa9, 0x20, 0xe1, 0x8e, 0xa2, 0xe1, 0x8f, 0xb3, 0xe1, 0x8f, 0xa9, 0xe1, 0x8e, 0xaa, 0xe1, 0x8f, 0x97}},
+ decimal: ".",
+ group: ",",
+ minus: "-",
+ percent: "%",
+ perMille: "‰",
+ timeSeparator: ":",
+ inifinity: "∞",
+ currencies: []string{"ADP ", "AED ", "AFA ", "AFN ", "ALK ", "ALL ", "AMD ", "ANG ", "AOA ", "AOK ", "AON ", "AOR ", "ARA ", "ARL ", "ARM ", "ARP ", "ARS ", "ATS ", "AUD ", "AWG ", "AZM ", "AZN ", "BAD ", "BAM ", "BAN ", "BBD ", "BDT ", "BEC ", "BEF ", "BEL ", "BGL ", "BGM ", "BGN ", "BGO ", "BHD ", "BIF ", "BMD ", "BND ", "BOB ", "BOL ", "BOP ", "BOV ", "BRB ", "BRC ", "BRE ", "BRL ", "BRN ", "BRR ", "BRZ ", "BSD ", "BTN ", "BUK ", "BWP ", "BYB ", "BYR ", "BZD ", "CAD ", "CDF ", "CHE ", "CHF ", "CHW ", "CLE ", "CLF ", "CLP ", "CNX ", "CNY ", "COP ", "COU ", "CRC ", "CSD ", "CSK ", "CUC ", "CUP ", "CVE ", "CYP ", "CZK ", "DDM ", "DEM ", "DJF ", "DKK ", "DOP ", "DZD ", "ECS ", "ECV ", "EEK ", "EGP ", "ERN ", "ESA ", "ESB ", "ESP ", "ETB ", "EUR ", "FIM ", "FJD ", "FKP ", "FRF ", "GBP ", "GEK ", "GEL ", "GHC ", "GHS ", "GIP ", "GMD ", "GNF ", "GNS ", "GQE ", "GRD ", "GTQ ", "GWE ", "GWP ", "GYD ", "HKD ", "HNL ", "HRD ", "HRK ", "HTG ", "HUF ", "IDR ", "IEP ", "ILP ", "ILR ", "ILS ", "INR ", "IQD ", "IRR ", "ISJ ", "ISK ", "ITL ", "JMD ", "JOD ", "JPY ", "KES ", "KGS ", "KHR ", "KMF ", "KPW ", "KRH ", "KRO ", "KRW ", "KWD ", "KYD ", "KZT ", "LAK ", "LBP ", "LKR ", "LRD ", "LSL ", "LTL ", "LTT ", "LUC ", "LUF ", "LUL ", "LVL ", "LVR ", "LYD ", "MAD ", "MAF ", "MCF ", "MDC ", "MDL ", "MGA ", "MGF ", "MKD ", "MKN ", "MLF ", "MMK ", "MNT ", "MOP ", "MRO ", "MTL ", "MTP ", "MUR ", "MVP ", "MVR ", "MWK ", "MXN ", "MXP ", "MXV ", "MYR ", "MZE ", "MZM ", "MZN ", "NAD ", "NGN ", "NIC ", "NIO ", "NLG ", "NOK ", "NPR ", "NZD ", "OMR ", "PAB ", "PEI ", "PEN ", "PES ", "PGK ", "PHP ", "PKR ", "PLN ", "PLZ ", "PTE ", "PYG ", "QAR ", "RHD ", "ROL ", "RON ", "RSD ", "RUB ", "RUR ", "RWF ", "SAR ", "SBD ", "SCR ", "SDD ", "SDG ", "SDP ", "SEK ", "SGD ", "SHP ", "SIT ", "SKK ", "SLL ", "SOS ", "SRD ", "SRG ", "SSP ", "STD ", "SUR ", "SVC ", "SYP ", "SZL ", "THB ", "TJR ", "TJS ", "TMM ", "TMT ", "TND ", "TOP ", "TPE ", "TRL ", "TRY ", "TTD ", "TWD ", "TZS ", "UAH ", "UAK ", "UGS ", "UGX ", "$", "USN ", "USS ", "UYI ", "UYP ", "UYU ", "UZS ", "VEB ", "VEF ", "VND ", "VNN ", "VUV ", "WST ", "XAF ", "XAG ", "XAU ", "XBA ", "XBB ", "XBC ", "XBD ", "XCD ", "XDR ", "XEU ", "XFO ", "XFU ", "XOF ", "XPD ", "XPF ", "XPT ", "XRE ", "XSU ", "XTS ", "XUA ", "XXX ", "YDD ", "YER ", "YUD ", "YUM ", "YUN ", "YUR ", "ZAL ", "ZAR ", "ZMK ", "ZMW ", "ZRN ", "ZRZ ", "ZWD ", "ZWL ", "ZWR "},
+ currencyNegativePrefix: "(",
+ currencyNegativeSuffix: ")",
+ monthsAbbreviated: []string{"", "ᎤᏃ", "ᎧᎦ", "ᎠᏅ", "ᎧᏬ", "ᎠᏂ", "ᏕᎭ", "ᎫᏰ", "ᎦᎶ", "ᏚᎵ", "ᏚᏂ", "ᏅᏓ", "ᎥᏍ"},
+ monthsNarrow: []string{"", "Ꭴ", "Ꭷ", "Ꭰ", "Ꭷ", "Ꭰ", "Ꮥ", "Ꭻ", "Ꭶ", "Ꮪ", "Ꮪ", "Ꮕ", "Ꭵ"},
+ monthsWide: []string{"", "ᎤᏃᎸᏔᏅ", "ᎧᎦᎵ", "ᎠᏅᏱ", "ᎧᏬᏂ", "ᎠᏂᏍᎬᏘ", "ᏕᎭᎷᏱ", "ᎫᏰᏉᏂ", "ᎦᎶᏂ", "ᏚᎵᏍᏗ", "ᏚᏂᏅᏗ", "ᏅᏓᏕᏆ", "ᎥᏍᎩᏱ"},
+ daysAbbreviated: []string{"ᏆᏍᎬ", "ᏉᏅᎯ", "ᏔᎵᏁ", "ᏦᎢᏁ", "ᏅᎩᏁ", "ᏧᎾᎩ", "ᏈᏕᎾ"},
+ daysNarrow: []string{"Ꮖ", "Ꮙ", "Ꮤ", "Ꮶ", "Ꮕ", "Ꮷ", "Ꭴ"},
+ daysWide: []string{"ᎤᎾᏙᏓᏆᏍᎬ", "ᎤᎾᏙᏓᏉᏅᎯ", "ᏔᎵᏁᎢᎦ", "ᏦᎢᏁᎢᎦ", "ᏅᎩᏁᎢᎦ", "ᏧᎾᎩᎶᏍᏗ", "ᎤᎾᏙᏓᏈᏕᎾ"},
+ periodsAbbreviated: []string{"ᏌᎾᎴ", "ᏒᎯᏱᎢᏗᏢ"},
+ periodsWide: []string{"ᏌᎾᎴ", "ᏒᎯᏱᎢᏗᏢ"},
+ erasAbbreviated: []string{"ᎤᏓᎷᎸ", "ᎤᎶᏐᏅ"},
+ erasNarrow: []string{"", ""},
+ erasWide: []string{"Ꮟ ᏥᏌ ᎾᏕᎲᏍᎬᎾ", "ᎠᎩᏃᎮᎵᏓᏍᏗᏱ ᎠᏕᏘᏱᏍᎬ ᏱᎰᏩ ᏧᏓᏂᎸᎢᏍᏗ"},
+ timezones: map[string]string{"GFT": "GFT", "MYT": "MYT", "AWDT": "AWDT", "UYT": "UYT", "BT": "BT", "∅∅∅": "∅∅∅", "CAT": "CAT", "ADT": "ADT", "NZDT": "NZDT", "VET": "VET", "SGT": "SGT", "SAST": "SAST", "HNT": "HNT", "NZST": "NZST", "AEST": "AEST", "EDT": "ᎧᎸᎬᎢᏗᏢ ᎢᎦ ᎢᏳᏩᎪᏗ", "CST": "ᎠᏰᎵ ᏰᎵᏊ ᏗᏙᎳᎩ ᎢᏳᏩᎪᏗ", "MEZ": "MEZ", "EAT": "EAT", "ACDT": "ACDT", "AWST": "AWST", "WEZ": "WEZ", "ACWST": "ACWST", "UYST": "UYST", "AEDT": "AEDT", "ARST": "ARST", "AKDT": "AKDT", "LHST": "LHST", "ACWDT": "ACWDT", "WIB": "WIB", "HKT": "HKT", "LHDT": "LHDT", "ChST": "ChST", "HADT": "HADT", "JST": "JST", "WIT": "WIT", "GMT": "ᎢᏤ ᎢᏳᏍᏗ ᎢᏳᏩᎪᏗ", "WAST": "WAST", "HAT": "HAT", "PDT": "ᏭᏕᎵᎬ ᎢᎦ ᎢᏳᏩᎪᏗ", "CHADT": "CHADT", "CLST": "CLST", "IST": "IST", "TMST": "TMST", "AST": "AST", "WITA": "WITA", "WAT": "WAT", "HKST": "HKST", "ACST": "ACST", "AKST": "AKST", "MDT": "ᎣᏓᎸ ᎢᎦ ᎢᏳᏩᎪᏗ", "ECT": "ECT", "HAST": "HAST", "TMT": "TMT", "ART": "ART", "PST": "ᏭᏕᎵᎬ ᏰᎵᏊ ᏗᏙᎳᎩ ᎢᏳᏩᎪᏗ", "MST": "ᎣᏓᎸ ᏰᎵᏊ ᏗᏙᎳᎩ ᎢᏳᏩᎪᏗ", "EST": "ᎧᎸᎬᎢᏗᏢ ᏰᎵᏊ ᏗᏙᎳᎩ ᎢᏳᏩᎪᏗ", "COST": "COST", "OESZ": "OESZ", "BOT": "BOT", "CLT": "CLT", "WESZ": "WESZ", "COT": "COT", "WART": "WART", "OEZ": "OEZ", "JDT": "JDT", "SRT": "SRT", "MESZ": "MESZ", "CHAST": "CHAST", "GYT": "GYT", "CDT": "ᎠᏰᎵ ᎢᎦ ᎢᏳᏩᎪᏗ", "WARST": "WARST"},
}
}
@@ -116,82 +116,80 @@ func (chr *chr) RangePluralRule(num1 float64, v1 uint64, num2 float64, v2 uint64
}
// MonthAbbreviated returns the locales abbreviated month given the 'month' provided
-func (chr *chr) MonthAbbreviated(month time.Month) []byte {
+func (chr *chr) MonthAbbreviated(month time.Month) string {
return chr.monthsAbbreviated[month]
}
// MonthsAbbreviated returns the locales abbreviated months
-func (chr *chr) MonthsAbbreviated() [][]byte {
+func (chr *chr) MonthsAbbreviated() []string {
return chr.monthsAbbreviated[1:]
}
// MonthNarrow returns the locales narrow month given the 'month' provided
-func (chr *chr) MonthNarrow(month time.Month) []byte {
+func (chr *chr) MonthNarrow(month time.Month) string {
return chr.monthsNarrow[month]
}
// MonthsNarrow returns the locales narrow months
-func (chr *chr) MonthsNarrow() [][]byte {
+func (chr *chr) MonthsNarrow() []string {
return chr.monthsNarrow[1:]
}
// MonthWide returns the locales wide month given the 'month' provided
-func (chr *chr) MonthWide(month time.Month) []byte {
+func (chr *chr) MonthWide(month time.Month) string {
return chr.monthsWide[month]
}
// MonthsWide returns the locales wide months
-func (chr *chr) MonthsWide() [][]byte {
+func (chr *chr) MonthsWide() []string {
return chr.monthsWide[1:]
}
// WeekdayAbbreviated returns the locales abbreviated weekday given the 'weekday' provided
-func (chr *chr) WeekdayAbbreviated(weekday time.Weekday) []byte {
+func (chr *chr) WeekdayAbbreviated(weekday time.Weekday) string {
return chr.daysAbbreviated[weekday]
}
// WeekdaysAbbreviated returns the locales abbreviated weekdays
-func (chr *chr) WeekdaysAbbreviated() [][]byte {
+func (chr *chr) WeekdaysAbbreviated() []string {
return chr.daysAbbreviated
}
// WeekdayNarrow returns the locales narrow weekday given the 'weekday' provided
-func (chr *chr) WeekdayNarrow(weekday time.Weekday) []byte {
+func (chr *chr) WeekdayNarrow(weekday time.Weekday) string {
return chr.daysNarrow[weekday]
}
// WeekdaysNarrow returns the locales narrow weekdays
-func (chr *chr) WeekdaysNarrow() [][]byte {
+func (chr *chr) WeekdaysNarrow() []string {
return chr.daysNarrow
}
// WeekdayShort returns the locales short weekday given the 'weekday' provided
-func (chr *chr) WeekdayShort(weekday time.Weekday) []byte {
+func (chr *chr) WeekdayShort(weekday time.Weekday) string {
return chr.daysShort[weekday]
}
// WeekdaysShort returns the locales short weekdays
-func (chr *chr) WeekdaysShort() [][]byte {
+func (chr *chr) WeekdaysShort() []string {
return chr.daysShort
}
// WeekdayWide returns the locales wide weekday given the 'weekday' provided
-func (chr *chr) WeekdayWide(weekday time.Weekday) []byte {
+func (chr *chr) WeekdayWide(weekday time.Weekday) string {
return chr.daysWide[weekday]
}
// WeekdaysWide returns the locales wide weekdays
-func (chr *chr) WeekdaysWide() [][]byte {
+func (chr *chr) WeekdaysWide() []string {
return chr.daysWide
}
// FmtNumber returns 'num' with digits/precision of 'v' for 'chr' and handles both Whole and Real numbers based on 'v'
-// returned as a []byte just in case the caller wishes to add more and can help
-// avoid allocations; otherwise just cast as string.
-func (chr *chr) FmtNumber(num float64, v uint64) []byte {
+func (chr *chr) FmtNumber(num float64, v uint64) string {
s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
- l := len(s) + len(chr.decimal) + len(chr.group)*len(s[:len(s)-int(v)-1])/3
+ l := len(s) + 2 + 1*len(s[:len(s)-int(v)-1])/3
count := 0
inWhole := v == 0
b := make([]byte, 0, l)
@@ -225,17 +223,14 @@ func (chr *chr) FmtNumber(num float64, v uint64) []byte {
b[i], b[j] = b[j], b[i]
}
- return b
+ return string(b)
}
// FmtPercent returns 'num' with digits/precision of 'v' for 'chr' and handles both Whole and Real numbers based on 'v'
-// returned as a []byte just in case the caller wishes to add more and can help
-// avoid allocations; otherwise just cast as string.
// NOTE: 'num' passed into FmtPercent is assumed to be in percent already
-func (chr *chr) FmtPercent(num float64, v uint64) []byte {
-
+func (chr *chr) FmtPercent(num float64, v uint64) string {
s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
- l := len(s) + len(chr.decimal)
+ l := len(s) + 3
b := make([]byte, 0, l)
for i := len(s) - 1; i >= 0; i-- {
@@ -259,17 +254,15 @@ func (chr *chr) FmtPercent(num float64, v uint64) []byte {
b = append(b, chr.percent...)
- return b
+ return string(b)
}
// FmtCurrency returns the currency representation of 'num' with digits/precision of 'v' for 'chr'
-// returned as a []byte just in case the caller wishes to add more and can help
-// avoid allocations; otherwise just cast as string.
-func (chr *chr) FmtCurrency(num float64, v uint64, currency currency.Type) []byte {
+func (chr *chr) FmtCurrency(num float64, v uint64, currency currency.Type) string {
s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
symbol := chr.currencies[currency]
- l := len(s) + len(chr.decimal) + len(chr.group)*len(s[:len(s)-int(v)-1])/3
+ l := len(s) + len(symbol) + 2 + 1*len(s[:len(s)-int(v)-1])/3
count := 0
inWhole := v == 0
b := make([]byte, 0, l)
@@ -318,17 +311,16 @@ func (chr *chr) FmtCurrency(num float64, v uint64, currency currency.Type) []byt
}
}
- return b
+ return string(b)
}
// FmtAccounting returns the currency representation of 'num' with digits/precision of 'v' for 'chr'
-// in accounting notation. returned as a []byte just in case the caller wishes to add more and can help
-// avoid allocations; otherwise just cast as string.
-func (chr *chr) FmtAccounting(num float64, v uint64, currency currency.Type) []byte {
+// in accounting notation.
+func (chr *chr) FmtAccounting(num float64, v uint64, currency currency.Type) string {
s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
symbol := chr.currencies[currency]
- l := len(s) + len(chr.decimal) + len(chr.group)*len(s[:len(s)-int(v)-1])/3
+ l := len(s) + len(symbol) + 4 + 1*len(s[:len(s)-int(v)-1])/3
count := 0
inWhole := v == 0
b := make([]byte, 0, l)
@@ -359,9 +351,7 @@ func (chr *chr) FmtAccounting(num float64, v uint64, currency currency.Type) []b
b = append(b, symbol[j])
}
- for j := len(chr.currencyNegativePrefix) - 1; j >= 0; j-- {
- b = append(b, chr.currencyNegativePrefix[j])
- }
+ b = append(b, chr.currencyNegativePrefix[0])
} else {
@@ -391,13 +381,11 @@ func (chr *chr) FmtAccounting(num float64, v uint64, currency currency.Type) []b
b = append(b, chr.currencyNegativeSuffix...)
}
- return b
+ return string(b)
}
// FmtDateShort returns the short date representation of 't' for 'chr'
-// returned as a []byte just in case the caller wishes to add more and can help
-// avoid allocations; otherwise just cast as string.
-func (chr *chr) FmtDateShort(t time.Time) []byte {
+func (chr *chr) FmtDateShort(t time.Time) string {
b := make([]byte, 0, 32)
@@ -412,13 +400,11 @@ func (chr *chr) FmtDateShort(t time.Time) []byte {
b = append(b, strconv.Itoa(t.Year())[1:]...)
}
- return b
+ return string(b)
}
// FmtDateMedium returns the medium date representation of 't' for 'chr'
-// returned as a []byte just in case the caller wishes to add more and can help
-// avoid allocations; otherwise just cast as string.
-func (chr *chr) FmtDateMedium(t time.Time) []byte {
+func (chr *chr) FmtDateMedium(t time.Time) string {
b := make([]byte, 0, 32)
@@ -428,13 +414,11 @@ func (chr *chr) FmtDateMedium(t time.Time) []byte {
b = append(b, []byte{0x2c, 0x20}...)
b = strconv.AppendInt(b, int64(t.Year()), 10)
- return b
+ return string(b)
}
// FmtDateLong returns the long date representation of 't' for 'chr'
-// returned as a []byte just in case the caller wishes to add more and can help
-// avoid allocations; otherwise just cast as string.
-func (chr *chr) FmtDateLong(t time.Time) []byte {
+func (chr *chr) FmtDateLong(t time.Time) string {
b := make([]byte, 0, 32)
@@ -444,13 +428,11 @@ func (chr *chr) FmtDateLong(t time.Time) []byte {
b = append(b, []byte{0x2c, 0x20}...)
b = strconv.AppendInt(b, int64(t.Year()), 10)
- return b
+ return string(b)
}
// FmtDateFull returns the full date representation of 't' for 'chr'
-// returned as a []byte just in case the caller wishes to add more and can help
-// avoid allocations; otherwise just cast as string.
-func (chr *chr) FmtDateFull(t time.Time) []byte {
+func (chr *chr) FmtDateFull(t time.Time) string {
b := make([]byte, 0, 32)
@@ -462,13 +444,11 @@ func (chr *chr) FmtDateFull(t time.Time) []byte {
b = append(b, []byte{0x2c, 0x20}...)
b = strconv.AppendInt(b, int64(t.Year()), 10)
- return b
+ return string(b)
}
// FmtTimeShort returns the short time representation of 't' for 'chr'
-// returned as a []byte just in case the caller wishes to add more and can help
-// avoid allocations; otherwise just cast as string.
-func (chr *chr) FmtTimeShort(t time.Time) []byte {
+func (chr *chr) FmtTimeShort(t time.Time) string {
b := make([]byte, 0, 32)
@@ -494,13 +474,11 @@ func (chr *chr) FmtTimeShort(t time.Time) []byte {
b = append(b, chr.periodsAbbreviated[1]...)
}
- return b
+ return string(b)
}
// FmtTimeMedium returns the medium time representation of 't' for 'chr'
-// returned as a []byte just in case the caller wishes to add more and can help
-// avoid allocations; otherwise just cast as string.
-func (chr *chr) FmtTimeMedium(t time.Time) []byte {
+func (chr *chr) FmtTimeMedium(t time.Time) string {
b := make([]byte, 0, 32)
@@ -533,13 +511,11 @@ func (chr *chr) FmtTimeMedium(t time.Time) []byte {
b = append(b, chr.periodsAbbreviated[1]...)
}
- return b
+ return string(b)
}
// FmtTimeLong returns the long time representation of 't' for 'chr'
-// returned as a []byte just in case the caller wishes to add more and can help
-// avoid allocations; otherwise just cast as string.
-func (chr *chr) FmtTimeLong(t time.Time) []byte {
+func (chr *chr) FmtTimeLong(t time.Time) string {
b := make([]byte, 0, 32)
@@ -577,13 +553,11 @@ func (chr *chr) FmtTimeLong(t time.Time) []byte {
tz, _ := t.Zone()
b = append(b, tz...)
- return b
+ return string(b)
}
// FmtTimeFull returns the full time representation of 't' for 'chr'
-// returned as a []byte just in case the caller wishes to add more and can help
-// avoid allocations; otherwise just cast as string.
-func (chr *chr) FmtTimeFull(t time.Time) []byte {
+func (chr *chr) FmtTimeFull(t time.Time) string {
b := make([]byte, 0, 32)
@@ -626,5 +600,5 @@ func (chr *chr) FmtTimeFull(t time.Time) []byte {
b = append(b, tz...)
}
- return b
+ return string(b)
}