8 "github.com/go-playground/locales"
9 "github.com/go-playground/locales/currency"
12 type pa_Guru_IN struct {
14 pluralsCardinal []locales.PluralRule
15 pluralsOrdinal []locales.PluralRule
16 pluralsRange []locales.PluralRule
24 currencies []string // idx = enum of currency code
25 monthsAbbreviated []string
28 daysAbbreviated []string
32 periodsAbbreviated []string
33 periodsNarrow []string
36 erasAbbreviated []string
39 timezones map[string]string
42 // New returns a new instance of translator for the 'pa_Guru_IN' locale
43 func New() locales.Translator {
46 pluralsCardinal: []locales.PluralRule{2, 6},
47 pluralsOrdinal: []locales.PluralRule{6},
48 pluralsRange: []locales.PluralRule{2, 6},
56 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", "BYN", "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", "USD", "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"},
57 monthsAbbreviated: []string{"", "ਜਨ", "ਫ਼ਰ", "ਮਾਰਚ", "ਅਪ੍ਰੈ", "ਮਈ", "ਜੂਨ", "ਜੁਲਾ", "ਅਗ", "ਸਤੰ", "ਅਕਤੂ", "ਨਵੰ", "ਦਸੰ"},
58 monthsNarrow: []string{"", "ਜ", "ਫ਼", "ਮਾ", "ਅ", "ਮ", "ਜੂ", "ਜੁ", "ਅ", "ਸ", "ਅ", "ਨ", "ਦ"},
59 monthsWide: []string{"", "ਜਨਵਰੀ", "ਫ਼ਰਵਰੀ", "ਮਾਰਚ", "ਅਪ੍ਰੈਲ", "ਮਈ", "ਜੂਨ", "ਜੁਲਾਈ", "ਅਗਸਤ", "ਸਤੰਬਰ", "ਅਕਤੂਬਰ", "ਨਵੰਬਰ", "ਦਸੰਬਰ"},
60 daysAbbreviated: []string{"ਐਤ", "ਸੋਮ", "ਮੰਗਲ", "ਬੁੱਧ", "ਵੀਰ", "ਸ਼ੁੱਕਰ", "ਸ਼ਨਿੱਚਰ"},
61 daysNarrow: []string{"ਐ", "ਸੋ", "ਮੰ", "ਬੁੱ", "ਵੀ", "ਸ਼ੁੱ", "ਸ਼"},
62 daysShort: []string{"ਐਤ", "ਸੋਮ", "ਮੰਗ", "ਬੁੱਧ", "ਵੀਰ", "ਸ਼ੁੱਕ", "ਸ਼ਨਿੱ"},
63 daysWide: []string{"ਐਤਵਾਰ", "ਸੋਮਵਾਰ", "ਮੰਗਲਵਾਰ", "ਬੁੱਧਵਾਰ", "ਵੀਰਵਾਰ", "ਸ਼ੁੱਕਰਵਾਰ", "ਸ਼ਨਿੱਚਰਵਾਰ"},
64 periodsAbbreviated: []string{"ਪੂ.ਦੁ.", "ਬਾ.ਦੁ."},
65 periodsNarrow: []string{"ਸ.", "ਸ਼."},
66 periodsWide: []string{"ਪੂ.ਦੁ.", "ਬਾ.ਦੁ."},
67 erasAbbreviated: []string{"ਈ. ਪੂ.", "ਸੰਨ"},
68 erasNarrow: []string{"ਈ.ਪੂ.", "ਸੰਨ"},
69 erasWide: []string{"ਈਸਵੀ ਪੂਰਵ", "ਈਸਵੀ ਸੰਨ"},
70 timezones: map[string]string{"EDT": "ਉੱਤਰੀ ਅਮਰੀਕੀ ਪੂਰਬੀ ਪ੍ਰਕਾਸ਼ ਵੇਲਾ", "MYT": "ਮਲੇਸ਼ੀਆ ਵੇਲਾ", "AEDT": "ਆਸਟ੍ਰੇਲੀਆਈ ਪੂਰਬੀ ਪ੍ਰਕਾਸ਼ ਵੇਲਾ", "OEZ": "ਪੂਰਬੀ ਯੂਰਪੀ ਮਿਆਰੀ ਵੇਲਾ", "WART": "ਪੱਛਮੀ ਅਰਜਨਟੀਨਾ ਮਿਆਰੀ ਵੇਲਾ", "AEST": "ਆਸਟ੍ਰੇਲੀਆਈ ਪੂਰਬੀ ਮਿਆਰੀ ਵੇਲਾ", "HEOG": "ਪੱਛਮੀ ਗ੍ਰੀਨਲੈਂਡ ਗਰਮੀਆਂ ਦਾ ਵੇਲਾ", "HNEG": "ਪੂਰਬੀ ਗ੍ਰੀਨਲੈਂਡ ਮਿਆਰੀ ਵੇਲਾ", "COST": "ਕੋਲੰਬੀਆ ਗਰਮੀਆਂ ਦਾ ਵੇਲਾ", "AWDT": "ਆਸਟ੍ਰੇਲੀਆਈ ਪੱਛਮੀ ਪ੍ਰਕਾਸ਼ ਵੇਲਾ", "UYST": "ਉਰੂਗਵੇ ਗਰਮੀਆਂ ਦਾ ਵੇਲਾ", "CLT": "ਚਿਲੀ ਮਿਆਰੀ ਵੇਲਾ", "AKST": "ਅਲਾਸਕਾ ਮਿਆਰੀ ਵੇਲਾ", "CHAST": "ਚੈਥਮ ਮਿਆਰੀ ਵੇਲਾ", "WAT": "ਪੱਛਮੀ ਅਫਰੀਕਾ ਮਿਆਰੀ ਵੇਲਾ", "UYT": "ਉਰੂਗਵੇ ਮਿਆਰੀ ਵੇਲਾ", "HNNOMX": "ਉੱਤਰ ਪੱਛਮੀ ਮੈਕਸੀਕੋ ਮਿਆਰੀ ਵੇਲਾ", "HENOMX": "ਉੱਤਰ ਪੱਛਮੀ ਮੈਕਸੀਕੋ ਪ੍ਰਕਾਸ਼ ਵੇਲਾ", "OESZ": "ਪੂਰਬੀ ਯੂਰਪੀ ਗਰਮੀਆਂ ਦਾ ਵੇਲਾ", "ARST": "ਅਰਜਨਟੀਨਾ ਗਰਮੀਆਂ ਦਾ ਵੇਲਾ", "HEEG": "ਪੂਰਬੀ ਗ੍ਰੀਨਲੈਂਡ ਗਰਮੀਆਂ ਦਾ ਵੇਲਾ", "HECU": "ਕਿਊਬਾ ਪ੍ਰਕਾਸ਼ ਵੇਲਾ", "MST": "ਮਕਾਉ ਮਿਆਰੀ ਸਮਾਂ", "HNT": "ਨਿਊਫਾਉਂਡਲੈਂਡ ਮਿਆਰੀ ਵੇਲਾ", "ART": "ਅਰਜਨਟੀਨਾ ਮਿਆਰੀ ਵੇਲਾ", "WAST": "ਪੱਛਮੀ ਅਫਰੀਕਾ ਗਰਮੀਆਂ ਦਾ ਵੇਲਾ", "∅∅∅": "ਪੇਰੂ ਗਰਮੀਆਂ ਦਾ ਵੇਲਾ", "WIB": "ਪੱਛਮੀ ਇੰਡੋਨੇਸ਼ੀਆ ਵੇਲਾ", "MDT": "ਮਕਾਉ ਗਰਮੀ-ਰੁੱਤ ਸਮਾਂ", "JST": "ਜਪਾਨ ਮਿਆਰੀ ਵੇਲਾ", "ACST": "ਆਸਟ੍ਰੇਲੀਆਈ ਕੇਂਦਰੀ ਮਿਆਰੀ ਵੇਲਾ", "PST": "ਉੱਤਰੀ ਅਮਰੀਕੀ ਪੈਸਿਫਿਕ ਮਿਆਰੀ ਵੇਲਾ", "CDT": "ਉੱਤਰੀ ਅਮਰੀਕੀ ਕੇਂਦਰੀ ਪ੍ਰਕਾਸ਼ ਵੇਲਾ", "WARST": "ਪੱਛਮੀ ਅਰਜਨਟੀਨਾ ਗਰਮੀਆਂ ਦਾ ਵੇਲਾ", "VET": "ਵੈਨੇਜ਼ੂਏਲਾ ਵੇਲਾ", "AKDT": "ਅਲਾਸਕਾ ਪ੍ਰਕਾਸ਼ ਵੇਲਾ", "HNPMX": "ਮੈਕਸੀਕਨ ਪੈਸਿਫਿਕ ਮਿਆਰੀ ਵੇਲਾ", "PDT": "ਉੱਤਰੀ ਅਮਰੀਕੀ ਪੈਸਿਫਿਕ ਪ੍ਰਕਾਸ਼ ਵੇਲਾ", "WIT": "ਪੂਰਬੀ ਇੰਡੋਨੇਸ਼ੀਆ ਵੇਲਾ", "HAST": "ਹਵਾਈ-ਅਲੇਯੂਸ਼ਿਅਨ ਮਿਆਰੀ ਵੇਲਾ", "NZDT": "ਨਿਊਜ਼ੀਲੈਂਡ ਪ੍ਰਕਾਸ਼ ਵੇਲਾ", "TMT": "ਤੁਰਕਮੇਨਿਸਤਾਨ ਮਿਆਰੀ ਵੇਲਾ", "TMST": "ਤੁਰਕਮੇਨਿਸਤਾਨ ਗਰਮੀਆਂ ਦਾ ਵੇਲਾ", "COT": "ਕੋਲੰਬੀਆ ਮਿਆਰੀ ਵੇਲਾ", "SRT": "ਸੂਰੀਨਾਮ ਵੇਲਾ", "ACWST": "ਆਸਟ੍ਰੇਲੀਆਈ ਕੇਂਦਰੀ ਪੱਛਮੀ ਮਿਆਰੀ ਵੇਲਾ", "ECT": "ਇਕਵੇਡੋਰ ਵੇਲਾ", "LHDT": "ਲੌਰਡ ਹੋਵੇ ਪ੍ਰਕਾਸ਼ ਵੇਲਾ", "WESZ": "ਪੱਛਮੀ ਯੂਰਪੀ ਗਰਮੀਆਂ ਦਾ ਵੇਲਾ", "ACWDT": "ਆਸਟ੍ਰੇਲੀਆਈ ਕੇਂਦਰੀ ਪੱਛਮੀ ਪ੍ਰਕਾਸ਼ ਵੇਲਾ", "MESZ": "ਮੱਧ ਯੂਰਪੀ ਗਰਮੀਆਂ ਦਾ ਵੇਲਾ", "IST": "ਭਾਰਤੀ ਮਿਆਰੀ ਵੇਲਾ", "SAST": "ਦੱਖਣੀ ਅਫ਼ਰੀਕਾ ਮਿਆਰੀ ਵੇਲਾ", "HKT": "ਹਾਂਗ ਕਾਂਗ ਮਿਆਰੀ ਵੇਲਾ", "SGT": "ਸਿੰਗਾਪੁਰ ਮਿਆਰੀ ਵੇਲਾ", "BOT": "ਬੋਲੀਵੀਆ ਵੇਲਾ", "JDT": "ਜਪਾਨ ਪ੍ਰਕਾਸ਼ ਵੇਲਾ", "CST": "ਉੱਤਰੀ ਅਮਰੀਕੀ ਕੇਂਦਰੀ ਮਿਆਰੀ ਵੇਲਾ", "EAT": "ਪੂਰਬੀ ਅਫਰੀਕਾ ਵੇਲਾ", "HKST": "ਹਾਂਗ ਕਾਂਗ ਗਰਮੀਆਂ ਦਾ ਵੇਲਾ", "ACDT": "ਆਸਟ੍ਰੇਲੀਆਈ ਕੇਂਦਰੀ ਪ੍ਰਕਾਸ਼ ਵੇਲਾ", "GMT": "ਗ੍ਰੀਨਵਿਚ ਮੀਨ ਵੇਲਾ", "HEPM": "ਸੈਂਟ ਪੀਅਰੇ ਅਤੇ ਮਿਕੇਲਨ ਪ੍ਰਕਾਸ਼ ਵੇਲਾ", "WITA": "ਮੱਧ ਇੰਡੋਨੇਸ਼ੀਆਈ ਵੇਲਾ", "LHST": "ਲੌਰਡ ਹੋਵੇ ਮਿਆਰੀ ਵੇਲਾ", "ADT": "ਅਟਲਾਂਟਿਕ ਪ੍ਰਕਾਸ਼ ਵੇਲਾ", "CAT": "ਕੇਂਦਰੀ ਅਫਰੀਕਾ ਵੇਲਾ", "CHADT": "ਚੈਥਮ ਪ੍ਰਕਾਸ਼ ਵੇਲਾ", "MEZ": "ਮੱਧ ਯੂਰਪੀ ਮਿਆਰੀ ਵੇਲਾ", "AWST": "ਆਸਟ੍ਰੇਲੀਆਈ ਪੱਛਮੀ ਮਿਆਰੀ ਵੇਲਾ", "CLST": "ਚਿਲੀ ਗਰਮੀਆਂ ਦਾ ਵੇਲਾ", "WEZ": "ਪੱਛਮੀ ਯੂਰਪੀ ਮਿਆਰੀ ਵੇਲਾ", "HEPMX": "ਮੈਕਸੀਕਨ ਪੈਸਿਫਿਕ ਪ੍ਰਕਾਸ਼ ਵੇਲਾ", "HNPM": "ਸੈਂਟ ਪੀਅਰੇ ਅਤੇ ਮਿਕੇਲਨ ਮਿਆਰੀ ਵੇਲਾ", "NZST": "ਨਿਊਜ਼ੀਲੈਂਡ ਮਿਆਰੀ ਵੇਲਾ", "HAT": "ਨਿਊਫਾਉਂਡਲੈਂਡ ਪ੍ਰਕਾਸ਼ ਵੇਲਾ", "GYT": "ਗੁਯਾਨਾ ਵੇਲਾ", "ChST": "ਚਾਮੋਰੋ ਮਿਆਰੀ ਵੇਲਾ", "BT": "ਭੂਟਾਨ ਵੇਲਾ", "AST": "ਅਟਲਾਂਟਿਕ ਮਿਆਰੀ ਵੇਲਾ", "HNOG": "ਪੱਛਮੀ ਗ੍ਰੀਨਲੈਂਡ ਮਿਆਰੀ ਵੇਲਾ", "GFT": "ਫ੍ਰੈਂਚ ਗੁਏਨਾ ਵੇਲਾ", "EST": "ਉੱਤਰੀ ਅਮਰੀਕੀ ਪੂਰਬੀ ਮਿਆਰੀ ਵੇਲਾ", "HNCU": "ਕਿਊਬਾ ਮਿਆਰੀ ਵੇਲਾ", "HADT": "ਹਵਾਈ-ਅਲੇਯੂਸ਼ਿਅਨ ਪ੍ਰਕਾਸ਼ ਵੇਲਾ"},
74 // Locale returns the current translators string locale
75 func (pa *pa_Guru_IN) Locale() string {
79 // PluralsCardinal returns the list of cardinal plural rules associated with 'pa_Guru_IN'
80 func (pa *pa_Guru_IN) PluralsCardinal() []locales.PluralRule {
81 return pa.pluralsCardinal
84 // PluralsOrdinal returns the list of ordinal plural rules associated with 'pa_Guru_IN'
85 func (pa *pa_Guru_IN) PluralsOrdinal() []locales.PluralRule {
86 return pa.pluralsOrdinal
89 // PluralsRange returns the list of range plural rules associated with 'pa_Guru_IN'
90 func (pa *pa_Guru_IN) PluralsRange() []locales.PluralRule {
91 return pa.pluralsRange
94 // CardinalPluralRule returns the cardinal PluralRule given 'num' and digits/precision of 'v' for 'pa_Guru_IN'
95 func (pa *pa_Guru_IN) CardinalPluralRule(num float64, v uint64) locales.PluralRule {
100 return locales.PluralRuleOne
103 return locales.PluralRuleOther
106 // OrdinalPluralRule returns the ordinal PluralRule given 'num' and digits/precision of 'v' for 'pa_Guru_IN'
107 func (pa *pa_Guru_IN) OrdinalPluralRule(num float64, v uint64) locales.PluralRule {
108 return locales.PluralRuleOther
111 // RangePluralRule returns the ordinal PluralRule given 'num1', 'num2' and digits/precision of 'v1' and 'v2' for 'pa_Guru_IN'
112 func (pa *pa_Guru_IN) RangePluralRule(num1 float64, v1 uint64, num2 float64, v2 uint64) locales.PluralRule {
114 start := pa.CardinalPluralRule(num1, v1)
115 end := pa.CardinalPluralRule(num2, v2)
117 if start == locales.PluralRuleOne && end == locales.PluralRuleOne {
118 return locales.PluralRuleOne
119 } else if start == locales.PluralRuleOne && end == locales.PluralRuleOther {
120 return locales.PluralRuleOther
121 } else if start == locales.PluralRuleOther && end == locales.PluralRuleOne {
122 return locales.PluralRuleOne
125 return locales.PluralRuleOther
129 // MonthAbbreviated returns the locales abbreviated month given the 'month' provided
130 func (pa *pa_Guru_IN) MonthAbbreviated(month time.Month) string {
131 return pa.monthsAbbreviated[month]
134 // MonthsAbbreviated returns the locales abbreviated months
135 func (pa *pa_Guru_IN) MonthsAbbreviated() []string {
136 return pa.monthsAbbreviated[1:]
139 // MonthNarrow returns the locales narrow month given the 'month' provided
140 func (pa *pa_Guru_IN) MonthNarrow(month time.Month) string {
141 return pa.monthsNarrow[month]
144 // MonthsNarrow returns the locales narrow months
145 func (pa *pa_Guru_IN) MonthsNarrow() []string {
146 return pa.monthsNarrow[1:]
149 // MonthWide returns the locales wide month given the 'month' provided
150 func (pa *pa_Guru_IN) MonthWide(month time.Month) string {
151 return pa.monthsWide[month]
154 // MonthsWide returns the locales wide months
155 func (pa *pa_Guru_IN) MonthsWide() []string {
156 return pa.monthsWide[1:]
159 // WeekdayAbbreviated returns the locales abbreviated weekday given the 'weekday' provided
160 func (pa *pa_Guru_IN) WeekdayAbbreviated(weekday time.Weekday) string {
161 return pa.daysAbbreviated[weekday]
164 // WeekdaysAbbreviated returns the locales abbreviated weekdays
165 func (pa *pa_Guru_IN) WeekdaysAbbreviated() []string {
166 return pa.daysAbbreviated
169 // WeekdayNarrow returns the locales narrow weekday given the 'weekday' provided
170 func (pa *pa_Guru_IN) WeekdayNarrow(weekday time.Weekday) string {
171 return pa.daysNarrow[weekday]
174 // WeekdaysNarrow returns the locales narrow weekdays
175 func (pa *pa_Guru_IN) WeekdaysNarrow() []string {
179 // WeekdayShort returns the locales short weekday given the 'weekday' provided
180 func (pa *pa_Guru_IN) WeekdayShort(weekday time.Weekday) string {
181 return pa.daysShort[weekday]
184 // WeekdaysShort returns the locales short weekdays
185 func (pa *pa_Guru_IN) WeekdaysShort() []string {
189 // WeekdayWide returns the locales wide weekday given the 'weekday' provided
190 func (pa *pa_Guru_IN) WeekdayWide(weekday time.Weekday) string {
191 return pa.daysWide[weekday]
194 // WeekdaysWide returns the locales wide weekdays
195 func (pa *pa_Guru_IN) WeekdaysWide() []string {
199 // Decimal returns the decimal point of number
200 func (pa *pa_Guru_IN) Decimal() string {
204 // Group returns the group of number
205 func (pa *pa_Guru_IN) Group() string {
209 // Group returns the minus sign of number
210 func (pa *pa_Guru_IN) Minus() string {
214 // FmtNumber returns 'num' with digits/precision of 'v' for 'pa_Guru_IN' and handles both Whole and Real numbers based on 'v'
215 func (pa *pa_Guru_IN) FmtNumber(num float64, v uint64) string {
217 s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
218 l := len(s) + 2 + 1*len(s[:len(s)-int(v)-1])/3
224 b := make([]byte, 0, l)
226 for i := len(s) - 1; i >= 0; i-- {
229 b = append(b, pa.decimal[0])
236 if count == groupThreshold {
237 b = append(b, pa.group[0])
253 b = append(b, pa.minus[0])
257 for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
258 b[i], b[j] = b[j], b[i]
264 // FmtPercent returns 'num' with digits/precision of 'v' for 'pa_Guru_IN' and handles both Whole and Real numbers based on 'v'
265 // NOTE: 'num' passed into FmtPercent is assumed to be in percent already
266 func (pa *pa_Guru_IN) FmtPercent(num float64, v uint64) string {
267 s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
269 b := make([]byte, 0, l)
271 for i := len(s) - 1; i >= 0; i-- {
274 b = append(b, pa.decimal[0])
282 b = append(b, pa.minus[0])
286 for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
287 b[i], b[j] = b[j], b[i]
290 b = append(b, pa.percent...)
295 // FmtCurrency returns the currency representation of 'num' with digits/precision of 'v' for 'pa_Guru_IN'
296 func (pa *pa_Guru_IN) FmtCurrency(num float64, v uint64, currency currency.Type) string {
298 s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
299 symbol := pa.currencies[currency]
300 l := len(s) + len(symbol) + 2 + 1*len(s[:len(s)-int(v)-1])/3
306 b := make([]byte, 0, l)
308 for i := len(s) - 1; i >= 0; i-- {
311 b = append(b, pa.decimal[0])
318 if count == groupThreshold {
319 b = append(b, pa.group[0])
334 for j := len(symbol) - 1; j >= 0; j-- {
335 b = append(b, symbol[j])
339 b = append(b, pa.minus[0])
343 for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
344 b[i], b[j] = b[j], b[i]
350 b = append(b, pa.decimal...)
353 for i := 0; i < 2-int(v); i++ {
361 // FmtAccounting returns the currency representation of 'num' with digits/precision of 'v' for 'pa_Guru_IN'
362 // in accounting notation.
363 func (pa *pa_Guru_IN) FmtAccounting(num float64, v uint64, currency currency.Type) string {
365 s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
366 symbol := pa.currencies[currency]
367 l := len(s) + len(symbol) + 2 + 1*len(s[:len(s)-int(v)-1])/3
373 b := make([]byte, 0, l)
375 for i := len(s) - 1; i >= 0; i-- {
378 b = append(b, pa.decimal[0])
385 if count == groupThreshold {
386 b = append(b, pa.group[0])
403 for j := len(symbol) - 1; j >= 0; j-- {
404 b = append(b, symbol[j])
407 b = append(b, pa.minus[0])
411 for j := len(symbol) - 1; j >= 0; j-- {
412 b = append(b, symbol[j])
418 for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
419 b[i], b[j] = b[j], b[i]
425 b = append(b, pa.decimal...)
428 for i := 0; i < 2-int(v); i++ {
436 // FmtDateShort returns the short date representation of 't' for 'pa_Guru_IN'
437 func (pa *pa_Guru_IN) FmtDateShort(t time.Time) string {
439 b := make([]byte, 0, 32)
441 b = strconv.AppendInt(b, int64(t.Day()), 10)
442 b = append(b, []byte{0x2f}...)
443 b = strconv.AppendInt(b, int64(t.Month()), 10)
444 b = append(b, []byte{0x2f}...)
447 b = append(b, strconv.Itoa(t.Year())[2:]...)
449 b = append(b, strconv.Itoa(t.Year())[1:]...)
455 // FmtDateMedium returns the medium date representation of 't' for 'pa_Guru_IN'
456 func (pa *pa_Guru_IN) FmtDateMedium(t time.Time) string {
458 b := make([]byte, 0, 32)
460 b = strconv.AppendInt(b, int64(t.Day()), 10)
461 b = append(b, []byte{0x20}...)
462 b = append(b, pa.monthsAbbreviated[t.Month()]...)
463 b = append(b, []byte{0x20}...)
466 b = strconv.AppendInt(b, int64(t.Year()), 10)
468 b = strconv.AppendInt(b, int64(-t.Year()), 10)
474 // FmtDateLong returns the long date representation of 't' for 'pa_Guru_IN'
475 func (pa *pa_Guru_IN) FmtDateLong(t time.Time) string {
477 b := make([]byte, 0, 32)
479 b = strconv.AppendInt(b, int64(t.Day()), 10)
480 b = append(b, []byte{0x20}...)
481 b = append(b, pa.monthsWide[t.Month()]...)
482 b = append(b, []byte{0x20}...)
485 b = strconv.AppendInt(b, int64(t.Year()), 10)
487 b = strconv.AppendInt(b, int64(-t.Year()), 10)
493 // FmtDateFull returns the full date representation of 't' for 'pa_Guru_IN'
494 func (pa *pa_Guru_IN) FmtDateFull(t time.Time) string {
496 b := make([]byte, 0, 32)
498 b = append(b, pa.daysWide[t.Weekday()]...)
499 b = append(b, []byte{0x2c, 0x20}...)
500 b = strconv.AppendInt(b, int64(t.Day()), 10)
501 b = append(b, []byte{0x20}...)
502 b = append(b, pa.monthsWide[t.Month()]...)
503 b = append(b, []byte{0x20}...)
506 b = strconv.AppendInt(b, int64(t.Year()), 10)
508 b = strconv.AppendInt(b, int64(-t.Year()), 10)
514 // FmtTimeShort returns the short time representation of 't' for 'pa_Guru_IN'
515 func (pa *pa_Guru_IN) FmtTimeShort(t time.Time) string {
517 b := make([]byte, 0, 32)
525 b = strconv.AppendInt(b, int64(h), 10)
526 b = append(b, pa.timeSeparator...)
532 b = strconv.AppendInt(b, int64(t.Minute()), 10)
533 b = append(b, []byte{0x20}...)
536 b = append(b, pa.periodsAbbreviated[0]...)
538 b = append(b, pa.periodsAbbreviated[1]...)
544 // FmtTimeMedium returns the medium time representation of 't' for 'pa_Guru_IN'
545 func (pa *pa_Guru_IN) FmtTimeMedium(t time.Time) string {
547 b := make([]byte, 0, 32)
555 b = strconv.AppendInt(b, int64(h), 10)
556 b = append(b, pa.timeSeparator...)
562 b = strconv.AppendInt(b, int64(t.Minute()), 10)
563 b = append(b, pa.timeSeparator...)
569 b = strconv.AppendInt(b, int64(t.Second()), 10)
570 b = append(b, []byte{0x20}...)
573 b = append(b, pa.periodsAbbreviated[0]...)
575 b = append(b, pa.periodsAbbreviated[1]...)
581 // FmtTimeLong returns the long time representation of 't' for 'pa_Guru_IN'
582 func (pa *pa_Guru_IN) FmtTimeLong(t time.Time) string {
584 b := make([]byte, 0, 32)
592 b = strconv.AppendInt(b, int64(h), 10)
593 b = append(b, pa.timeSeparator...)
599 b = strconv.AppendInt(b, int64(t.Minute()), 10)
600 b = append(b, pa.timeSeparator...)
606 b = strconv.AppendInt(b, int64(t.Second()), 10)
607 b = append(b, []byte{0x20}...)
610 b = append(b, pa.periodsAbbreviated[0]...)
612 b = append(b, pa.periodsAbbreviated[1]...)
615 b = append(b, []byte{0x20}...)
623 // FmtTimeFull returns the full time representation of 't' for 'pa_Guru_IN'
624 func (pa *pa_Guru_IN) FmtTimeFull(t time.Time) string {
626 b := make([]byte, 0, 32)
634 b = strconv.AppendInt(b, int64(h), 10)
635 b = append(b, pa.timeSeparator...)
641 b = strconv.AppendInt(b, int64(t.Minute()), 10)
642 b = append(b, pa.timeSeparator...)
648 b = strconv.AppendInt(b, int64(t.Second()), 10)
649 b = append(b, []byte{0x20}...)
652 b = append(b, pa.periodsAbbreviated[0]...)
654 b = append(b, pa.periodsAbbreviated[1]...)
657 b = append(b, []byte{0x20}...)
661 if btz, ok := pa.timezones[tz]; ok {
662 b = append(b, btz...)