Lines Matching +refs:t +refs:te

79 func (te *te_IN) Locale() string {
80 return te.locale
84 func (te *te_IN) PluralsCardinal() []locales.PluralRule {
85 return te.pluralsCardinal
89 func (te *te_IN) PluralsOrdinal() []locales.PluralRule {
90 return te.pluralsOrdinal
94 func (te *te_IN) PluralsRange() []locales.PluralRule {
95 return te.pluralsRange
99 func (te *te_IN) CardinalPluralRule(num float64, v uint64) locales.PluralRule {
111 func (te *te_IN) OrdinalPluralRule(num float64, v uint64) locales.PluralRule {
116 func (te *te_IN) RangePluralRule(num1 float64, v1 uint64, num2 float64, v2 uint64) locales.PluralRu…
118 start := te.CardinalPluralRule(num1, v1)
119 end := te.CardinalPluralRule(num2, v2)
132 func (te *te_IN) MonthAbbreviated(month time.Month) string {
133 return te.monthsAbbreviated[month]
137 func (te *te_IN) MonthsAbbreviated() []string {
138 return te.monthsAbbreviated[1:]
142 func (te *te_IN) MonthNarrow(month time.Month) string {
143 return te.monthsNarrow[month]
147 func (te *te_IN) MonthsNarrow() []string {
148 return te.monthsNarrow[1:]
152 func (te *te_IN) MonthWide(month time.Month) string {
153 return te.monthsWide[month]
157 func (te *te_IN) MonthsWide() []string {
158 return te.monthsWide[1:]
162 func (te *te_IN) WeekdayAbbreviated(weekday time.Weekday) string {
163 return te.daysAbbreviated[weekday]
167 func (te *te_IN) WeekdaysAbbreviated() []string {
168 return te.daysAbbreviated
172 func (te *te_IN) WeekdayNarrow(weekday time.Weekday) string {
173 return te.daysNarrow[weekday]
177 func (te *te_IN) WeekdaysNarrow() []string {
178 return te.daysNarrow
182 func (te *te_IN) WeekdayShort(weekday time.Weekday) string {
183 return te.daysShort[weekday]
187 func (te *te_IN) WeekdaysShort() []string {
188 return te.daysShort
192 func (te *te_IN) WeekdayWide(weekday time.Weekday) string {
193 return te.daysWide[weekday]
197 func (te *te_IN) WeekdaysWide() []string {
198 return te.daysWide
202 func (te *te_IN) Decimal() string {
203 return te.decimal
207 func (te *te_IN) Group() string {
208 return te.group
212 func (te *te_IN) Minus() string {
213 return te.minus
217 func (te *te_IN) FmtNumber(num float64, v uint64) string {
231 b = append(b, te.decimal[0])
239 b = append(b, te.group[0])
255 b = append(b, te.minus[0])
268 func (te *te_IN) FmtPercent(num float64, v uint64) string {
276 b = append(b, te.decimal[0])
284 b = append(b, te.minus[0])
292 b = append(b, te.percent...)
298 func (te *te_IN) FmtCurrency(num float64, v uint64, currency currency.Type) string {
301 symbol := te.currencies[currency]
313 b = append(b, te.decimal[0])
321 b = append(b, te.group[0])
341 b = append(b, te.minus[0])
352 b = append(b, te.decimal...)
365 func (te *te_IN) FmtAccounting(num float64, v uint64, currency currency.Type) string {
368 symbol := te.currencies[currency]
380 b = append(b, te.decimal[0])
388 b = append(b, te.group[0])
409 b = append(b, te.currencyNegativePrefix[0])
427 b = append(b, te.decimal...)
436 b = append(b, te.currencyNegativeSuffix...)
443 func (te *te_IN) FmtDateShort(t time.Time) string {
447 if t.Day() < 10 {
451 b = strconv.AppendInt(b, int64(t.Day()), 10)
454 if t.Month() < 10 {
458 b = strconv.AppendInt(b, int64(t.Month()), 10)
462 if t.Year() > 9 {
463 b = append(b, strconv.Itoa(t.Year())[2:]...)
465 b = append(b, strconv.Itoa(t.Year())[1:]...)
472 func (te *te_IN) FmtDateMedium(t time.Time) string {
476 b = strconv.AppendInt(b, int64(t.Day()), 10)
478 b = append(b, te.monthsAbbreviated[t.Month()]...)
481 if t.Year() > 0 {
482 b = strconv.AppendInt(b, int64(t.Year()), 10)
484 b = strconv.AppendInt(b, int64(-t.Year()), 10)
491 func (te *te_IN) FmtDateLong(t time.Time) string {
495 b = strconv.AppendInt(b, int64(t.Day()), 10)
497 b = append(b, te.monthsWide[t.Month()]...)
500 if t.Year() > 0 {
501 b = strconv.AppendInt(b, int64(t.Year()), 10)
503 b = strconv.AppendInt(b, int64(-t.Year()), 10)
510 func (te *te_IN) FmtDateFull(t time.Time) string {
514 b = strconv.AppendInt(b, int64(t.Day()), 10)
516 b = append(b, te.monthsWide[t.Month()]...)
519 if t.Year() > 0 {
520 b = strconv.AppendInt(b, int64(t.Year()), 10)
522 b = strconv.AppendInt(b, int64(-t.Year()), 10)
526 b = append(b, te.daysWide[t.Weekday()]...)
532 func (te *te_IN) FmtTimeShort(t time.Time) string {
536 h := t.Hour()
543 b = append(b, te.timeSeparator...)
545 if t.Minute() < 10 {
549 b = strconv.AppendInt(b, int64(t.Minute()), 10)
552 if t.Hour() < 12 {
553 b = append(b, te.periodsAbbreviated[0]...)
555 b = append(b, te.periodsAbbreviated[1]...)
562 func (te *te_IN) FmtTimeMedium(t time.Time) string {
566 h := t.Hour()
573 b = append(b, te.timeSeparator...)
575 if t.Minute() < 10 {
579 b = strconv.AppendInt(b, int64(t.Minute()), 10)
580 b = append(b, te.timeSeparator...)
582 if t.Second() < 10 {
586 b = strconv.AppendInt(b, int64(t.Second()), 10)
589 if t.Hour() < 12 {
590 b = append(b, te.periodsAbbreviated[0]...)
592 b = append(b, te.periodsAbbreviated[1]...)
599 func (te *te_IN) FmtTimeLong(t time.Time) string {
603 h := t.Hour()
610 b = append(b, te.timeSeparator...)
612 if t.Minute() < 10 {
616 b = strconv.AppendInt(b, int64(t.Minute()), 10)
617 b = append(b, te.timeSeparator...)
619 if t.Second() < 10 {
623 b = strconv.AppendInt(b, int64(t.Second()), 10)
626 if t.Hour() < 12 {
627 b = append(b, te.periodsAbbreviated[0]...)
629 b = append(b, te.periodsAbbreviated[1]...)
634 tz, _ := t.Zone()
641 func (te *te_IN) FmtTimeFull(t time.Time) string {
645 h := t.Hour()
652 b = append(b, te.timeSeparator...)
654 if t.Minute() < 10 {
658 b = strconv.AppendInt(b, int64(t.Minute()), 10)
659 b = append(b, te.timeSeparator...)
661 if t.Second() < 10 {
665 b = strconv.AppendInt(b, int64(t.Second()), 10)
668 if t.Hour() < 12 {
669 b = append(b, te.periodsAbbreviated[0]...)
671 b = append(b, te.periodsAbbreviated[1]...)
676 tz, _ := t.Zone()
678 if btz, ok := te.timezones[tz]; ok {