diff options
Diffstat (limited to 'eu/eu.go')
-rw-r--r-- | eu/eu.go | 213 |
1 files changed, 95 insertions, 118 deletions
@@ -14,33 +14,33 @@ type eu struct { pluralsCardinal []locales.PluralRule pluralsOrdinal []locales.PluralRule pluralsRange []locales.PluralRule - decimal []byte - group []byte - minus []byte - percent []byte + decimal string + group string + minus string + percent string percentPrefix []byte - perMille []byte - timeSeparator []byte - inifinity []byte - currencies [][]byte // idx = enum of currency code - currencyPositiveSuffix []byte - 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 + perMille string + timeSeparator string + inifinity string + currencies []string // idx = enum of currency code + currencyPositiveSuffix string + 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 'eu' locale @@ -50,32 +50,32 @@ func New() locales.Translator { pluralsCardinal: []locales.PluralRule{2, 6}, pluralsOrdinal: []locales.PluralRule{6}, pluralsRange: []locales.PluralRule{6}, - decimal: []byte{0x2c}, - group: []byte{0x2e}, - 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}, {0x41, 0x46, 0x41, 0x20}, {0x41, 0x46, 0x4e}, {0x41, 0x4c, 0x4b, 0x20}, {0x41, 0x4c, 0x4c}, {0x41, 0x4d, 0x44}, {0x41, 0x4e, 0x47}, {0x41, 0x4f, 0x41}, {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}, {0x41, 0x54, 0x53, 0x20}, {0x41, 0x24}, {0x41, 0x57, 0x47}, {0x41, 0x5a, 0x4d, 0x20}, {0x41, 0x5a, 0x4e}, {0x42, 0x41, 0x44, 0x20}, {0x42, 0x41, 0x4d}, {0x42, 0x41, 0x4e, 0x20}, {0x42, 0x42, 0x44}, {0x42, 0x44, 0x54}, {0x42, 0x45, 0x43, 0x20}, {0x42, 0x45, 0x46, 0x20}, {0x42, 0x45, 0x4c, 0x20}, {0x42, 0x47, 0x4c, 0x20}, {0x42, 0x47, 0x4d, 0x20}, {0x42, 0x47, 0x4e}, {0x42, 0x47, 0x4f, 0x20}, {0x42, 0x48, 0x44}, {0x42, 0x49, 0x46}, {0x42, 0x4d, 0x44}, {0x42, 0x4e, 0x44}, {0x42, 0x4f, 0x42}, {0x42, 0x4f, 0x4c, 0x20}, {0x42, 0x4f, 0x50, 0x20}, {0x42, 0x4f, 0x56, 0x20}, {0x42, 0x52, 0x42, 0x20}, {0x42, 0x52, 0x43, 0x20}, {0x42, 0x52, 0x45, 0x20}, {0x52, 0x24}, {0x42, 0x52, 0x4e, 0x20}, {0x42, 0x52, 0x52, 0x20}, {0x42, 0x52, 0x5a, 0x20}, {0x42, 0x53, 0x44}, {0x42, 0x54, 0x4e}, {0x42, 0x55, 0x4b, 0x20}, {0x42, 0x57, 0x50}, {0x42, 0x59, 0x42, 0x20}, {0x42, 0x59, 0x52}, {0x42, 0x5a, 0x44}, {0x43, 0x41, 0x24}, {0x43, 0x44, 0x46}, {0x43, 0x48, 0x45, 0x20}, {0x43, 0x48, 0x46}, {0x43, 0x48, 0x57, 0x20}, {0x43, 0x4c, 0x45, 0x20}, {0x43, 0x4c, 0x46, 0x20}, {0x43, 0x4c, 0x50}, {0x43, 0x4e, 0x58, 0x20}, {0x43, 0x4e, 0xc2, 0xa5}, {0x43, 0x4f, 0x50}, {0x43, 0x4f, 0x55, 0x20}, {0x43, 0x52, 0x43}, {0x43, 0x53, 0x44, 0x20}, {0x43, 0x53, 0x4b, 0x20}, {0x43, 0x55, 0x43}, {0x43, 0x55, 0x50}, {0x43, 0x56, 0x45}, {0x43, 0x59, 0x50, 0x20}, {0x43, 0x5a, 0x4b}, {0x44, 0x44, 0x4d, 0x20}, {0x44, 0x45, 0x4d, 0x20}, {0x44, 0x4a, 0x46}, {0x44, 0x4b, 0x4b}, {0x44, 0x4f, 0x50}, {0x44, 0x5a, 0x44}, {0x45, 0x43, 0x53, 0x20}, {0x45, 0x43, 0x56, 0x20}, {0x45, 0x45, 0x4b, 0x20}, {0x45, 0x47, 0x50}, {0x45, 0x52, 0x4e}, {0x45, 0x53, 0x41, 0x20}, {0x45, 0x53, 0x42, 0x20}, {0xe2, 0x82, 0xa7}, {0x45, 0x54, 0x42}, {0xe2, 0x82, 0xac}, {0x46, 0x49, 0x4d, 0x20}, {0x46, 0x4a, 0x44}, {0x46, 0x4b, 0x50}, {0x46, 0x52, 0x46, 0x20}, {0xc2, 0xa3}, {0x47, 0x45, 0x4b, 0x20}, {0x47, 0x45, 0x4c}, {0x47, 0x48, 0x43, 0x20}, {0x47, 0x48, 0x53}, {0x47, 0x49, 0x50}, {0x47, 0x4d, 0x44}, {0x47, 0x4e, 0x46}, {0x47, 0x4e, 0x53, 0x20}, {0x47, 0x51, 0x45, 0x20}, {0x47, 0x52, 0x44, 0x20}, {0x47, 0x54, 0x51}, {0x47, 0x57, 0x45, 0x20}, {0x47, 0x57, 0x50, 0x20}, {0x47, 0x59, 0x44}, {0x48, 0x4b, 0x24}, {0x48, 0x4e, 0x4c}, {0x48, 0x52, 0x44, 0x20}, {0x48, 0x52, 0x4b}, {0x48, 0x54, 0x47}, {0x48, 0x55, 0x46}, {0x49, 0x44, 0x52}, {0x49, 0x45, 0x50, 0x20}, {0x49, 0x4c, 0x50, 0x20}, {0x49, 0x4c, 0x52, 0x20}, {0xe2, 0x82, 0xaa}, {0xe2, 0x82, 0xb9}, {0x49, 0x51, 0x44}, {0x49, 0x52, 0x52}, {0x49, 0x53, 0x4a, 0x20}, {0x49, 0x53, 0x4b}, {0x49, 0x54, 0x4c, 0x20}, {0x4a, 0x4d, 0x44}, {0x4a, 0x4f, 0x44}, {0x4a, 0x50, 0xc2, 0xa5}, {0x4b, 0x45, 0x53}, {0x4b, 0x47, 0x53}, {0x4b, 0x48, 0x52}, {0x4b, 0x4d, 0x46}, {0x4b, 0x50, 0x57}, {0x4b, 0x52, 0x48, 0x20}, {0x4b, 0x52, 0x4f, 0x20}, {0xe2, 0x82, 0xa9}, {0x4b, 0x57, 0x44}, {0x4b, 0x59, 0x44}, {0x4b, 0x5a, 0x54}, {0x4c, 0x41, 0x4b}, {0x4c, 0x42, 0x50}, {0x4c, 0x4b, 0x52}, {0x4c, 0x52, 0x44}, {0x4c, 0x53, 0x4c, 0x20}, {0x4c, 0x54, 0x4c}, {0x4c, 0x54, 0x54, 0x20}, {0x4c, 0x55, 0x43, 0x20}, {0x4c, 0x55, 0x46, 0x20}, {0x4c, 0x55, 0x4c, 0x20}, {0x4c, 0x56, 0x4c}, {0x4c, 0x56, 0x52, 0x20}, {0x4c, 0x59, 0x44}, {0x4d, 0x41, 0x44}, {0x4d, 0x41, 0x46, 0x20}, {0x4d, 0x43, 0x46, 0x20}, {0x4d, 0x44, 0x43, 0x20}, {0x4d, 0x44, 0x4c}, {0x4d, 0x47, 0x41}, {0x4d, 0x47, 0x46, 0x20}, {0x4d, 0x4b, 0x44}, {0x4d, 0x4b, 0x4e, 0x20}, {0x4d, 0x4c, 0x46, 0x20}, {0x4d, 0x4d, 0x4b}, {0x4d, 0x4e, 0x54}, {0x4d, 0x4f, 0x50}, {0x4d, 0x52, 0x4f}, {0x4d, 0x54, 0x4c, 0x20}, {0x4d, 0x54, 0x50, 0x20}, {0x4d, 0x55, 0x52}, {0x4d, 0x56, 0x50, 0x20}, {0x4d, 0x56, 0x52}, {0x4d, 0x57, 0x4b}, {0x4d, 0x58, 0x24}, {0x4d, 0x58, 0x50, 0x20}, {0x4d, 0x58, 0x56, 0x20}, {0x4d, 0x59, 0x52}, {0x4d, 0x5a, 0x45, 0x20}, {0x4d, 0x5a, 0x4d, 0x20}, {0x4d, 0x5a, 0x4e}, {0x4e, 0x41, 0x44}, {0x4e, 0x47, 0x4e}, {0x4e, 0x49, 0x43, 0x20}, {0x4e, 0x49, 0x4f}, {0x4e, 0x4c, 0x47, 0x20}, {0x4e, 0x4f, 0x4b}, {0x4e, 0x50, 0x52}, {0x4e, 0x5a, 0x24}, {0x4f, 0x4d, 0x52}, {0x50, 0x41, 0x42}, {0x50, 0x45, 0x49, 0x20}, {0x50, 0x45, 0x4e}, {0x50, 0x45, 0x53, 0x20}, {0x50, 0x47, 0x4b}, {0x50, 0x48, 0x50}, {0x50, 0x4b, 0x52}, {0x50, 0x4c, 0x4e}, {0x50, 0x4c, 0x5a, 0x20}, {0x50, 0x54, 0x45, 0x20}, {0x50, 0x59, 0x47}, {0x51, 0x41, 0x52}, {0x52, 0x48, 0x44, 0x20}, {0x52, 0x4f, 0x4c, 0x20}, {0x52, 0x4f, 0x4e}, {0x52, 0x53, 0x44}, {0x52, 0x55, 0x42}, {0x52, 0x55, 0x52, 0x20}, {0x52, 0x57, 0x46}, {0x53, 0x41, 0x52}, {0x53, 0x42, 0x44}, {0x53, 0x43, 0x52}, {0x53, 0x44, 0x44, 0x20}, {0x53, 0x44, 0x47}, {0x53, 0x44, 0x50, 0x20}, {0x53, 0x45, 0x4b}, {0x53, 0x47, 0x44}, {0x53, 0x48, 0x50}, {0x53, 0x49, 0x54, 0x20}, {0x53, 0x4b, 0x4b, 0x20}, {0x53, 0x4c, 0x4c}, {0x53, 0x4f, 0x53}, {0x53, 0x52, 0x44}, {0x53, 0x52, 0x47, 0x20}, {0x53, 0x53, 0x50}, {0x53, 0x54, 0x44}, {0x53, 0x55, 0x52, 0x20}, {0x53, 0x56, 0x43, 0x20}, {0x53, 0x59, 0x50}, {0x53, 0x5a, 0x4c}, {0xe0, 0xb8, 0xbf}, {0x54, 0x4a, 0x52, 0x20}, {0x54, 0x4a, 0x53}, {0x54, 0x4d, 0x4d, 0x20}, {0x54, 0x4d, 0x54}, {0x54, 0x4e, 0x44}, {0x54, 0x4f, 0x50}, {0x54, 0x50, 0x45, 0x20}, {0x54, 0x52, 0x4c, 0x20}, {0x54, 0x52, 0x59}, {0x54, 0x54, 0x44}, {0x4e, 0x54, 0x24}, {0x54, 0x5a, 0x53}, {0x55, 0x41, 0x48}, {0x55, 0x41, 0x4b, 0x20}, {0x55, 0x47, 0x53, 0x20}, {0x55, 0x47, 0x58}, {0x55, 0x53, 0x24}, {0x55, 0x53, 0x4e, 0x20}, {0x55, 0x53, 0x53, 0x20}, {0x55, 0x59, 0x49, 0x20}, {0x55, 0x59, 0x50, 0x20}, {0x55, 0x59, 0x55}, {0x55, 0x5a, 0x53}, {0x56, 0x45, 0x42, 0x20}, {0x56, 0x45, 0x46}, {0xe2, 0x82, 0xab}, {0x56, 0x4e, 0x4e, 0x20}, {0x56, 0x55, 0x56}, {0x57, 0x53, 0x54}, {0x46, 0x43, 0x46, 0x41}, {0x58, 0x41, 0x47, 0x20}, {0x58, 0x41, 0x55, 0x20}, {0x58, 0x42, 0x41, 0x20}, {0x58, 0x42, 0x42, 0x20}, {0x58, 0x42, 0x43, 0x20}, {0x58, 0x42, 0x44, 0x20}, {0x45, 0x43, 0x24}, {0x58, 0x44, 0x52, 0x20}, {0x58, 0x45, 0x55, 0x20}, {0x58, 0x46, 0x4f, 0x20}, {0x58, 0x46, 0x55, 0x20}, {0x43, 0x46, 0x41}, {0x58, 0x50, 0x44, 0x20}, {0x43, 0x46, 0x50, 0x46}, {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}, {0x59, 0x55, 0x44, 0x20}, {0x59, 0x55, 0x4d, 0x20}, {0x59, 0x55, 0x4e, 0x20}, {0x59, 0x55, 0x52, 0x20}, {0x5a, 0x41, 0x4c, 0x20}, {0x5a, 0x41, 0x52}, {0x5a, 0x4d, 0x4b, 0x20}, {0x5a, 0x4d, 0x57}, {0x5a, 0x52, 0x4e, 0x20}, {0x5a, 0x52, 0x5a, 0x20}, {0x5a, 0x57, 0x44, 0x20}, {0x5a, 0x57, 0x4c, 0x20}, {0x5a, 0x57, 0x52, 0x20}}, + 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 ", "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 ", "R$", "BRN ", "BRR ", "BRZ ", "BSD", "BTN", "BUK ", "BWP", "BYB ", "BYR", "BZD", "CA$", "CDF", "CHE ", "CHF", "CHW ", "CLE ", "CLF ", "CLP", "CNX ", "CN¥", "COP", "COU ", "CRC", "CSD ", "CSK ", "CUC", "CUP", "CVE", "CYP ", "CZK", "DDM ", "DEM ", "DJF", "DKK", "DOP", "DZD", "ECS ", "ECV ", "EEK ", "EGP", "ERN", "ESA ", "ESB ", "₧", "ETB", "€", "FIM ", "FJD", "FKP", "FRF ", "£", "GEK ", "GEL", "GHC ", "GHS", "GIP", "GMD", "GNF", "GNS ", "GQE ", "GRD ", "GTQ", "GWE ", "GWP ", "GYD", "HK$", "HNL", "HRD ", "HRK", "HTG", "HUF", "IDR", "IEP ", "ILP ", "ILR ", "₪", "₹", "IQD", "IRR", "ISJ ", "ISK", "ITL ", "JMD", "JOD", "JP¥", "KES", "KGS", "KHR", "KMF", "KPW", "KRH ", "KRO ", "₩", "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", "NZ$", "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", "฿", "TJR ", "TJS", "TMM ", "TMT", "TND", "TOP", "TPE ", "TRL ", "TRY", "TTD", "NT$", "TZS", "UAH", "UAK ", "UGS ", "UGX", "US$", "USN ", "USS ", "UYI ", "UYP ", "UYU", "UZS", "VEB ", "VEF", "₫", "VNN ", "VUV", "WST", "FCFA", "XAG ", "XAU ", "XBA ", "XBB ", "XBC ", "XBD ", "EC$", "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 "}, percentPrefix: []byte{0xc2, 0xa0}, - currencyPositiveSuffix: []byte{0xc2, 0xa0}, - currencyNegativePrefix: []byte{0x28}, - currencyNegativeSuffix: []byte{0xc2, 0xa0, 0x29}, - monthsAbbreviated: [][]uint8{[]uint8(nil), {0x75, 0x72, 0x74, 0x2e}, {0x6f, 0x74, 0x73, 0x2e}, {0x6d, 0x61, 0x72, 0x2e}, {0x61, 0x70, 0x69, 0x2e}, {0x6d, 0x61, 0x69, 0x2e}, {0x65, 0x6b, 0x61, 0x2e}, {0x75, 0x7a, 0x74, 0x2e}, {0x61, 0x62, 0x75, 0x2e}, {0x69, 0x72, 0x61, 0x2e}, {0x75, 0x72, 0x72, 0x2e}, {0x61, 0x7a, 0x61, 0x2e}, {0x61, 0x62, 0x65, 0x2e}}, - monthsNarrow: [][]uint8{[]uint8(nil), {0x55}, {0x4f}, {0x4d}, {0x41}, {0x4d}, {0x45}, {0x55}, {0x41}, {0x49}, {0x55}, {0x41}, {0x41}}, - monthsWide: [][]uint8{[]uint8(nil), {0x75, 0x72, 0x74, 0x61, 0x72, 0x72, 0x69, 0x6c, 0x61, 0x6b}, {0x6f, 0x74, 0x73, 0x61, 0x69, 0x6c, 0x61, 0x6b}, {0x6d, 0x61, 0x72, 0x74, 0x78, 0x6f, 0x61, 0x6b}, {0x61, 0x70, 0x69, 0x72, 0x69, 0x6c, 0x61, 0x6b}, {0x6d, 0x61, 0x69, 0x61, 0x74, 0x7a, 0x61, 0x6b}, {0x65, 0x6b, 0x61, 0x69, 0x6e, 0x61, 0x6b}, {0x75, 0x7a, 0x74, 0x61, 0x69, 0x6c, 0x61, 0x6b}, {0x61, 0x62, 0x75, 0x7a, 0x74, 0x75, 0x61, 0x6b}, {0x69, 0x72, 0x61, 0x69, 0x6c, 0x61, 0x6b}, {0x75, 0x72, 0x72, 0x69, 0x61, 0x6b}, {0x61, 0x7a, 0x61, 0x72, 0x6f, 0x61, 0x6b}, {0x61, 0x62, 0x65, 0x6e, 0x64, 0x75, 0x61, 0x6b}}, - daysAbbreviated: [][]uint8{{0x69, 0x67, 0x2e}, {0x61, 0x6c, 0x2e}, {0x61, 0x72, 0x2e}, {0x61, 0x7a, 0x2e}, {0x6f, 0x67, 0x2e}, {0x6f, 0x72, 0x2e}, {0x6c, 0x72, 0x2e}}, - daysNarrow: [][]uint8{{0x49}, {0x41}, {0x41}, {0x41}, {0x4f}, {0x4f}, {0x4c}}, - daysShort: [][]uint8{{0x69, 0x67, 0x2e}, {0x61, 0x6c, 0x2e}, {0x61, 0x72, 0x2e}, {0x61, 0x7a, 0x2e}, {0x6f, 0x67, 0x2e}, {0x6f, 0x72, 0x2e}, {0x6c, 0x72, 0x2e}}, - daysWide: [][]uint8{{0x69, 0x67, 0x61, 0x6e, 0x64, 0x65, 0x61}, {0x61, 0x73, 0x74, 0x65, 0x6c, 0x65, 0x68, 0x65, 0x6e, 0x61}, {0x61, 0x73, 0x74, 0x65, 0x61, 0x72, 0x74, 0x65, 0x61}, {0x61, 0x73, 0x74, 0x65, 0x61, 0x7a, 0x6b, 0x65, 0x6e, 0x61}, {0x6f, 0x73, 0x74, 0x65, 0x67, 0x75, 0x6e, 0x61}, {0x6f, 0x73, 0x74, 0x69, 0x72, 0x61, 0x6c, 0x61}, {0x6c, 0x61, 0x72, 0x75, 0x6e, 0x62, 0x61, 0x74, 0x61}}, - periodsAbbreviated: [][]uint8{{0x41, 0x4d}, {0x50, 0x4d}}, - periodsNarrow: [][]uint8{{0x67}, {0x61}}, - periodsWide: [][]uint8{{0x41, 0x4d}, {0x50, 0x4d}}, - erasAbbreviated: [][]uint8{{0x4b, 0x2e, 0x61, 0x2e}, {0x4b, 0x2e, 0x6f, 0x2e}}, - erasNarrow: [][]uint8{[]uint8(nil), []uint8(nil)}, - erasWide: [][]uint8{{0x4b, 0x2e, 0x61, 0x2e}, {0x4b, 0x2e, 0x6f, 0x2e}}, - timezones: map[string][]uint8{"LHST": {0x4c, 0x6f, 0x72, 0x64, 0x20, 0x48, 0x6f, 0x77, 0x65, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x20, 0x65, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x72, 0x61}, "WIB": {0x49, 0x6e, 0x64, 0x6f, 0x6e, 0x65, 0x73, 0x69, 0x61, 0x20, 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x62, 0x61, 0x6c, 0x64, 0x65, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "TMST": {0x54, 0x75, 0x72, 0x6b, 0x6d, 0x65, 0x6e, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x67, 0x6f, 0x20, 0x75, 0x64, 0x61, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "GYT": {0x47, 0x75, 0x79, 0x61, 0x6e, 0x61, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "ARST": {0x41, 0x72, 0x67, 0x65, 0x6e, 0x74, 0x69, 0x6e, 0x61, 0x6b, 0x6f, 0x20, 0x75, 0x64, 0x61, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "SAST": {0x41, 0x66, 0x72, 0x69, 0x6b, 0x61, 0x20, 0x68, 0x65, 0x67, 0x6f, 0x61, 0x6c, 0x64, 0x65, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "SGT": {0x53, 0x69, 0x6e, 0x67, 0x61, 0x70, 0x75, 0x72, 0x72, 0x65, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x20, 0x65, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x72, 0x61}, "JDT": {0x4a, 0x61, 0x70, 0x6f, 0x6e, 0x69, 0x61, 0x6b, 0x6f, 0x20, 0x75, 0x64, 0x61, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "GFT": {0x47, 0x75, 0x79, 0x61, 0x6e, 0x61, 0x20, 0x46, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x65, 0x73, 0x65, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "ACWDT": {0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x61, 0x20, 0x65, 0x72, 0x64, 0x69, 0x2d, 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x62, 0x61, 0x6c, 0x64, 0x65, 0x6b, 0x6f, 0x20, 0x75, 0x64, 0x61, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "AWST": {0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x61, 0x20, 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x62, 0x61, 0x6c, 0x64, 0x65, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x20, 0x65, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x72, 0x61}, "TMT": {0x54, 0x75, 0x72, 0x6b, 0x6d, 0x65, 0x6e, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x67, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x20, 0x65, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x72, 0x61}, "SRT": {0x53, 0x75, 0x72, 0x69, 0x6e, 0x61, 0x6d, 0x67, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "UYT": {0x55, 0x72, 0x75, 0x67, 0x75, 0x61, 0x79, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x20, 0x65, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x72, 0x61}, "GMT": {0x47, 0x72, 0x65, 0x65, 0x6e, 0x77, 0x69, 0x63, 0x68, 0x20, 0x6d, 0x65, 0x72, 0x69, 0x64, 0x69, 0x61, 0x6e, 0x6f, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "AKDT": {0x41, 0x6c, 0x61, 0x73, 0x6b, 0x61, 0x6b, 0x6f, 0x20, 0x75, 0x64, 0x61, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "EDT": {0x49, 0x70, 0x61, 0x72, 0x20, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x6b, 0x61, 0x6b, 0x6f, 0x20, 0x65, 0x6b, 0x69, 0x61, 0x6c, 0x64, 0x65, 0x6b, 0x6f, 0x20, 0x75, 0x64, 0x61, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "ACWST": {0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x61, 0x20, 0x65, 0x72, 0x64, 0x69, 0x2d, 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x62, 0x61, 0x6c, 0x64, 0x65, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x20, 0x65, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x72, 0x61}, "ACST": {0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x61, 0x20, 0x65, 0x72, 0x64, 0x69, 0x61, 0x6c, 0x64, 0x65, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x20, 0x65, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x72, 0x61}, "COT": {0x4b, 0x6f, 0x6c, 0x6f, 0x6e, 0x62, 0x69, 0x61, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x20, 0x65, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x72, 0x61}, "MEZ": {0x45, 0x75, 0x72, 0x6f, 0x70, 0x61, 0x20, 0x65, 0x72, 0x64, 0x69, 0x61, 0x6c, 0x64, 0x65, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x20, 0x65, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x72, 0x61}, "BOT": {0x42, 0x6f, 0x6c, 0x69, 0x76, 0x69, 0x61, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "PST": {0x49, 0x70, 0x61, 0x72, 0x20, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x6b, 0x61, 0x6b, 0x6f, 0x20, 0x50, 0x61, 0x7a, 0x69, 0x66, 0x69, 0x6b, 0x6f, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x20, 0x65, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x72, 0x61}, "NZDT": {0x5a, 0x65, 0x65, 0x6c, 0x61, 0x6e, 0x64, 0x61, 0x20, 0x42, 0x65, 0x72, 0x72, 0x69, 0x6b, 0x6f, 0x20, 0x75, 0x64, 0x61, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "WARST": {0x41, 0x72, 0x67, 0x65, 0x6e, 0x74, 0x69, 0x6e, 0x61, 0x20, 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x62, 0x61, 0x6c, 0x64, 0x65, 0x6b, 0x6f, 0x20, 0x75, 0x64, 0x61, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "COST": {0x4b, 0x6f, 0x6c, 0x6f, 0x6e, 0x62, 0x69, 0x61, 0x6b, 0x6f, 0x20, 0x75, 0x64, 0x61, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "CHAST": {0x43, 0x68, 0x61, 0x74, 0x68, 0x61, 0x6d, 0x67, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x20, 0x65, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x72, 0x61}, "CHADT": {0x43, 0x68, 0x61, 0x74, 0x68, 0x61, 0x6d, 0x67, 0x6f, 0x20, 0x75, 0x64, 0x61, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "HAST": {0x48, 0x61, 0x77, 0x61, 0x69, 0x69, 0x2d, 0x41, 0x6c, 0x65, 0x75, 0x74, 0x69, 0x61, 0x72, 0x20, 0x75, 0x68, 0x61, 0x72, 0x74, 0x65, 0x65, 0x74, 0x61, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x20, 0x65, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x72, 0x61}, "WESZ": {0x45, 0x75, 0x72, 0x6f, 0x70, 0x61, 0x20, 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x62, 0x61, 0x6c, 0x64, 0x65, 0x6b, 0x6f, 0x20, 0x75, 0x64, 0x61, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "HKST": {0x48, 0x6f, 0x6e, 0x67, 0x20, 0x4b, 0x6f, 0x6e, 0x67, 0x6f, 0x20, 0x75, 0x64, 0x61, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "BT": {0x42, 0x68, 0x75, 0x74, 0x61, 0x6e, 0x67, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "AEDT": {0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x61, 0x20, 0x65, 0x6b, 0x69, 0x61, 0x6c, 0x64, 0x65, 0x6b, 0x6f, 0x20, 0x75, 0x64, 0x61, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "OESZ": {0x45, 0x75, 0x72, 0x6f, 0x70, 0x61, 0x20, 0x65, 0x6b, 0x69, 0x61, 0x6c, 0x64, 0x65, 0x6b, 0x6f, 0x20, 0x75, 0x64, 0x61, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "OEZ": {0x45, 0x75, 0x72, 0x6f, 0x70, 0x61, 0x20, 0x65, 0x6b, 0x69, 0x61, 0x6c, 0x64, 0x65, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x20, 0x65, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x72, 0x61}, "ADT": {0x41, 0x74, 0x6c, 0x61, 0x6e, 0x74, 0x69, 0x6b, 0x6f, 0x6b, 0x6f, 0x20, 0x75, 0x64, 0x61, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "MYT": {0x4d, 0x61, 0x6c, 0x61, 0x79, 0x73, 0x69, 0x61, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "ECT": {0x45, 0x6b, 0x75, 0x61, 0x64, 0x6f, 0x72, 0x72, 0x65, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "CAT": {0x41, 0x66, 0x72, 0x69, 0x6b, 0x61, 0x20, 0x65, 0x72, 0x64, 0x69, 0x61, 0x6c, 0x64, 0x65, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "MESZ": {0x45, 0x75, 0x72, 0x6f, 0x70, 0x61, 0x20, 0x65, 0x72, 0x64, 0x69, 0x61, 0x6c, 0x64, 0x65, 0x6b, 0x6f, 0x20, 0x75, 0x64, 0x61, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "AST": {0x41, 0x74, 0x6c, 0x61, 0x6e, 0x74, 0x69, 0x6b, 0x6f, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x20, 0x65, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x72, 0x61}, "ChST": {0x43, 0x68, 0x61, 0x6d, 0x6f, 0x72, 0x72, 0x6f, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x20, 0x65, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x72, 0x61}, "WAST": {0x41, 0x66, 0x72, 0x69, 0x6b, 0x61, 0x20, 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x62, 0x61, 0x6c, 0x64, 0x65, 0x6b, 0x6f, 0x20, 0x75, 0x64, 0x61, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "WITA": {0x49, 0x6e, 0x64, 0x6f, 0x6e, 0x65, 0x73, 0x69, 0x61, 0x20, 0x65, 0x72, 0x64, 0x69, 0x61, 0x6c, 0x64, 0x65, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "PDT": {0x49, 0x70, 0x61, 0x72, 0x20, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x6b, 0x61, 0x6b, 0x6f, 0x20, 0x50, 0x61, 0x7a, 0x69, 0x66, 0x69, 0x6b, 0x6f, 0x6b, 0x6f, 0x20, 0x75, 0x64, 0x61, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "AWDT": {0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x61, 0x20, 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x62, 0x61, 0x6c, 0x64, 0x65, 0x6b, 0x6f, 0x20, 0x75, 0x64, 0x61, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "VET": {0x56, 0x65, 0x6e, 0x65, 0x7a, 0x75, 0x65, 0x6c, 0x61, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "NZST": {0x5a, 0x65, 0x65, 0x6c, 0x61, 0x6e, 0x64, 0x61, 0x20, 0x42, 0x65, 0x72, 0x72, 0x69, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x20, 0x65, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x72, 0x61}, "CDT": {0x49, 0x70, 0x61, 0x72, 0x20, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x6b, 0x61, 0x6b, 0x6f, 0x20, 0x65, 0x72, 0x64, 0x69, 0x61, 0x6c, 0x64, 0x65, 0x6b, 0x6f, 0x20, 0x75, 0x64, 0x61, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "ART": {0x41, 0x72, 0x67, 0x65, 0x6e, 0x74, 0x69, 0x6e, 0x61, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x20, 0x65, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x72, 0x61}, "EST": {0x49, 0x70, 0x61, 0x72, 0x20, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x6b, 0x61, 0x6b, 0x6f, 0x20, 0x65, 0x6b, 0x69, 0x61, 0x6c, 0x64, 0x65, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x20, 0x65, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x72, 0x61}, "AEST": {0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x61, 0x20, 0x65, 0x6b, 0x69, 0x61, 0x6c, 0x64, 0x65, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x20, 0x65, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x72, 0x61}, "CST": {0x49, 0x70, 0x61, 0x72, 0x20, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x6b, 0x61, 0x6b, 0x6f, 0x20, 0x65, 0x72, 0x64, 0x69, 0x61, 0x6c, 0x64, 0x65, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x20, 0x65, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x72, 0x61}, "WIT": {0x49, 0x6e, 0x64, 0x6f, 0x6e, 0x65, 0x73, 0x69, 0x61, 0x20, 0x65, 0x6b, 0x69, 0x61, 0x6c, 0x64, 0x65, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "HAT": {0x54, 0x65, 0x72, 0x6e, 0x75, 0x61, 0x6b, 0x6f, 0x20, 0x75, 0x64, 0x61, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "WAT": {0x41, 0x66, 0x72, 0x69, 0x6b, 0x61, 0x20, 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x62, 0x61, 0x6c, 0x64, 0x65, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x20, 0x65, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x72, 0x61}, "IST": {0x49, 0x6e, 0x64, 0x69, 0x61, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "HKT": {0x48, 0x6f, 0x6e, 0x67, 0x20, 0x4b, 0x6f, 0x6e, 0x67, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x20, 0x65, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x72, 0x61}, "UYST": {0x55, 0x72, 0x75, 0x67, 0x75, 0x61, 0x79, 0x6b, 0x6f, 0x20, 0x75, 0x64, 0x61, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "MST": {0x49, 0x70, 0x61, 0x72, 0x20, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x6b, 0x61, 0x6b, 0x6f, 0x20, 0x6d, 0x65, 0x6e, 0x64, 0x69, 0x61, 0x6c, 0x64, 0x65, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x20, 0x65, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x72, 0x61}, "MDT": {0x49, 0x70, 0x61, 0x72, 0x20, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x6b, 0x61, 0x6b, 0x6f, 0x20, 0x6d, 0x65, 0x6e, 0x64, 0x69, 0x61, 0x6c, 0x64, 0x65, 0x6b, 0x6f, 0x20, 0x75, 0x64, 0x61, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "CLT": {0x54, 0x78, 0x69, 0x6c, 0x65, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x20, 0x65, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x72, 0x61}, "JST": {0x4a, 0x61, 0x70, 0x6f, 0x6e, 0x69, 0x61, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x20, 0x65, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x72, 0x61}, "HNT": {0x54, 0x65, 0x72, 0x6e, 0x75, 0x61, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x20, 0x65, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x72, 0x61}, "LHDT": {0x4c, 0x6f, 0x72, 0x64, 0x20, 0x48, 0x6f, 0x77, 0x65, 0x6b, 0x6f, 0x20, 0x75, 0x64, 0x61, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "WART": {0x41, 0x72, 0x67, 0x65, 0x6e, 0x74, 0x69, 0x6e, 0x61, 0x20, 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x62, 0x61, 0x6c, 0x64, 0x65, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x20, 0x65, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x72, 0x61}, "HADT": {0x48, 0x61, 0x77, 0x61, 0x69, 0x69, 0x2d, 0x41, 0x6c, 0x65, 0x75, 0x74, 0x69, 0x61, 0x72, 0x20, 0x75, 0x68, 0x61, 0x72, 0x74, 0x65, 0x65, 0x74, 0x61, 0x6b, 0x6f, 0x20, 0x75, 0x64, 0x61, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "∅∅∅": {0x50, 0x65, 0x72, 0x75, 0x6b, 0x6f, 0x20, 0x75, 0x64, 0x61, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "CLST": {0x54, 0x78, 0x69, 0x6c, 0x65, 0x6b, 0x6f, 0x20, 0x75, 0x64, 0x61, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "AKST": {0x41, 0x6c, 0x61, 0x73, 0x6b, 0x61, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x20, 0x65, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x72, 0x61}, "WEZ": {0x45, 0x75, 0x72, 0x6f, 0x70, 0x61, 0x20, 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x62, 0x61, 0x6c, 0x64, 0x65, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x20, 0x65, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x72, 0x61}, "EAT": {0x41, 0x66, 0x72, 0x69, 0x6b, 0x61, 0x20, 0x65, 0x6b, 0x69, 0x61, 0x6c, 0x64, 0x65, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}, "ACDT": {0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x61, 0x20, 0x65, 0x72, 0x64, 0x69, 0x61, 0x6c, 0x64, 0x65, 0x6b, 0x6f, 0x20, 0x75, 0x64, 0x61, 0x6b, 0x6f, 0x20, 0x6f, 0x72, 0x64, 0x75, 0x61}}, + currencyPositiveSuffix: " ", + currencyNegativePrefix: "(", + currencyNegativeSuffix: " )", + monthsAbbreviated: []string{"", "urt.", "ots.", "mar.", "api.", "mai.", "eka.", "uzt.", "abu.", "ira.", "urr.", "aza.", "abe."}, + monthsNarrow: []string{"", "U", "O", "M", "A", "M", "E", "U", "A", "I", "U", "A", "A"}, + monthsWide: []string{"", "urtarrilak", "otsailak", "martxoak", "apirilak", "maiatzak", "ekainak", "uztailak", "abuztuak", "irailak", "urriak", "azaroak", "abenduak"}, + daysAbbreviated: []string{"ig.", "al.", "ar.", "az.", "og.", "or.", "lr."}, + daysNarrow: []string{"I", "A", "A", "A", "O", "O", "L"}, + daysShort: []string{"ig.", "al.", "ar.", "az.", "og.", "or.", "lr."}, + daysWide: []string{"igandea", "astelehena", "asteartea", "asteazkena", "osteguna", "ostirala", "larunbata"}, + periodsAbbreviated: []string{"AM", "PM"}, + periodsNarrow: []string{"g", "a"}, + periodsWide: []string{"AM", "PM"}, + erasAbbreviated: []string{"K.a.", "K.o."}, + erasNarrow: []string{"", ""}, + erasWide: []string{"K.a.", "K.o."}, + timezones: map[string]string{"AKST": "Alaskako ordu estandarra", "WARST": "Argentina mendebaldeko udako ordua", "ACST": "Australia erdialdeko ordu estandarra", "HAST": "Hawaii-Aleutiar uharteetako ordu estandarra", "WAST": "Afrika mendebaldeko udako ordua", "GYT": "Guyanako ordua", "SRT": "Surinamgo ordua", "LHST": "Lord Howeko ordu estandarra", "ECT": "Ekuadorreko ordua", "HKT": "Hong Kongo ordu estandarra", "TMST": "Turkmenistango udako ordua", "WITA": "Indonesia erdialdeko ordua", "SGT": "Singapurreko ordu estandarra", "AWDT": "Australia mendebaldeko udako ordua", "COST": "Kolonbiako udako ordua", "MESZ": "Europa erdialdeko udako ordua", "VET": "Venezuelako ordua", "AKDT": "Alaskako udako ordua", "∅∅∅": "Amazoniako udako ordua", "HNT": "Ternuako ordu estandarra", "UYT": "Uruguayko ordu estandarra", "AEDT": "Australia ekialdeko udako ordua", "BT": "Bhutango ordua", "ACDT": "Australia erdialdeko udako ordua", "WESZ": "Europa mendebaldeko udako ordua", "ART": "Argentinako ordu estandarra", "WAT": "Afrika mendebaldeko ordu estandarra", "ADT": "Atlantikoko udako ordua", "MEZ": "Europa erdialdeko ordu estandarra", "WIT": "Indonesia ekialdeko ordua", "HADT": "Hawaii-Aleutiar uharteetako udako ordua", "HKST": "Hong Kongo udako ordua", "WEZ": "Europa mendebaldeko ordu estandarra", "CLT": "Txileko ordu estandarra", "NZST": "Zeelanda Berriko ordu estandarra", "CHAST": "Chathamgo ordu estandarra", "COT": "Kolonbiako ordu estandarra", "WART": "Argentina mendebaldeko ordu estandarra", "ChST": "Chamorroko ordu estandarra", "CST": "Ipar Amerikako erdialdeko ordu estandarra", "AWST": "Australia mendebaldeko ordu estandarra", "CAT": "Afrika erdialdeko ordua", "OEZ": "Europa ekialdeko ordu estandarra", "OESZ": "Europa ekialdeko udako ordua", "GMT": "Greenwich meridianoko ordua", "ARST": "Argentinako udako ordua", "SAST": "Afrika hegoaldeko ordua", "MYT": "Malaysiako ordua", "JST": "Japoniako ordu estandarra", "EST": "Ipar Amerikako ekialdeko ordu estandarra", "AEST": "Australia ekialdeko ordu estandarra", "TMT": "Turkmenistango ordu estandarra", "ACWST": "Australia erdi-mendebaldeko ordu estandarra", "ACWDT": "Australia erdi-mendebaldeko udako ordua", "EDT": "Ipar Amerikako ekialdeko udako ordua", "BOT": "Boliviako ordua", "IST": "Indiako ordua", "HAT": "Ternuako udako ordua", "CLST": "Txileko udako ordua", "LHDT": "Lord Howeko udako ordua", "CDT": "Ipar Amerikako erdialdeko udako ordua", "PDT": "Ipar Amerikako Pazifikoko udako ordua", "WIB": "Indonesia mendebaldeko ordua", "AST": "Atlantikoko ordu estandarra", "CHADT": "Chathamgo udako ordua", "MST": "MST", "UYST": "Uruguayko udako ordua", "GFT": "Guyana Frantseseko ordua", "EAT": "Afrika ekialdeko ordua", "MDT": "MDT", "PST": "Ipar Amerikako Pazifikoko ordu estandarra", "NZDT": "Zeelanda Berriko udako ordua", "JDT": "Japoniako udako ordua"}, } } @@ -122,80 +122,77 @@ func (eu *eu) RangePluralRule(num1 float64, v1 uint64, num2 float64, v2 uint64) } // MonthAbbreviated returns the locales abbreviated month given the 'month' provided -func (eu *eu) MonthAbbreviated(month time.Month) []byte { +func (eu *eu) MonthAbbreviated(month time.Month) string { return eu.monthsAbbreviated[month] } // MonthsAbbreviated returns the locales abbreviated months -func (eu *eu) MonthsAbbreviated() [][]byte { +func (eu *eu) MonthsAbbreviated() []string { return eu.monthsAbbreviated[1:] } // MonthNarrow returns the locales narrow month given the 'month' provided -func (eu *eu) MonthNarrow(month time.Month) []byte { +func (eu *eu) MonthNarrow(month time.Month) string { return eu.monthsNarrow[month] } // MonthsNarrow returns the locales narrow months -func (eu *eu) MonthsNarrow() [][]byte { +func (eu *eu) MonthsNarrow() []string { return eu.monthsNarrow[1:] } // MonthWide returns the locales wide month given the 'month' provided -func (eu *eu) MonthWide(month time.Month) []byte { +func (eu *eu) MonthWide(month time.Month) string { return eu.monthsWide[month] } // MonthsWide returns the locales wide months -func (eu *eu) MonthsWide() [][]byte { +func (eu *eu) MonthsWide() []string { return eu.monthsWide[1:] } // WeekdayAbbreviated returns the locales abbreviated weekday given the 'weekday' provided -func (eu *eu) WeekdayAbbreviated(weekday time.Weekday) []byte { +func (eu *eu) WeekdayAbbreviated(weekday time.Weekday) string { return eu.daysAbbreviated[weekday] } // WeekdaysAbbreviated returns the locales abbreviated weekdays -func (eu *eu) WeekdaysAbbreviated() [][]byte { +func (eu *eu) WeekdaysAbbreviated() []string { return eu.daysAbbreviated } // WeekdayNarrow returns the locales narrow weekday given the 'weekday' provided -func (eu *eu) WeekdayNarrow(weekday time.Weekday) []byte { +func (eu *eu) WeekdayNarrow(weekday time.Weekday) string { return eu.daysNarrow[weekday] } // WeekdaysNarrow returns the locales narrow weekdays -func (eu *eu) WeekdaysNarrow() [][]byte { +func (eu *eu) WeekdaysNarrow() []string { return eu.daysNarrow } // WeekdayShort returns the locales short weekday given the 'weekday' provided -func (eu *eu) WeekdayShort(weekday time.Weekday) []byte { +func (eu *eu) WeekdayShort(weekday time.Weekday) string { return eu.daysShort[weekday] } // WeekdaysShort returns the locales short weekdays -func (eu *eu) WeekdaysShort() [][]byte { +func (eu *eu) WeekdaysShort() []string { return eu.daysShort } // WeekdayWide returns the locales wide weekday given the 'weekday' provided -func (eu *eu) WeekdayWide(weekday time.Weekday) []byte { +func (eu *eu) WeekdayWide(weekday time.Weekday) string { return eu.daysWide[weekday] } // WeekdaysWide returns the locales wide weekdays -func (eu *eu) WeekdaysWide() [][]byte { +func (eu *eu) WeekdaysWide() []string { return eu.daysWide } // FmtNumber returns 'num' with digits/precision of 'v' for 'eu' 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 (eu *eu) FmtNumber(num float64, v uint64) []byte { - +func (eu *eu) FmtNumber(num float64, v uint64) (results string) { s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64) l := len(s) + len(eu.decimal) + len(eu.group)*len(s[:len(s)-int(v)-1])/3 count := 0 @@ -231,15 +228,13 @@ func (eu *eu) FmtNumber(num float64, v uint64) []byte { b[i], b[j] = b[j], b[i] } - return b + results = string(b) + return } // FmtPercent returns 'num' with digits/precision of 'v' for 'eu' 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 (eu *eu) FmtPercent(num float64, v uint64) []byte { - +func (eu *eu) FmtPercent(num float64, v uint64) (results string) { s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64) l := len(s) + len(eu.decimal) + len(eu.group)*len(s[:len(s)-int(v)-1])/3 count := 0 @@ -282,13 +277,12 @@ func (eu *eu) FmtPercent(num float64, v uint64) []byte { b[i], b[j] = b[j], b[i] } - return b + results = string(b) + return } // FmtCurrency returns the currency representation of 'num' with digits/precision of 'v' for 'eu' -// returned as a []byte just in case the caller wishes to add more and can help -// avoid allocations; otherwise just cast as string. -func (eu *eu) FmtCurrency(num float64, v uint64, currency currency.Type) []byte { +func (eu *eu) FmtCurrency(num float64, v uint64, currency currency.Type) (results string) { s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64) symbol := eu.currencies[currency] @@ -341,13 +335,13 @@ func (eu *eu) FmtCurrency(num float64, v uint64, currency currency.Type) []byte b = append(b, symbol...) - return b + results = string(b) + return } // FmtAccounting returns the currency representation of 'num' with digits/precision of 'v' for 'eu' -// 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 (eu *eu) FmtAccounting(num float64, v uint64, currency currency.Type) []byte { +// in accounting notation. +func (eu *eu) FmtAccounting(num float64, v uint64, currency currency.Type) (results string) { s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64) symbol := eu.currencies[currency] @@ -378,9 +372,7 @@ func (eu *eu) FmtAccounting(num float64, v uint64, currency currency.Type) []byt if num < 0 { - for j := len(eu.currencyNegativePrefix) - 1; j >= 0; j-- { - b = append(b, eu.currencyNegativePrefix[j]) - } + b = append(b, eu.currencyNegativePrefix[0]) } @@ -409,13 +401,12 @@ func (eu *eu) FmtAccounting(num float64, v uint64, currency currency.Type) []byt b = append(b, symbol...) } - return b + results = string(b) + return } // FmtDateShort returns the short date representation of 't' for 'eu' -// returned as a []byte just in case the caller wishes to add more and can help -// avoid allocations; otherwise just cast as string. -func (eu *eu) FmtDateShort(t time.Time) []byte { +func (eu *eu) FmtDateShort(t time.Time) string { b := make([]byte, 0, 32) @@ -436,13 +427,11 @@ func (eu *eu) FmtDateShort(t time.Time) []byte { b = strconv.AppendInt(b, int64(t.Day()), 10) - return b + return string(b) } // FmtDateMedium returns the medium date representation of 't' for 'eu' -// returned as a []byte just in case the caller wishes to add more and can help -// avoid allocations; otherwise just cast as string. -func (eu *eu) FmtDateMedium(t time.Time) []byte { +func (eu *eu) FmtDateMedium(t time.Time) string { b := make([]byte, 0, 32) @@ -452,13 +441,11 @@ func (eu *eu) FmtDateMedium(t time.Time) []byte { b = append(b, []byte{0x20}...) b = strconv.AppendInt(b, int64(t.Day()), 10) - return b + return string(b) } // FmtDateLong returns the long date representation of 't' for 'eu' -// returned as a []byte just in case the caller wishes to add more and can help -// avoid allocations; otherwise just cast as string. -func (eu *eu) FmtDateLong(t time.Time) []byte { +func (eu *eu) FmtDateLong(t time.Time) string { b := make([]byte, 0, 32) @@ -470,13 +457,11 @@ func (eu *eu) FmtDateLong(t time.Time) []byte { b = append(b, []byte{0x20}...) b = strconv.AppendInt(b, int64(t.Day()), 10) - return b + return string(b) } // FmtDateFull returns the full date representation of 't' for 'eu' -// returned as a []byte just in case the caller wishes to add more and can help -// avoid allocations; otherwise just cast as string. -func (eu *eu) FmtDateFull(t time.Time) []byte { +func (eu *eu) FmtDateFull(t time.Time) string { b := make([]byte, 0, 32) @@ -490,13 +475,11 @@ func (eu *eu) FmtDateFull(t time.Time) []byte { b = append(b, []byte{0x2c, 0x20}...) b = append(b, eu.daysWide[t.Weekday()]...) - return b + return string(b) } // FmtTimeShort returns the short time representation of 't' for 'eu' -// returned as a []byte just in case the caller wishes to add more and can help -// avoid allocations; otherwise just cast as string. -func (eu *eu) FmtTimeShort(t time.Time) []byte { +func (eu *eu) FmtTimeShort(t time.Time) string { b := make([]byte, 0, 32) @@ -513,13 +496,11 @@ func (eu *eu) FmtTimeShort(t time.Time) []byte { b = strconv.AppendInt(b, int64(t.Minute()), 10) - return b + return string(b) } // FmtTimeMedium returns the medium time representation of 't' for 'eu' -// returned as a []byte just in case the caller wishes to add more and can help -// avoid allocations; otherwise just cast as string. -func (eu *eu) FmtTimeMedium(t time.Time) []byte { +func (eu *eu) FmtTimeMedium(t time.Time) string { b := make([]byte, 0, 32) @@ -543,13 +524,11 @@ func (eu *eu) FmtTimeMedium(t time.Time) []byte { b = strconv.AppendInt(b, int64(t.Second()), 10) - return b + return string(b) } // FmtTimeLong returns the long time representation of 't' for 'eu' -// returned as a []byte just in case the caller wishes to add more and can help -// avoid allocations; otherwise just cast as string. -func (eu *eu) FmtTimeLong(t time.Time) []byte { +func (eu *eu) FmtTimeLong(t time.Time) string { b := make([]byte, 0, 32) @@ -579,13 +558,11 @@ func (eu *eu) FmtTimeLong(t time.Time) []byte { b = append(b, []byte{0x29}...) - return b + return string(b) } // FmtTimeFull returns the full time representation of 't' for 'eu' -// returned as a []byte just in case the caller wishes to add more and can help -// avoid allocations; otherwise just cast as string. -func (eu *eu) FmtTimeFull(t time.Time) []byte { +func (eu *eu) FmtTimeFull(t time.Time) string { b := make([]byte, 0, 32) @@ -620,5 +597,5 @@ func (eu *eu) FmtTimeFull(t time.Time) []byte { b = append(b, []byte{0x29}...) - return b + return string(b) } |