diff options
Diffstat (limited to 'br/br.go')
-rw-r--r-- | br/br.go | 254 |
1 files changed, 98 insertions, 156 deletions
@@ -14,32 +14,32 @@ type br struct { pluralsCardinal []locales.PluralRule pluralsOrdinal []locales.PluralRule pluralsRange []locales.PluralRule - decimal []byte - group []byte - minus []byte - percent []byte - percentSuffix []byte - perMille []byte - timeSeparator []byte - inifinity []byte - currencies [][]byte // idx = enum of currency code - currencyPositiveSuffix []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 + percentSuffix string + perMille string + timeSeparator string + inifinity string + currencies []string // idx = enum of currency code + currencyPositiveSuffix 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 'br' locale @@ -49,29 +49,24 @@ func New() locales.Translator { pluralsCardinal: []locales.PluralRule{2, 3, 4, 5, 6}, pluralsOrdinal: nil, pluralsRange: nil, - decimal: []byte{}, - group: []byte{}, - minus: []byte{}, - percent: []byte{}, - perMille: []byte{}, - timeSeparator: []byte{0x3a}, - currencies: [][]uint8{{0x41, 0x44, 0x50}, {0x41, 0x45, 0x44}, {0x41, 0x46, 0x41}, {0x41, 0x46, 0x4e}, {0x41, 0x4c, 0x4b}, {0x41, 0x4c, 0x4c}, {0x41, 0x4d, 0x44}, {0x41, 0x4e, 0x47}, {0x41, 0x4f, 0x41}, {0x41, 0x4f, 0x4b}, {0x41, 0x4f, 0x4e}, {0x41, 0x4f, 0x52}, {0x41, 0x52, 0x41}, {0x41, 0x52, 0x4c}, {0x41, 0x52, 0x4d}, {0x41, 0x52, 0x50}, {0x41, 0x52, 0x53}, {0x41, 0x54, 0x53}, {0x24, 0x41}, {0x41, 0x57, 0x47}, {0x41, 0x5a, 0x4d}, {0x41, 0x5a, 0x4e}, {0x42, 0x41, 0x44}, {0x42, 0x41, 0x4d}, {0x42, 0x41, 0x4e}, {0x42, 0x42, 0x44}, {0x42, 0x44, 0x54}, {0x42, 0x45, 0x43}, {0x42, 0x45, 0x46}, {0x42, 0x45, 0x4c}, {0x42, 0x47, 0x4c}, {0x42, 0x47, 0x4d}, {0x42, 0x47, 0x4e}, {0x42, 0x47, 0x4f}, {0x42, 0x48, 0x44}, {0x42, 0x49, 0x46}, {0x42, 0x4d, 0x44}, {0x42, 0x4e, 0x44}, {0x42, 0x4f, 0x42}, {0x42, 0x4f, 0x4c}, {0x42, 0x4f, 0x50}, {0x42, 0x4f, 0x56}, {0x42, 0x52, 0x42}, {0x42, 0x52, 0x43}, {0x42, 0x52, 0x45}, {0x42, 0x52, 0x4c}, {0x42, 0x52, 0x4e}, {0x42, 0x52, 0x52}, {0x42, 0x52, 0x5a}, {0x42, 0x53, 0x44}, {0x42, 0x54, 0x4e}, {0x42, 0x55, 0x4b}, {0x42, 0x57, 0x50}, {0x42, 0x59, 0x42}, {0x42, 0x59, 0x52}, {0x42, 0x5a, 0x44}, {0x24, 0x43, 0x41}, {0x43, 0x44, 0x46}, {0x43, 0x48, 0x45}, {0x43, 0x48, 0x46}, {0x43, 0x48, 0x57}, {0x43, 0x4c, 0x45}, {0x43, 0x4c, 0x46}, {0x43, 0x4c, 0x50}, {0x43, 0x4e, 0x58}, {0x43, 0x4e, 0x59}, {0x43, 0x4f, 0x50}, {0x43, 0x4f, 0x55}, {0x43, 0x52, 0x43}, {0x43, 0x53, 0x44}, {0x43, 0x53, 0x4b}, {0x43, 0x55, 0x43}, {0x43, 0x55, 0x50}, {0x43, 0x56, 0x45}, {0x43, 0x59, 0x50}, {0x43, 0x5a, 0x4b}, {0x44, 0x44, 0x4d}, {0x44, 0x45, 0x4d}, {0x44, 0x4a, 0x46}, {0x44, 0x4b, 0x4b}, {0x44, 0x4f, 0x50}, {0x44, 0x5a, 0x44}, {0x45, 0x43, 0x53}, {0x45, 0x43, 0x56}, {0x45, 0x45, 0x4b}, {0x45, 0x47, 0x50}, {0x45, 0x52, 0x4e}, {0x45, 0x53, 0x41}, {0x45, 0x53, 0x42}, {0x45, 0x53, 0x50}, {0x45, 0x54, 0x42}, {0xe2, 0x82, 0xac}, {0x46, 0x49, 0x4d}, {0x46, 0x4a, 0x44}, {0x46, 0x4b, 0x50}, {0x46, 0x52, 0x46}, {0xc2, 0xa3, 0x20, 0x52, 0x55}, {0x47, 0x45, 0x4b}, {0x47, 0x45, 0x4c}, {0x47, 0x48, 0x43}, {0x47, 0x48, 0x53}, {0x47, 0x49, 0x50}, {0x47, 0x4d, 0x44}, {0x47, 0x4e, 0x46}, {0x47, 0x4e, 0x53}, {0x47, 0x51, 0x45}, {0x47, 0x52, 0x44}, {0x47, 0x54, 0x51}, {0x47, 0x57, 0x45}, {0x47, 0x57, 0x50}, {0x47, 0x59, 0x44}, {0x24, 0x20, 0x48, 0x4b}, {0x48, 0x4e, 0x4c}, {0x48, 0x52, 0x44}, {0x48, 0x52, 0x4b}, {0x48, 0x54, 0x47}, {0x48, 0x55, 0x46}, {0x49, 0x44, 0x52}, {0x49, 0x45, 0x50}, {0x49, 0x4c, 0x50}, {0x49, 0x4c, 0x52}, {0x49, 0x4c, 0x53}, {0xe2, 0x82, 0xb9}, {0x49, 0x51, 0x44}, {0x49, 0x52, 0x52}, {0x49, 0x53, 0x4a}, {0x49, 0x53, 0x4b}, {0x49, 0x54, 0x4c}, {0x4a, 0x4d, 0x44}, {0x4a, 0x4f, 0x44}, {0x4a, 0x50, 0x59}, {0x4b, 0x45, 0x53}, {0x4b, 0x47, 0x53}, {0x4b, 0x48, 0x52}, {0x4b, 0x4d, 0x46}, {0x4b, 0x50, 0x57}, {0x4b, 0x52, 0x48}, {0x4b, 0x52, 0x4f}, {0x4b, 0x52, 0x57}, {0x4b, 0x57, 0x44}, {0x4b, 0x59, 0x44}, {0x4b, 0x5a, 0x54}, {0x4c, 0x41, 0x4b}, {0x4c, 0x42, 0x50}, {0x4c, 0x4b, 0x52}, {0x4c, 0x52, 0x44}, {0x4c, 0x53, 0x4c}, {0x4c, 0x54, 0x4c}, {0x4c, 0x54, 0x54}, {0x4c, 0x55, 0x43}, {0x4c, 0x55, 0x46}, {0x4c, 0x55, 0x4c}, {0x4c, 0x56, 0x4c}, {0x4c, 0x56, 0x52}, {0x4c, 0x59, 0x44}, {0x4d, 0x41, 0x44}, {0x4d, 0x41, 0x46}, {0x4d, 0x43, 0x46}, {0x4d, 0x44, 0x43}, {0x4d, 0x44, 0x4c}, {0x4d, 0x47, 0x41}, {0x4d, 0x47, 0x46}, {0x4d, 0x4b, 0x44}, {0x4d, 0x4b, 0x4e}, {0x4d, 0x4c, 0x46}, {0x4d, 0x4d, 0x4b}, {0x4d, 0x4e, 0x54}, {0x4d, 0x4f, 0x50}, {0x4d, 0x52, 0x4f}, {0x4d, 0x54, 0x4c}, {0x4d, 0x54, 0x50}, {0x4d, 0x55, 0x52}, {0x4d, 0x56, 0x50, 0x20}, {0x4d, 0x56, 0x52}, {0x4d, 0x57, 0x4b}, {0x4d, 0x58, 0x24}, {0x4d, 0x58, 0x50}, {0x4d, 0x58, 0x56}, {0x4d, 0x59, 0x52}, {0x4d, 0x5a, 0x45}, {0x4d, 0x5a, 0x4d}, {0x4d, 0x5a, 0x4e}, {0x4e, 0x41, 0x44}, {0x4e, 0x47, 0x4e}, {0x4e, 0x49, 0x43}, {0x4e, 0x49, 0x4f}, {0x4e, 0x4c, 0x47}, {0x4e, 0x4f, 0x4b}, {0x4e, 0x50, 0x52}, {0x24, 0x20, 0x5a, 0x4e}, {0x4f, 0x4d, 0x52}, {0x50, 0x41, 0x42}, {0x50, 0x45, 0x49}, {0x50, 0x45, 0x4e}, {0x50, 0x45, 0x53}, {0x50, 0x47, 0x4b}, {0x50, 0x48, 0x50}, {0x50, 0x4b, 0x52}, {0x50, 0x4c, 0x4e}, {0x50, 0x4c, 0x5a}, {0x50, 0x54, 0x45}, {0x50, 0x59, 0x47}, {0x51, 0x41, 0x52}, {0x52, 0x48, 0x44}, {0x52, 0x4f, 0x4c}, {0x52, 0x4f, 0x4e}, {0x52, 0x53, 0x44}, {0x52, 0x55, 0x42}, {0x52, 0x55, 0x52}, {0x52, 0x57, 0x46}, {0x53, 0x41, 0x52}, {0x53, 0x42, 0x44}, {0x53, 0x43, 0x52}, {0x53, 0x44, 0x44}, {0x53, 0x44, 0x47}, {0x53, 0x44, 0x50}, {0x53, 0x45, 0x4b}, {0x53, 0x47, 0x44}, {0x53, 0x48, 0x50}, {0x53, 0x49, 0x54}, {0x53, 0x4b, 0x4b}, {0x53, 0x4c, 0x4c}, {0x53, 0x4f, 0x53}, {0x53, 0x52, 0x44}, {0x53, 0x52, 0x47}, {0x53, 0x53, 0x50}, {0x53, 0x54, 0x44}, {0x53, 0x55, 0x52}, {0x53, 0x56, 0x43}, {0x53, 0x59, 0x50}, {0x53, 0x5a, 0x4c}, {0x54, 0x48, 0x42}, {0x54, 0x4a, 0x52}, {0x54, 0x4a, 0x53}, {0x54, 0x4d, 0x4d}, {0x54, 0x4d, 0x54}, {0x54, 0x4e, 0x44}, {0x54, 0x4f, 0x50}, {0x54, 0x50, 0x45}, {0x54, 0x52, 0x4c}, {0x54, 0x52, 0x59}, {0x54, 0x54, 0x44}, {0x54, 0x57, 0x44}, {0x54, 0x5a, 0x53}, {0x55, 0x41, 0x48}, {0x55, 0x41, 0x4b}, {0x55, 0x47, 0x53}, {0x55, 0x47, 0x58}, {0x24, 0x20, 0x53, 0x55}, {0x55, 0x53, 0x4e}, {0x55, 0x53, 0x53}, {0x55, 0x59, 0x49}, {0x55, 0x59, 0x50}, {0x55, 0x59, 0x55}, {0x55, 0x5a, 0x53}, {0x56, 0x45, 0x42}, {0x56, 0x45, 0x46}, {0x56, 0x4e, 0x44}, {0x56, 0x4e, 0x4e}, {0x56, 0x55, 0x56}, {0x57, 0x53, 0x54}, {0x46, 0x43, 0x46, 0x41}, {0x58, 0x41, 0x47}, {0x58, 0x41, 0x55}, {0x58, 0x42, 0x41}, {0x58, 0x42, 0x42}, {0x58, 0x42, 0x43}, {0x58, 0x42, 0x44}, {0x58, 0x43, 0x44}, {0x58, 0x44, 0x52}, {0x58, 0x45, 0x55}, {0x58, 0x46, 0x4f}, {0x58, 0x46, 0x55}, {0x43, 0x46, 0x41}, {0x58, 0x50, 0x44}, {0x43, 0x46, 0x50, 0x46}, {0x58, 0x50, 0x54}, {0x58, 0x52, 0x45}, {0x58, 0x53, 0x55}, {0x58, 0x54, 0x53}, {0x58, 0x55, 0x41, 0x20}, {0x58, 0x58, 0x58}, {0x59, 0x44, 0x44}, {0x59, 0x45, 0x52}, {0x59, 0x55, 0x44}, {0x59, 0x55, 0x4d}, {0x59, 0x55, 0x4e}, {0x59, 0x55, 0x52}, {0x5a, 0x41, 0x4c}, {0x5a, 0x41, 0x52}, {0x5a, 0x4d, 0x4b}, {0x5a, 0x4d, 0x57}, {0x5a, 0x52, 0x4e}, {0x5a, 0x52, 0x5a}, {0x5a, 0x57, 0x44}, {0x5a, 0x57, 0x4c}, {0x5a, 0x57, 0x52}}, - percentSuffix: []byte{0xc2, 0xa0}, - currencyPositiveSuffix: []byte{0xc2, 0xa0}, - currencyNegativeSuffix: []byte{0xc2, 0xa0}, - monthsAbbreviated: [][]uint8{[]uint8(nil), {0x47, 0x65, 0x6e, 0x2e}, {0x43, 0xca, 0xbc, 0x68, 0x77, 0x65, 0x2e}, {0x4d, 0x65, 0x75, 0x72, 0x2e}, {0x45, 0x62, 0x72, 0x2e}, {0x4d, 0x61, 0x65}, {0x4d, 0x65, 0x7a, 0x68, 0x2e}, {0x47, 0x6f, 0x75, 0x65, 0x2e}, {0x45, 0x6f, 0x73, 0x74}, {0x47, 0x77, 0x65, 0x6e, 0x2e}, {0x48, 0x65, 0x72, 0x65}, {0x44, 0x75}, {0x4b, 0x7a, 0x75, 0x2e}}, - monthsNarrow: [][]uint8{[]uint8(nil), {0x30, 0x31}, {0x30, 0x32}, {0x30, 0x33}, {0x30, 0x34}, {0x30, 0x35}, {0x30, 0x36}, {0x30, 0x37}, {0x30, 0x38}, {0x30, 0x39}, {0x31, 0x30}, {0x31, 0x31}, {0x31, 0x32}}, - monthsWide: [][]uint8{[]uint8(nil), {0x47, 0x65, 0x6e, 0x76, 0x65, 0x72}, {0x43, 0xca, 0xbc, 0x68, 0x77, 0x65, 0x76, 0x72, 0x65, 0x72}, {0x4d, 0x65, 0x75, 0x72, 0x7a, 0x68}, {0x45, 0x62, 0x72, 0x65, 0x6c}, {0x4d, 0x61, 0x65}, {0x4d, 0x65, 0x7a, 0x68, 0x65, 0x76, 0x65, 0x6e}, {0x47, 0x6f, 0x75, 0x65, 0x72, 0x65}, {0x45, 0x6f, 0x73, 0x74}, {0x47, 0x77, 0x65, 0x6e, 0x67, 0x6f, 0x6c, 0x6f}, {0x48, 0x65, 0x72, 0x65}, {0x44, 0x75}, {0x4b, 0x65, 0x72, 0x7a, 0x75}}, - daysAbbreviated: [][]uint8{{0x53, 0x75, 0x6c}, {0x4c, 0x75, 0x6e}, {0x4d, 0x65, 0x75, 0x2e}, {0x4d, 0x65, 0x72, 0x2e}, {0x59, 0x61, 0x6f, 0x75}, {0x47, 0x77, 0x65, 0x2e}, {0x53, 0x61, 0x64, 0x2e}}, - daysNarrow: [][]uint8{{0x53, 0x75}, {0x4c}, {0x4d, 0x7a}, {0x4d, 0x63}, {0x59}, {0x47}, {0x53, 0x61}}, - daysWide: [][]uint8{{0x53, 0x75, 0x6c}, {0x4c, 0x75, 0x6e}, {0x4d, 0x65, 0x75, 0x72, 0x7a, 0x68}, {0x4d, 0x65, 0x72, 0x63, 0xca, 0xbc, 0x68, 0x65, 0x72}, {0x59, 0x61, 0x6f, 0x75}, {0x47, 0x77, 0x65, 0x6e, 0x65, 0x72}, {0x53, 0x61, 0x64, 0x6f, 0x72, 0x6e}}, - periodsAbbreviated: [][]uint8{{0x41, 0x2e, 0x4d, 0x2e}, {0x47, 0x2e, 0x4d, 0x2e}}, - periodsNarrow: [][]uint8{{0x61, 0x6d}, {0x67, 0x6d}}, - periodsWide: [][]uint8{{0x41, 0x2e, 0x4d, 0x2e}, {0x47, 0x2e, 0x4d, 0x2e}}, - erasAbbreviated: [][]uint8{{0x61, 0x2d, 0x72, 0x61, 0x6f, 0x6b, 0x20, 0x4a, 0x2e, 0x4b, 0x2e}, {0x67, 0x6f, 0x75, 0x64, 0x65, 0x20, 0x4a, 0x2e, 0x4b, 0x2e}}, - erasNarrow: [][]uint8{{0x61, 0x2d, 0x72, 0x61, 0x6f, 0x6b, 0x20, 0x4a, 0x2e, 0x4b, 0x2e}, {0x67, 0x6f, 0x75, 0x64, 0x65, 0x20, 0x4a, 0x2e, 0x4b, 0x2e}}, - erasWide: [][]uint8{{0x61, 0x2d, 0x72, 0x61, 0x6f, 0x6b, 0x20, 0x4a, 0x65, 0x7a, 0x75, 0x7a, 0x2d, 0x4b, 0x72, 0x69, 0x73, 0x74}, {0x67, 0x6f, 0x75, 0x64, 0x65, 0x20, 0x4a, 0x65, 0x7a, 0x75, 0x7a, 0x2d, 0x4b, 0x72, 0x69, 0x73, 0x74}}, - timezones: map[string][]uint8{"AEST": {0x65, 0x75, 0x72, 0x20, 0x63, 0xca, 0xbc, 0x68, 0x6f, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x41, 0x6f, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x61, 0x20, 0x61, 0x72, 0x20, 0x52, 0x65, 0x74, 0x65, 0x72}, "BT": {0x65, 0x75, 0x72, 0x20, 0x42, 0x68, 0x6f, 0x75, 0x74, 0x61, 0x6e}, "CHAST": {0x65, 0x75, 0x72, 0x20, 0x63, 0xca, 0xbc, 0x68, 0x6f, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x43, 0x68, 0x61, 0x74, 0x68, 0x61, 0x6d}, "CLST": {0x65, 0x75, 0x72, 0x20, 0x68, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x43, 0x68, 0x69, 0x6c, 0x65}, "ART": {0x65, 0x75, 0x72, 0x20, 0x63, 0xca, 0xbc, 0x68, 0x6f, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x41, 0x72, 0x63, 0xca, 0xbc, 0x68, 0x61, 0x6e, 0x74, 0x69, 0x6e, 0x61}, "BOT": {0x65, 0x75, 0x72, 0x20, 0x42, 0x6f, 0x6c, 0x69, 0x76, 0x69, 0x61}, "CLT": {0x65, 0x75, 0x72, 0x20, 0x63, 0xca, 0xbc, 0x68, 0x6f, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x43, 0x68, 0x69, 0x6c, 0x65}, "WIT": {0x65, 0x75, 0x72, 0x20, 0x49, 0x6e, 0x64, 0x6f, 0x6e, 0x65, 0x7a, 0x69, 0x61, 0x20, 0x61, 0x72, 0x20, 0x52, 0x65, 0x74, 0x65, 0x72}, "EST": {0x65, 0x75, 0x72, 0x20, 0x63, 0xca, 0xbc, 0x68, 0x6f, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x61, 0x72, 0x20, 0x52, 0x65, 0x74, 0x65, 0x72}, "WEZ": {0x65, 0x75, 0x72, 0x20, 0x63, 0xca, 0xbc, 0x68, 0x6f, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x61, 0x20, 0x61, 0x72, 0x20, 0x43, 0xca, 0xbc, 0x68, 0x6f, 0x72, 0x6e, 0xc3, 0xb4, 0x67}, "COT": {0x65, 0x75, 0x72, 0x20, 0x63, 0xca, 0xbc, 0x68, 0x6f, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x4b, 0x6f, 0x6c, 0x6f, 0x6d, 0x62, 0x69, 0x61}, "HAST": {0x48, 0x41, 0x53, 0x54}, "CDT": {0x43, 0x44, 0x54}, "MESZ": {0x65, 0x75, 0x72, 0x20, 0x68, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x4b, 0x72, 0x65, 0x69, 0x7a, 0x65, 0x75, 0x72, 0x6f, 0x70, 0x61}, "AST": {0x41, 0x53, 0x54}, "ARST": {0x65, 0x75, 0x72, 0x20, 0x68, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x41, 0x72, 0x63, 0xca, 0xbc, 0x68, 0x61, 0x6e, 0x74, 0x69, 0x6e, 0x61}, "ChST": {0x43, 0x68, 0x53, 0x54}, "WART": {0x65, 0x75, 0x72, 0x20, 0x63, 0xca, 0xbc, 0x68, 0x6f, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x41, 0x72, 0x63, 0xca, 0xbc, 0x68, 0x61, 0x6e, 0x74, 0x69, 0x6e, 0x61, 0x20, 0x61, 0x72, 0x20, 0x43, 0xca, 0xbc, 0x68, 0x6f, 0x72, 0x6e, 0xc3, 0xb4, 0x67}, "GYT": {0x65, 0x75, 0x72, 0x20, 0x47, 0x75, 0x79, 0x61, 0x6e, 0x61}, "VET": {0x65, 0x75, 0x72, 0x20, 0x56, 0x65, 0x6e, 0x65, 0x7a, 0x75, 0x65, 0x6c, 0x61}, "PDT": {0x50, 0x44, 0x54}, "WAT": {0x65, 0x75, 0x72, 0x20, 0x63, 0xca, 0xbc, 0x68, 0x6f, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x41, 0x66, 0x72, 0x69, 0x6b, 0x61, 0x20, 0x61, 0x72, 0x20, 0x43, 0xca, 0xbc, 0x68, 0x6f, 0x72, 0x6e, 0xc3, 0xb4, 0x67}, "CAT": {0x65, 0x75, 0x72, 0x20, 0x4b, 0x72, 0x65, 0x69, 0x7a, 0x61, 0x66, 0x72, 0x69, 0x6b, 0x61}, "CST": {0x43, 0x53, 0x54}, "ACDT": {0x65, 0x75, 0x72, 0x20, 0x68, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x4b, 0x72, 0x65, 0x69, 0x7a, 0x61, 0x6f, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x61}, "OEZ": {0x65, 0x75, 0x72, 0x20, 0x63, 0xca, 0xbc, 0x68, 0x6f, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x61, 0x20, 0x61, 0x72, 0x20, 0x52, 0x65, 0x74, 0x65, 0x72}, "PST": {0x50, 0x53, 0x54}, "JST": {0x65, 0x75, 0x72, 0x20, 0x63, 0xca, 0xbc, 0x68, 0x6f, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x4a, 0x61, 0x70, 0x61, 0x6e}, "GFT": {0x65, 0x75, 0x72, 0x20, 0x47, 0x77, 0x69, 0x61, 0x6e, 0x61, 0x20, 0x63, 0xca, 0xbc, 0x68, 0x61, 0x6c, 0x6c}, "HNT": {0x65, 0x75, 0x72, 0x20, 0x63, 0xca, 0xbc, 0x68, 0x6f, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x4e, 0x65, 0x77, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x6c, 0x61, 0x6e, 0x64}, "COST": {0x65, 0x75, 0x72, 0x20, 0x68, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x4b, 0x6f, 0x6c, 0x6f, 0x6d, 0x62, 0x69, 0x61}, "WIB": {0x65, 0x75, 0x72, 0x20, 0x49, 0x6e, 0x64, 0x6f, 0x6e, 0x65, 0x7a, 0x69, 0x61, 0x20, 0x61, 0x72, 0x20, 0x43, 0xca, 0xbc, 0x68, 0x6f, 0x72, 0x6e, 0xc3, 0xb4, 0x67}, "TMST": {0x65, 0x75, 0x72, 0x20, 0x68, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x54, 0x75, 0x72, 0x6b, 0x6d, 0x65, 0x6e, 0x69, 0x73, 0x74, 0x61, 0x6e}, "HADT": {0x48, 0x41, 0x44, 0x54}, "ADT": {0x41, 0x44, 0x54}, "NZDT": {0x65, 0x75, 0x72, 0x20, 0x68, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x5a, 0x65, 0x6c, 0x61, 0x6e, 0x64, 0x2d, 0x4e, 0x65, 0x76, 0x65, 0x7a}, "LHDT": {0x4c, 0x48, 0x44, 0x54}, "ACWST": {0x65, 0x75, 0x72, 0x20, 0x63, 0xca, 0xbc, 0x68, 0x6f, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x4b, 0x72, 0x65, 0x69, 0x7a, 0x61, 0x6f, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x61, 0x20, 0x61, 0x72, 0x20, 0x43, 0xca, 0xbc, 0x68, 0x6f, 0x72, 0x6e, 0xc3, 0xb4, 0x67}, "AWST": {0x65, 0x75, 0x72, 0x20, 0x63, 0xca, 0xbc, 0x68, 0x6f, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x41, 0x6f, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x61, 0x20, 0x61, 0x72, 0x20, 0x43, 0xca, 0xbc, 0x68, 0x6f, 0x72, 0x6e, 0xc3, 0xb4, 0x67}, "WESZ": {0x65, 0x75, 0x72, 0x20, 0x68, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x61, 0x20, 0x61, 0x72, 0x20, 0x43, 0xca, 0xbc, 0x68, 0x6f, 0x72, 0x6e, 0xc3, 0xb4, 0x67}, "ACST": {0x65, 0x75, 0x72, 0x20, 0x63, 0xca, 0xbc, 0x68, 0x6f, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x4b, 0x72, 0x65, 0x69, 0x7a, 0x61, 0x6f, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x61}, "OESZ": {0x65, 0x75, 0x72, 0x20, 0x68, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x61, 0x20, 0x61, 0x72, 0x20, 0x52, 0x65, 0x74, 0x65, 0x72}, "MEZ": {0x65, 0x75, 0x72, 0x20, 0x63, 0xca, 0xbc, 0x68, 0x6f, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x4b, 0x72, 0x65, 0x69, 0x7a, 0x65, 0x75, 0x72, 0x6f, 0x70, 0x61}, "HAT": {0x65, 0x75, 0x72, 0x20, 0x68, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x4e, 0x65, 0x77, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x6c, 0x61, 0x6e, 0x64}, "HKT": {0x65, 0x75, 0x72, 0x20, 0x63, 0xca, 0xbc, 0x68, 0x6f, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x48, 0x6f, 0x6e, 0x67, 0x20, 0x4b, 0x6f, 0x6e, 0x67}, "CHADT": {0x65, 0x75, 0x72, 0x20, 0x68, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x43, 0x68, 0x61, 0x74, 0x68, 0x61, 0x6d}, "WITA": {0x57, 0x49, 0x54, 0x41}, "NZST": {0x65, 0x75, 0x72, 0x20, 0x63, 0xca, 0xbc, 0x68, 0x6f, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x5a, 0x65, 0x6c, 0x61, 0x6e, 0x64, 0x2d, 0x4e, 0x65, 0x76, 0x65, 0x7a}, "AWDT": {0x65, 0x75, 0x72, 0x20, 0x68, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x41, 0x6f, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x61, 0x20, 0x61, 0x72, 0x20, 0x43, 0xca, 0xbc, 0x68, 0x6f, 0x72, 0x6e, 0xc3, 0xb4, 0x67}, "MDT": {0x65, 0x75, 0x72, 0x20, 0x68, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x61, 0x72, 0x20, 0x4d, 0x65, 0x6e, 0x65, 0x7a, 0x69, 0x6f, 0xc3, 0xb9}, "JDT": {0x65, 0x75, 0x72, 0x20, 0x68, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x4a, 0x61, 0x70, 0x61, 0x6e}, "∅∅∅": {0xe2, 0x88, 0x85, 0xe2, 0x88, 0x85, 0xe2, 0x88, 0x85}, "LHST": {0x4c, 0x48, 0x53, 0x54}, "ACWDT": {0x65, 0x75, 0x72, 0x20, 0x68, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x4b, 0x72, 0x65, 0x69, 0x7a, 0x61, 0x6f, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x61, 0x20, 0x61, 0x72, 0x20, 0x43, 0xca, 0xbc, 0x68, 0x6f, 0x72, 0x6e, 0xc3, 0xb4, 0x67}, "ECT": {0x65, 0x75, 0x72, 0x20, 0x45, 0x63, 0x75, 0x61, 0x64, 0x6f, 0x72}, "UYST": {0x65, 0x75, 0x72, 0x20, 0x68, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x55, 0x72, 0x75, 0x67, 0x75, 0x61, 0x79}, "HKST": {0x65, 0x75, 0x72, 0x20, 0x68, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x48, 0x6f, 0x6e, 0x67, 0x20, 0x4b, 0x6f, 0x6e, 0x67}, "AEDT": {0x65, 0x75, 0x72, 0x20, 0x68, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x41, 0x6f, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x61, 0x20, 0x61, 0x72, 0x20, 0x52, 0x65, 0x74, 0x65, 0x72}, "SAST": {0x65, 0x75, 0x72, 0x20, 0x63, 0xca, 0xbc, 0x68, 0x6f, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x53, 0x75, 0x61, 0x66, 0x72, 0x69, 0x6b, 0x61}, "SGT": {0x65, 0x75, 0x72, 0x20, 0x63, 0xca, 0xbc, 0x68, 0x6f, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x53, 0x69, 0x6e, 0x67, 0x61, 0x70, 0x6f, 0x75, 0x72}, "TMT": {0x65, 0x75, 0x72, 0x20, 0x63, 0xca, 0xbc, 0x68, 0x6f, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x54, 0x75, 0x72, 0x6b, 0x6d, 0x65, 0x6e, 0x69, 0x73, 0x74, 0x61, 0x6e}, "AKDT": {0x65, 0x75, 0x72, 0x20, 0x68, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x41, 0x6c, 0x61, 0x73, 0x6b, 0x61}, "MST": {0x65, 0x75, 0x72, 0x20, 0x63, 0xca, 0xbc, 0x68, 0x6f, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x61, 0x72, 0x20, 0x4d, 0x65, 0x6e, 0x65, 0x7a, 0x69, 0x6f, 0xc3, 0xb9}, "EAT": {0x65, 0x75, 0x72, 0x20, 0x41, 0x66, 0x72, 0x69, 0x6b, 0x61, 0x20, 0x61, 0x72, 0x20, 0x52, 0x65, 0x74, 0x65, 0x72}, "GMT": {0x41, 0x6d, 0x7a, 0x65, 0x72, 0x20, 0x6b, 0x65, 0x69, 0x74, 0x61, 0x74, 0x20, 0x47, 0x72, 0x65, 0x65, 0x6e, 0x77, 0x69, 0x63, 0x68, 0x20, 0x28, 0x41, 0x4b, 0x47, 0x29}, "MYT": {0x65, 0x75, 0x72, 0x20, 0x4d, 0x61, 0x6c, 0x61, 0x79, 0x73, 0x69, 0x61}, "IST": {0x65, 0x75, 0x72, 0x20, 0x63, 0xca, 0xbc, 0x68, 0x6f, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x49, 0x6e, 0x64, 0x69, 0x61}, "AKST": {0x65, 0x75, 0x72, 0x20, 0x63, 0xca, 0xbc, 0x68, 0x6f, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x41, 0x6c, 0x61, 0x73, 0x6b, 0x61}, "UYT": {0x65, 0x75, 0x72, 0x20, 0x63, 0xca, 0xbc, 0x68, 0x6f, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x55, 0x72, 0x75, 0x67, 0x75, 0x61, 0x79}, "EDT": {0x65, 0x75, 0x72, 0x20, 0x68, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x61, 0x72, 0x20, 0x52, 0x65, 0x74, 0x65, 0x72}, "WARST": {0x65, 0x75, 0x72, 0x20, 0x68, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x41, 0x72, 0x63, 0xca, 0xbc, 0x68, 0x61, 0x6e, 0x74, 0x69, 0x6e, 0x61, 0x20, 0x61, 0x72, 0x20, 0x43, 0xca, 0xbc, 0x68, 0x6f, 0x72, 0x6e, 0xc3, 0xb4, 0x67}, "SRT": {0x65, 0x75, 0x72, 0x20, 0x53, 0x75, 0x72, 0x69, 0x6e, 0x61, 0x6d}, "WAST": {0x65, 0x75, 0x72, 0x20, 0x68, 0x61, 0xc3, 0xb1, 0x76, 0x20, 0x41, 0x66, 0x72, 0x69, 0x6b, 0x61, 0x20, 0x61, 0x72, 0x20, 0x43, 0xca, 0xbc, 0x68, 0x6f, 0x72, 0x6e, 0xc3, 0xb4, 0x67}}, + timeSeparator: ":", + currencies: []string{"ADP", "AED", "AFA", "AFN", "ALK", "ALL", "AMD", "ANG", "AOA", "AOK", "AON", "AOR", "ARA", "ARL", "ARM", "ARP", "ARS", "ATS", "$A", "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", "$CA", "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", "€", "FIM", "FJD", "FKP", "FRF", "£ RU", "GEK", "GEL", "GHC", "GHS", "GIP", "GMD", "GNF", "GNS", "GQE", "GRD", "GTQ", "GWE", "GWP", "GYD", "$ HK", "HNL", "HRD", "HRK", "HTG", "HUF", "IDR", "IEP", "ILP", "ILR", "ILS", "₹", "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", "MX$", "MXP", "MXV", "MYR", "MZE", "MZM", "MZN", "NAD", "NGN", "NIC", "NIO", "NLG", "NOK", "NPR", "$ ZN", "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", "$ SU", "USN", "USS", "UYI", "UYP", "UYU", "UZS", "VEB", "VEF", "VND", "VNN", "VUV", "WST", "FCFA", "XAG", "XAU", "XBA", "XBB", "XBC", "XBD", "XCD", "XDR", "XEU", "XFO", "XFU", "CFA", "XPD", "CFPF", "XPT", "XRE", "XSU", "XTS", "XUA ", "XXX", "YDD", "YER", "YUD", "YUM", "YUN", "YUR", "ZAL", "ZAR", "ZMK", "ZMW", "ZRN", "ZRZ", "ZWD", "ZWL", "ZWR"}, + percentSuffix: " ", + currencyPositiveSuffix: " ", + currencyNegativeSuffix: " ", + monthsAbbreviated: []string{"", "Gen.", "Cʼhwe.", "Meur.", "Ebr.", "Mae", "Mezh.", "Goue.", "Eost", "Gwen.", "Here", "Du", "Kzu."}, + monthsNarrow: []string{"", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"}, + monthsWide: []string{"", "Genver", "Cʼhwevrer", "Meurzh", "Ebrel", "Mae", "Mezheven", "Gouere", "Eost", "Gwengolo", "Here", "Du", "Kerzu"}, + daysAbbreviated: []string{"Sul", "Lun", "Meu.", "Mer.", "Yaou", "Gwe.", "Sad."}, + daysNarrow: []string{"Su", "L", "Mz", "Mc", "Y", "G", "Sa"}, + daysWide: []string{"Sul", "Lun", "Meurzh", "Mercʼher", "Yaou", "Gwener", "Sadorn"}, + periodsAbbreviated: []string{"A.M.", "G.M."}, + periodsNarrow: []string{"am", "gm"}, + periodsWide: []string{"A.M.", "G.M."}, + erasAbbreviated: []string{"a-raok J.K.", "goude J.K."}, + erasNarrow: []string{"a-raok J.K.", "goude J.K."}, + erasWide: []string{"a-raok Jezuz-Krist", "goude Jezuz-Krist"}, + timezones: map[string]string{"CHAST": "eur cʼhoañv Chatham", "EDT": "eur hañv ar Reter", "HNT": "eur cʼhoañv Newfoundland", "AWST": "eur cʼhoañv Aostralia ar Cʼhornôg", "AKDT": "eur hañv Alaska", "NZST": "eur cʼhoañv Zeland-Nevez", "HKST": "eur hañv Hong Kong", "OEZ": "eur cʼhoañv Europa ar Reter", "TMST": "eur hañv Turkmenistan", "PST": "PST", "AWDT": "eur hañv Aostralia ar Cʼhornôg", "MESZ": "eur hañv Kreizeuropa", "WESZ": "eur hañv Europa ar Cʼhornôg", "CAT": "eur Kreizafrika", "ACDT": "eur hañv Kreizaostralia", "AEST": "eur cʼhoañv Aostralia ar Reter", "AEDT": "eur hañv Aostralia ar Reter", "WEZ": "eur cʼhoañv Europa ar Cʼhornôg", "HKT": "eur cʼhoañv Hong Kong", "WART": "eur cʼhoañv Arcʼhantina ar Cʼhornôg", "CST": "CST", "MST": "eur cʼhoañv ar Menezioù", "∅∅∅": "eur hañv Brasília", "GMT": "Amzer keitat Greenwich (AKG)", "JST": "eur cʼhoañv Japan", "WITA": "WITA", "ART": "eur cʼhoañv Arcʼhantina", "ARST": "eur hañv Arcʼhantina", "COST": "eur hañv Kolombia", "HADT": "HADT", "PDT": "PDT", "UYT": "eur cʼhoañv Uruguay", "ACWST": "eur cʼhoañv Kreizaostralia ar Cʼhornôg", "IST": "eur cʼhoañv India", "EAT": "eur Afrika ar Reter", "ACWDT": "eur hañv Kreizaostralia ar Cʼhornôg", "VET": "eur Venezuela", "AST": "AST", "SAST": "eur cʼhoañv Suafrika", "WIT": "eur Indonezia ar Reter", "ACST": "eur cʼhoañv Kreizaostralia", "CLST": "eur hañv Chile", "HAST": "HAST", "WAT": "eur cʼhoañv Afrika ar Cʼhornôg", "WAST": "eur hañv Afrika ar Cʼhornôg", "WARST": "eur hañv Arcʼhantina ar Cʼhornôg", "GFT": "eur Gwiana cʼhall", "GYT": "eur Guyana", "CDT": "CDT", "ChST": "ChST", "CLT": "eur cʼhoañv Chile", "EST": "eur cʼhoañv ar Reter", "OESZ": "eur hañv Europa ar Reter", "LHST": "LHST", "LHDT": "LHDT", "JDT": "eur hañv Japan", "WIB": "eur Indonezia ar Cʼhornôg", "TMT": "eur cʼhoañv Turkmenistan", "MYT": "eur Malaysia", "MEZ": "eur cʼhoañv Kreizeuropa", "NZDT": "eur hañv Zeland-Nevez", "ADT": "ADT", "HAT": "eur hañv Newfoundland", "UYST": "eur hañv Uruguay", "MDT": "eur hañv ar Menezioù", "COT": "eur cʼhoañv Kolombia", "SGT": "eur cʼhoañv Singapour", "BT": "eur Bhoutan", "AKST": "eur cʼhoañv Alaska", "BOT": "eur Bolivia", "CHADT": "eur hañv Chatham", "ECT": "eur Ecuador", "SRT": "eur Surinam"}, } } @@ -127,82 +122,80 @@ func (br *br) RangePluralRule(num1 float64, v1 uint64, num2 float64, v2 uint64) } // MonthAbbreviated returns the locales abbreviated month given the 'month' provided -func (br *br) MonthAbbreviated(month time.Month) []byte { +func (br *br) MonthAbbreviated(month time.Month) string { return br.monthsAbbreviated[month] } // MonthsAbbreviated returns the locales abbreviated months -func (br *br) MonthsAbbreviated() [][]byte { +func (br *br) MonthsAbbreviated() []string { return br.monthsAbbreviated[1:] } // MonthNarrow returns the locales narrow month given the 'month' provided -func (br *br) MonthNarrow(month time.Month) []byte { +func (br *br) MonthNarrow(month time.Month) string { return br.monthsNarrow[month] } // MonthsNarrow returns the locales narrow months -func (br *br) MonthsNarrow() [][]byte { +func (br *br) MonthsNarrow() []string { return br.monthsNarrow[1:] } // MonthWide returns the locales wide month given the 'month' provided -func (br *br) MonthWide(month time.Month) []byte { +func (br *br) MonthWide(month time.Month) string { return br.monthsWide[month] } // MonthsWide returns the locales wide months -func (br *br) MonthsWide() [][]byte { +func (br *br) MonthsWide() []string { return br.monthsWide[1:] } // WeekdayAbbreviated returns the locales abbreviated weekday given the 'weekday' provided -func (br *br) WeekdayAbbreviated(weekday time.Weekday) []byte { +func (br *br) WeekdayAbbreviated(weekday time.Weekday) string { return br.daysAbbreviated[weekday] } // WeekdaysAbbreviated returns the locales abbreviated weekdays -func (br *br) WeekdaysAbbreviated() [][]byte { +func (br *br) WeekdaysAbbreviated() []string { return br.daysAbbreviated } // WeekdayNarrow returns the locales narrow weekday given the 'weekday' provided -func (br *br) WeekdayNarrow(weekday time.Weekday) []byte { +func (br *br) WeekdayNarrow(weekday time.Weekday) string { return br.daysNarrow[weekday] } // WeekdaysNarrow returns the locales narrow weekdays -func (br *br) WeekdaysNarrow() [][]byte { +func (br *br) WeekdaysNarrow() []string { return br.daysNarrow } // WeekdayShort returns the locales short weekday given the 'weekday' provided -func (br *br) WeekdayShort(weekday time.Weekday) []byte { +func (br *br) WeekdayShort(weekday time.Weekday) string { return br.daysShort[weekday] } // WeekdaysShort returns the locales short weekdays -func (br *br) WeekdaysShort() [][]byte { +func (br *br) WeekdaysShort() []string { return br.daysShort } // WeekdayWide returns the locales wide weekday given the 'weekday' provided -func (br *br) WeekdayWide(weekday time.Weekday) []byte { +func (br *br) WeekdayWide(weekday time.Weekday) string { return br.daysWide[weekday] } // WeekdaysWide returns the locales wide weekdays -func (br *br) WeekdaysWide() [][]byte { +func (br *br) WeekdaysWide() []string { return br.daysWide } // FmtNumber returns 'num' with digits/precision of 'v' for 'br' 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 (br *br) FmtNumber(num float64, v uint64) []byte { +func (br *br) FmtNumber(num float64, v uint64) string { s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64) - l := len(s) + len(br.decimal) + len(br.group)*len(s[:len(s)-int(v)-1])/3 + l := len(s) + 0 + 0*len(s[:len(s)-int(v)-1])/3 count := 0 inWhole := v == 0 b := make([]byte, 0, l) @@ -210,20 +203,14 @@ func (br *br) FmtNumber(num float64, v uint64) []byte { for i := len(s) - 1; i >= 0; i-- { if s[i] == '.' { - for j := len(br.decimal) - 1; j >= 0; j-- { - b = append(b, br.decimal[j]) - } - + b = append(b, br.decimal[0]) inWhole = true continue } if inWhole { if count == 3 { - for j := len(br.group) - 1; j >= 0; j-- { - b = append(b, br.group[j]) - } - + b = append(b, br.group[0]) count = 1 } else { count++ @@ -234,9 +221,7 @@ func (br *br) FmtNumber(num float64, v uint64) []byte { } if num < 0 { - for j := len(br.minus) - 1; j >= 0; j-- { - b = append(b, br.minus[j]) - } + b = append(b, br.minus[0]) } // reverse @@ -244,26 +229,20 @@ func (br *br) 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 'br' 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 (br *br) FmtPercent(num float64, v uint64) []byte { - +func (br *br) FmtPercent(num float64, v uint64) string { s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64) - l := len(s) + len(br.decimal) + l := len(s) + 2 b := make([]byte, 0, l) for i := len(s) - 1; i >= 0; i-- { if s[i] == '.' { - for j := len(br.decimal) - 1; j >= 0; j-- { - b = append(b, br.decimal[j]) - } - + b = append(b, br.decimal[0]) continue } @@ -271,9 +250,7 @@ func (br *br) FmtPercent(num float64, v uint64) []byte { } if num < 0 { - for j := len(br.minus) - 1; j >= 0; j-- { - b = append(b, br.minus[j]) - } + b = append(b, br.minus[0]) } // reverse @@ -285,17 +262,15 @@ func (br *br) FmtPercent(num float64, v uint64) []byte { b = append(b, br.percent...) - return b + return string(b) } // FmtCurrency returns the currency representation of 'num' with digits/precision of 'v' for 'br' -// returned as a []byte just in case the caller wishes to add more and can help -// avoid allocations; otherwise just cast as string. -func (br *br) FmtCurrency(num float64, v uint64, currency currency.Type) []byte { +func (br *br) FmtCurrency(num float64, v uint64, currency currency.Type) string { s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64) symbol := br.currencies[currency] - l := len(s) + len(br.decimal) + len(br.group)*len(s[:len(s)-int(v)-1])/3 + l := len(s) + len(symbol) + 2 + 0*len(s[:len(s)-int(v)-1])/3 count := 0 inWhole := v == 0 b := make([]byte, 0, l) @@ -303,20 +278,14 @@ func (br *br) FmtCurrency(num float64, v uint64, currency currency.Type) []byte for i := len(s) - 1; i >= 0; i-- { if s[i] == '.' { - for j := len(br.decimal) - 1; j >= 0; j-- { - b = append(b, br.decimal[j]) - } - + b = append(b, br.decimal[0]) inWhole = true continue } if inWhole { if count == 3 { - for j := len(br.group) - 1; j >= 0; j-- { - b = append(b, br.group[j]) - } - + b = append(b, br.group[0]) count = 1 } else { count++ @@ -327,9 +296,7 @@ func (br *br) FmtCurrency(num float64, v uint64, currency currency.Type) []byte } if num < 0 { - for j := len(br.minus) - 1; j >= 0; j-- { - b = append(b, br.minus[j]) - } + b = append(b, br.minus[0]) } // reverse @@ -352,17 +319,16 @@ func (br *br) FmtCurrency(num float64, v uint64, currency currency.Type) []byte b = append(b, symbol...) - return b + return string(b) } // FmtAccounting returns the currency representation of 'num' with digits/precision of 'v' for 'br' -// 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 (br *br) FmtAccounting(num float64, v uint64, currency currency.Type) []byte { +// in accounting notation. +func (br *br) FmtAccounting(num float64, v uint64, currency currency.Type) string { s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64) symbol := br.currencies[currency] - l := len(s) + len(br.decimal) + len(br.group)*len(s[:len(s)-int(v)-1])/3 + l := len(s) + len(symbol) + 2 + 0*len(s[:len(s)-int(v)-1])/3 count := 0 inWhole := v == 0 b := make([]byte, 0, l) @@ -370,20 +336,14 @@ func (br *br) FmtAccounting(num float64, v uint64, currency currency.Type) []byt for i := len(s) - 1; i >= 0; i-- { if s[i] == '.' { - for j := len(br.decimal) - 1; j >= 0; j-- { - b = append(b, br.decimal[j]) - } - + b = append(b, br.decimal[0]) inWhole = true continue } if inWhole { if count == 3 { - for j := len(br.group) - 1; j >= 0; j-- { - b = append(b, br.group[j]) - } - + b = append(b, br.group[0]) count = 1 } else { count++ @@ -395,9 +355,7 @@ func (br *br) FmtAccounting(num float64, v uint64, currency currency.Type) []byt if num < 0 { - for j := len(br.minus) - 1; j >= 0; j-- { - b = append(b, br.minus[j]) - } + b = append(b, br.minus[0]) } @@ -426,85 +384,69 @@ func (br *br) FmtAccounting(num float64, v uint64, currency currency.Type) []byt b = append(b, symbol...) } - return b + return string(b) } // FmtDateShort returns the short date representation of 't' for 'br' -// returned as a []byte just in case the caller wishes to add more and can help -// avoid allocations; otherwise just cast as string. -func (br *br) FmtDateShort(t time.Time) []byte { +func (br *br) FmtDateShort(t time.Time) string { b := make([]byte, 0, 32) - return b + return string(b) } // FmtDateMedium returns the medium date representation of 't' for 'br' -// returned as a []byte just in case the caller wishes to add more and can help -// avoid allocations; otherwise just cast as string. -func (br *br) FmtDateMedium(t time.Time) []byte { +func (br *br) FmtDateMedium(t time.Time) string { b := make([]byte, 0, 32) - return b + return string(b) } // FmtDateLong returns the long date representation of 't' for 'br' -// returned as a []byte just in case the caller wishes to add more and can help -// avoid allocations; otherwise just cast as string. -func (br *br) FmtDateLong(t time.Time) []byte { +func (br *br) FmtDateLong(t time.Time) string { b := make([]byte, 0, 32) - return b + return string(b) } // FmtDateFull returns the full date representation of 't' for 'br' -// returned as a []byte just in case the caller wishes to add more and can help -// avoid allocations; otherwise just cast as string. -func (br *br) FmtDateFull(t time.Time) []byte { +func (br *br) FmtDateFull(t time.Time) string { b := make([]byte, 0, 32) - return b + return string(b) } // FmtTimeShort returns the short time representation of 't' for 'br' -// returned as a []byte just in case the caller wishes to add more and can help -// avoid allocations; otherwise just cast as string. -func (br *br) FmtTimeShort(t time.Time) []byte { +func (br *br) FmtTimeShort(t time.Time) string { b := make([]byte, 0, 32) - return b + return string(b) } // FmtTimeMedium returns the medium time representation of 't' for 'br' -// returned as a []byte just in case the caller wishes to add more and can help -// avoid allocations; otherwise just cast as string. -func (br *br) FmtTimeMedium(t time.Time) []byte { +func (br *br) FmtTimeMedium(t time.Time) string { b := make([]byte, 0, 32) - return b + return string(b) } // FmtTimeLong returns the long time representation of 't' for 'br' -// returned as a []byte just in case the caller wishes to add more and can help -// avoid allocations; otherwise just cast as string. -func (br *br) FmtTimeLong(t time.Time) []byte { +func (br *br) FmtTimeLong(t time.Time) string { b := make([]byte, 0, 32) - return b + return string(b) } // FmtTimeFull returns the full time representation of 't' for 'br' -// returned as a []byte just in case the caller wishes to add more and can help -// avoid allocations; otherwise just cast as string. -func (br *br) FmtTimeFull(t time.Time) []byte { +func (br *br) FmtTimeFull(t time.Time) string { b := make([]byte, 0, 32) - return b + return string(b) } |