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
path: root/mt
diff options
context:
space:
mode:
authorDean Karn <Dean.Karn@metricaid.com>2016-09-11 23:11:22 +0300
committerDean Karn <Dean.Karn@metricaid.com>2016-09-11 23:11:22 +0300
commitc83f384137b60783b605590315e9791a34829443 (patch)
treed549ca74e6fee6444c3ed7fbbdcddc89d5213022 /mt
parentdf9253ed33dcf0c51890a603b51e839f5df58ffc (diff)
some low level optimizations
Diffstat (limited to 'mt')
-rw-r--r--mt/mt.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/mt/mt.go b/mt/mt.go
index 38052c94..8e873189 100644
--- a/mt/mt.go
+++ b/mt/mt.go
@@ -65,7 +65,7 @@ func New() locales.Translator {
erasAbbreviated: []string{"QK", "WK"},
erasNarrow: []string{"", ""},
erasWide: []string{"Qabel Kristu", "Wara Kristu"},
- timezones: map[string]string{"SRT": "SRT", "GYT": "GYT", "MST": "MST", "SGT": "SGT", "AEST": "AEST", "EDT": "EDT", "GMT": "GMT", "ART": "ART", "WITA": "WITA", "WART": "WART", "∅∅∅": "∅∅∅", "EAT": "EAT", "HNT": "HNT", "COST": "COST", "CDT": "CDT", "MESZ": "Ħin Ċentrali Ewropew tas-Sajf", "OEZ": "OEZ", "UYST": "UYST", "HAT": "HAT", "JDT": "JDT", "ChST": "ChST", "CLST": "CLST", "BOT": "BOT", "PST": "PST", "WAT": "WAT", "WAST": "WAST", "AST": "AST", "COT": "COT", "CAT": "CAT", "HKST": "HKST", "CHADT": "CHADT", "WIT": "WIT", "WIB": "WIB", "IST": "IST", "VET": "VET", "CLT": "CLT", "AKST": "AKST", "ACWDT": "ACWDT", "JST": "JST", "WEZ": "WEZ", "CHAST": "CHAST", "SAST": "SAST", "UYT": "UYT", "ACWST": "ACWST", "LHST": "LHST", "ARST": "ARST", "AEDT": "AEDT", "AKDT": "AKDT", "OESZ": "OESZ", "LHDT": "LHDT", "MYT": "MYT", "NZST": "NZST", "NZDT": "NZDT", "GFT": "GFT", "EST": "EST", "PDT": "PDT", "ADT": "ADT", "AWDT": "AWDT", "MEZ": "Ħin Ċentrali Ewropew Standard", "TMST": "TMST", "HAST": "HAST", "WARST": "WARST", "WESZ": "WESZ", "MDT": "MDT", "CST": "CST", "HKT": "HKT", "TMT": "TMT", "HADT": "HADT", "BT": "BT", "ECT": "ECT", "ACST": "ACST", "ACDT": "ACDT", "AWST": "AWST"},
+ timezones: map[string]string{"EAT": "EAT", "JDT": "JDT", "LHST": "LHST", "NZDT": "NZDT", "SGT": "SGT", "ACST": "ACST", "ECT": "ECT", "IST": "IST", "WIB": "WIB", "EDT": "EDT", "HKT": "HKT", "GYT": "GYT", "HKST": "HKST", "CHADT": "CHADT", "OESZ": "OESZ", "WART": "WART", "VET": "VET", "CDT": "CDT", "AWST": "AWST", "UYT": "UYT", "WAST": "WAST", "COT": "COT", "AKST": "AKST", "CAT": "CAT", "CLST": "CLST", "GFT": "GFT", "MYT": "MYT", "AWDT": "AWDT", "CHAST": "CHAST", "AEDT": "AEDT", "SRT": "SRT", "WAT": "WAT", "COST": "COST", "∅∅∅": "∅∅∅", "EST": "EST", "LHDT": "LHDT", "ACWDT": "ACWDT", "WEZ": "WEZ", "WIT": "WIT", "HNT": "HNT", "MESZ": "Ħin Ċentrali Ewropew tas-Sajf", "ACWST": "ACWST", "MST": "MST", "SAST": "SAST", "PDT": "PDT", "NZST": "NZST", "BT": "BT", "CLT": "CLT", "ARST": "ARST", "OEZ": "OEZ", "MEZ": "Ħin Ċentrali Ewropew Standard", "GMT": "GMT", "UYST": "UYST", "ACDT": "ACDT", "ART": "ART", "HAST": "HAST", "TMT": "TMT", "AEST": "AEST", "MDT": "MDT", "WARST": "WARST", "BOT": "BOT", "CST": "CST", "JST": "JST", "AKDT": "AKDT", "AST": "AST", "ADT": "ADT", "HAT": "HAT", "HADT": "HADT", "TMST": "TMST", "PST": "PST", "ChST": "ChST", "WESZ": "WESZ", "WITA": "WITA"},
}
}
@@ -190,7 +190,7 @@ func (mt *mt) WeekdaysWide() []string {
func (mt *mt) FmtNumber(num float64, v uint64) string {
s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
- l := len(s) + len(mt.decimal) + len(mt.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)
@@ -263,7 +263,7 @@ func (mt *mt) FmtCurrency(num float64, v uint64, currency currency.Type) string
s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
symbol := mt.currencies[currency]
- l := len(s) + len(mt.decimal) + len(mt.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)
@@ -321,7 +321,7 @@ func (mt *mt) FmtAccounting(num float64, v uint64, currency currency.Type) strin
s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
symbol := mt.currencies[currency]
- l := len(s) + len(mt.decimal) + len(mt.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)