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/sv
diff options
context:
space:
mode:
authorDean Karn <Dean.Karn@metricaid.com>2016-09-11 23:22:25 +0300
committerDean Karn <Dean.Karn@metricaid.com>2016-09-11 23:22:25 +0300
commita75cdd71617f0998215f56f506ec9aabead36101 (patch)
tree5e2057a519c8cd8060a923888895c6285f74532b /sv
parentc83f384137b60783b605590315e9791a34829443 (diff)
a few more low level optimizationsbytes-to-string
Diffstat (limited to 'sv')
-rw-r--r--sv/sv.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/sv/sv.go b/sv/sv.go
index 1fd48aef..57efac70 100644
--- a/sv/sv.go
+++ b/sv/sv.go
@@ -68,7 +68,7 @@ func New() locales.Translator {
erasAbbreviated: []string{"f.Kr.", "e.Kr."},
erasNarrow: []string{"f.Kr.", "e.Kr."},
erasWide: []string{"före Kristus", "efter Kristus"},
- timezones: map[string]string{"HKT": "Hongkong, normaltid", "EAT": "östafrikansk tid", "HAT": "Newfoundland, sommartid", "ADT": "nordamerikansk atlantsommartid", "∅∅∅": "azorisk sommartid", "MST": "Macaunormaltid", "ACWST": "västcentralaustralisk normaltid", "JST": "japansk normaltid", "GYT": "Guyanatid", "CHAST": "Chatham, normaltid", "MEZ": "centraleuropeisk normaltid", "MESZ": "centraleuropeisk sommartid", "GMT": "Greenwichtid", "UYT": "uruguayansk normaltid", "PST": "västnordamerikansk normaltid", "COT": "colombiansk normaltid", "HAST": "Honolulu, normaltid", "WAT": "västafrikansk normaltid", "LHST": "Lord Howe, normaltid", "AKDT": "Alaska, sommartid", "HKST": "Hongkong, sommartid", "TMST": "turkmensk sommartid", "OEZ": "östeuropeisk normaltid", "WART": "västargentinsk normaltid", "ECT": "ecuadoriansk tid", "CST": "centralnordamerikansk normaltid", "MDT": "Macausommartid", "BT": "bhutansk tid", "CHADT": "Chatham, sommartid", "SRT": "Surinamtid", "NZDT": "nyzeeländsk sommartid", "ARST": "östargentinsk sommartid", "EDT": "östnordamerikansk sommartid", "EST": "östnordamerikansk normaltid", "LHDT": "Lord Howe, sommartid", "CAT": "centralafrikansk tid", "WIT": "östindonesisk tid", "HNT": "Newfoundland, normaltid", "AST": "nordamerikansk atlantnormaltid", "WESZ": "västeuropeisk sommartid", "ACST": "centralaustralisk normaltid", "ART": "östargentinsk normaltid", "AWST": "västaustralisk normaltid", "AEDT": "östaustralisk sommartid", "NZST": "nyzeeländsk normaltid", "COST": "colombiansk sommartid", "AKST": "Alaska, normaltid", "WAST": "västafrikansk sommartid", "WEZ": "västeuropeisk normaltid", "IST": "indisk tid", "MYT": "malaysisk tid", "CLST": "chilensk sommartid", "ACWDT": "västcentralaustralisk sommartid", "TMT": "turkmensk normaltid", "BOT": "boliviansk tid", "PDT": "västnordamerikansk sommartid", "WITA": "centralindonesisk tid", "ChST": "Chamorrotid", "HADT": "Honolulu, sommartid", "OESZ": "östeuropeisk sommartid", "VET": "venezuelansk tid", "SAST": "sydafrikansk tid", "CLT": "chilensk normaltid", "ACDT": "centralaustralisk sommartid", "WIB": "västindonesisk tid", "WARST": "västargentinsk sommartid", "GFT": "Franska Guyanatid", "JDT": "japansk sommartid", "CDT": "centralnordamerikansk sommartid", "AEST": "östaustralisk normaltid", "UYST": "uruguayansk sommartid", "SGT": "Singaporetid", "AWDT": "västaustralisk sommartid"},
+ timezones: map[string]string{"HADT": "Honolulu, sommartid", "ACWDT": "västcentralaustralisk sommartid", "ChST": "Chamorrotid", "CAT": "centralafrikansk tid", "∅∅∅": "Amazonas, sommartid", "HKST": "Hongkong, sommartid", "HNT": "Newfoundland, normaltid", "WART": "västargentinsk normaltid", "WIB": "västindonesisk tid", "AWDT": "västaustralisk sommartid", "NZDT": "nyzeeländsk sommartid", "GMT": "Greenwichtid", "TMT": "turkmensk normaltid", "ART": "östargentinsk normaltid", "MYT": "malaysisk tid", "SGT": "Singaporetid", "OEZ": "östeuropeisk normaltid", "GFT": "Franska Guyanatid", "UYST": "uruguayansk sommartid", "CHADT": "Chatham, sommartid", "WEZ": "västeuropeisk normaltid", "BOT": "boliviansk tid", "ACWST": "västcentralaustralisk normaltid", "WAST": "västafrikansk sommartid", "ACDT": "centralaustralisk sommartid", "AKDT": "Alaska, sommartid", "CST": "centralnordamerikansk normaltid", "PDT": "västnordamerikansk sommartid", "VET": "venezuelansk tid", "ARST": "östargentinsk sommartid", "PST": "västnordamerikansk normaltid", "GYT": "Guyanatid", "CDT": "centralnordamerikansk sommartid", "COST": "colombiansk sommartid", "MST": "Macaunormaltid", "MDT": "Macausommartid", "ACST": "centralaustralisk normaltid", "WARST": "västargentinsk sommartid", "HKT": "Hongkong, normaltid", "MEZ": "centraleuropeisk normaltid", "EDT": "östnordamerikansk sommartid", "SAST": "sydafrikansk tid", "NZST": "nyzeeländsk normaltid", "AEST": "östaustralisk normaltid", "AST": "nordamerikansk atlantnormaltid", "CHAST": "Chatham, normaltid", "IST": "indisk tid", "TMST": "turkmensk sommartid", "EAT": "östafrikansk tid", "MESZ": "centraleuropeisk sommartid", "EST": "östnordamerikansk normaltid", "COT": "colombiansk normaltid", "HAST": "Honolulu, normaltid", "AKST": "Alaska, normaltid", "LHST": "Lord Howe, normaltid", "CLST": "chilensk sommartid", "WAT": "västafrikansk normaltid", "HAT": "Newfoundland, sommartid", "JST": "japansk normaltid", "LHDT": "Lord Howe, sommartid", "AEDT": "östaustralisk sommartid", "JDT": "japansk sommartid", "CLT": "chilensk normaltid", "BT": "bhutansk tid", "SRT": "Surinamtid", "AWST": "västaustralisk normaltid", "ADT": "nordamerikansk atlantsommartid", "WITA": "centralindonesisk tid", "WIT": "östindonesisk tid", "OESZ": "östeuropeisk sommartid", "UYT": "uruguayansk normaltid", "WESZ": "västeuropeisk sommartid", "ECT": "ecuadoriansk tid"},
}
}
@@ -109,8 +109,8 @@ func (sv *sv) CardinalPluralRule(num float64, v uint64) locales.PluralRule {
func (sv *sv) OrdinalPluralRule(num float64, v uint64) locales.PluralRule {
n := math.Abs(num)
- nMod10 := math.Mod(n, 10)
nMod100 := math.Mod(n, 100)
+ nMod10 := math.Mod(n, 10)
if (nMod10 == 1 || nMod10 == 2) && (nMod100 != 11 && nMod100 != 12) {
return locales.PluralRuleOne
@@ -241,7 +241,7 @@ func (sv *sv) FmtNumber(num float64, v uint64) string {
// NOTE: 'num' passed into FmtPercent is assumed to be in percent already
func (sv *sv) FmtPercent(num float64, v uint64) string {
s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
- l := len(s) + len(sv.decimal)
+ l := len(s) + 8
b := make([]byte, 0, l)
for i := len(s) - 1; i >= 0; i-- {