lb_LU.go 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601
  1. package lb_LU
  2. import (
  3. "math"
  4. "strconv"
  5. "time"
  6. "github.com/go-playground/locales"
  7. "github.com/go-playground/locales/currency"
  8. )
  9. type lb_LU struct {
  10. locale string
  11. pluralsCardinal []locales.PluralRule
  12. pluralsOrdinal []locales.PluralRule
  13. pluralsRange []locales.PluralRule
  14. decimal []byte
  15. group []byte
  16. minus []byte
  17. percent []byte
  18. percentSuffix []byte
  19. perMille []byte
  20. timeSeparator []byte
  21. inifinity []byte
  22. currencies [][]byte // idx = enum of currency code
  23. currencyPositiveSuffix []byte
  24. currencyNegativeSuffix []byte
  25. monthsAbbreviated [][]byte
  26. monthsNarrow [][]byte
  27. monthsWide [][]byte
  28. daysAbbreviated [][]byte
  29. daysNarrow [][]byte
  30. daysShort [][]byte
  31. daysWide [][]byte
  32. periodsAbbreviated [][]byte
  33. periodsNarrow [][]byte
  34. periodsShort [][]byte
  35. periodsWide [][]byte
  36. erasAbbreviated [][]byte
  37. erasNarrow [][]byte
  38. erasWide [][]byte
  39. timezones map[string][]byte
  40. }
  41. // New returns a new instance of translator for the 'lb_LU' locale
  42. func New() locales.Translator {
  43. return &lb_LU{
  44. locale: "lb_LU",
  45. pluralsCardinal: []locales.PluralRule{2, 6},
  46. pluralsOrdinal: nil,
  47. pluralsRange: nil,
  48. decimal: []byte{0x2c},
  49. group: []byte{0x2e},
  50. minus: []byte{0x2d},
  51. percent: []byte{0x25},
  52. perMille: []byte{0xe2, 0x80, 0xb0},
  53. timeSeparator: []byte{0x3a},
  54. inifinity: []byte{0xe2, 0x88, 0x9e},
  55. currencies: [][]uint8{{0x41, 0x44, 0x50, 0x20}, {0x41, 0x45, 0x44, 0x20}, {0x41, 0x46, 0x41, 0x20}, {0x41, 0x46, 0x4e, 0x20}, {0x41, 0x4c, 0x4b, 0x20}, {0x41, 0x4c, 0x4c, 0x20}, {0x41, 0x4d, 0x44, 0x20}, {0x41, 0x4e, 0x47, 0x20}, {0x41, 0x4f, 0x41, 0x20}, {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, 0x20}, {0x41, 0x54, 0x53, 0x20}, {0x41, 0x55, 0x44, 0x20}, {0x41, 0x57, 0x47, 0x20}, {0x41, 0x5a, 0x4d, 0x20}, {0x41, 0x5a, 0x4e, 0x20}, {0x42, 0x41, 0x44, 0x20}, {0x42, 0x41, 0x4d, 0x20}, {0x42, 0x41, 0x4e, 0x20}, {0x42, 0x42, 0x44, 0x20}, {0x42, 0x44, 0x54, 0x20}, {0x42, 0x45, 0x43, 0x20}, {0x42, 0x45, 0x46, 0x20}, {0x42, 0x45, 0x4c, 0x20}, {0x42, 0x47, 0x4c, 0x20}, {0x42, 0x47, 0x4d, 0x20}, {0x42, 0x47, 0x4e, 0x20}, {0x42, 0x47, 0x4f, 0x20}, {0x42, 0x48, 0x44, 0x20}, {0x42, 0x49, 0x46, 0x20}, {0x42, 0x4d, 0x44, 0x20}, {0x42, 0x4e, 0x44, 0x20}, {0x42, 0x4f, 0x42, 0x20}, {0x42, 0x4f, 0x4c, 0x20}, {0x42, 0x4f, 0x50, 0x20}, {0x42, 0x4f, 0x56, 0x20}, {0x42, 0x52, 0x42, 0x20}, {0x42, 0x52, 0x43, 0x20}, {0x42, 0x52, 0x45, 0x20}, {0x42, 0x52, 0x4c, 0x20}, {0x42, 0x52, 0x4e, 0x20}, {0x42, 0x52, 0x52, 0x20}, {0x42, 0x52, 0x5a, 0x20}, {0x42, 0x53, 0x44, 0x20}, {0x42, 0x54, 0x4e, 0x20}, {0x42, 0x55, 0x4b, 0x20}, {0x42, 0x57, 0x50, 0x20}, {0x42, 0x59, 0x42, 0x20}, {0x42, 0x59, 0x52, 0x20}, {0x42, 0x5a, 0x44, 0x20}, {0x43, 0x41, 0x44, 0x20}, {0x43, 0x44, 0x46, 0x20}, {0x43, 0x48, 0x45, 0x20}, {0x43, 0x48, 0x46, 0x20}, {0x43, 0x48, 0x57, 0x20}, {0x43, 0x4c, 0x45, 0x20}, {0x43, 0x4c, 0x46, 0x20}, {0x43, 0x4c, 0x50, 0x20}, {0x43, 0x4e, 0x58, 0x20}, {0x43, 0x4e, 0x59, 0x20}, {0x43, 0x4f, 0x50, 0x20}, {0x43, 0x4f, 0x55, 0x20}, {0x43, 0x52, 0x43, 0x20}, {0x43, 0x53, 0x44, 0x20}, {0x43, 0x53, 0x4b, 0x20}, {0x43, 0x55, 0x43, 0x20}, {0x43, 0x55, 0x50, 0x20}, {0x43, 0x56, 0x45, 0x20}, {0x43, 0x59, 0x50, 0x20}, {0x43, 0x5a, 0x4b, 0x20}, {0x44, 0x44, 0x4d, 0x20}, {0x44, 0x45, 0x4d, 0x20}, {0x44, 0x4a, 0x46, 0x20}, {0x44, 0x4b, 0x4b, 0x20}, {0x44, 0x4f, 0x50, 0x20}, {0x44, 0x5a, 0x44, 0x20}, {0x45, 0x43, 0x53, 0x20}, {0x45, 0x43, 0x56, 0x20}, {0x45, 0x45, 0x4b, 0x20}, {0x45, 0x47, 0x50, 0x20}, {0x45, 0x52, 0x4e, 0x20}, {0x45, 0x53, 0x41, 0x20}, {0x45, 0x53, 0x42, 0x20}, {0x45, 0x53, 0x50, 0x20}, {0x45, 0x54, 0x42, 0x20}, {0x45, 0x55, 0x52, 0x20}, {0x46, 0x49, 0x4d, 0x20}, {0x46, 0x4a, 0x44, 0x20}, {0x46, 0x4b, 0x50, 0x20}, {0x46, 0x52, 0x46, 0x20}, {0x47, 0x42, 0x50, 0x20}, {0x47, 0x45, 0x4b, 0x20}, {0x47, 0x45, 0x4c, 0x20}, {0x47, 0x48, 0x43, 0x20}, {0x47, 0x48, 0x53, 0x20}, {0x47, 0x49, 0x50, 0x20}, {0x47, 0x4d, 0x44, 0x20}, {0x47, 0x4e, 0x46, 0x20}, {0x47, 0x4e, 0x53, 0x20}, {0x47, 0x51, 0x45, 0x20}, {0x47, 0x52, 0x44, 0x20}, {0x47, 0x54, 0x51, 0x20}, {0x47, 0x57, 0x45, 0x20}, {0x47, 0x57, 0x50, 0x20}, {0x47, 0x59, 0x44, 0x20}, {0x48, 0x4b, 0x44, 0x20}, {0x48, 0x4e, 0x4c, 0x20}, {0x48, 0x52, 0x44, 0x20}, {0x48, 0x52, 0x4b, 0x20}, {0x48, 0x54, 0x47, 0x20}, {0x48, 0x55, 0x46, 0x20}, {0x49, 0x44, 0x52, 0x20}, {0x49, 0x45, 0x50, 0x20}, {0x49, 0x4c, 0x50, 0x20}, {0x49, 0x4c, 0x52, 0x20}, {0x49, 0x4c, 0x53, 0x20}, {0x49, 0x4e, 0x52, 0x20}, {0x49, 0x51, 0x44, 0x20}, {0x49, 0x52, 0x52, 0x20}, {0x49, 0x53, 0x4a, 0x20}, {0x49, 0x53, 0x4b, 0x20}, {0x49, 0x54, 0x4c, 0x20}, {0x4a, 0x4d, 0x44, 0x20}, {0x4a, 0x4f, 0x44, 0x20}, {0x4a, 0x50, 0x59, 0x20}, {0x4b, 0x45, 0x53, 0x20}, {0x4b, 0x47, 0x53, 0x20}, {0x4b, 0x48, 0x52, 0x20}, {0x4b, 0x4d, 0x46, 0x20}, {0x4b, 0x50, 0x57, 0x20}, {0x4b, 0x52, 0x48, 0x20}, {0x4b, 0x52, 0x4f, 0x20}, {0x4b, 0x52, 0x57, 0x20}, {0x4b, 0x57, 0x44, 0x20}, {0x4b, 0x59, 0x44, 0x20}, {0x4b, 0x5a, 0x54, 0x20}, {0x4c, 0x41, 0x4b, 0x20}, {0x4c, 0x42, 0x50, 0x20}, {0x4c, 0x4b, 0x52, 0x20}, {0x4c, 0x52, 0x44, 0x20}, {0x4c, 0x53, 0x4c, 0x20}, {0x4c, 0x54, 0x4c, 0x20}, {0x4c, 0x54, 0x54, 0x20}, {0x4c, 0x55, 0x43, 0x20}, {0x4c, 0x55, 0x46, 0x20}, {0x4c, 0x55, 0x4c, 0x20}, {0x4c, 0x56, 0x4c, 0x20}, {0x4c, 0x56, 0x52, 0x20}, {0x4c, 0x59, 0x44, 0x20}, {0x4d, 0x41, 0x44, 0x20}, {0x4d, 0x41, 0x46, 0x20}, {0x4d, 0x43, 0x46, 0x20}, {0x4d, 0x44, 0x43, 0x20}, {0x4d, 0x44, 0x4c, 0x20}, {0x4d, 0x47, 0x41, 0x20}, {0x4d, 0x47, 0x46, 0x20}, {0x4d, 0x4b, 0x44, 0x20}, {0x4d, 0x4b, 0x4e, 0x20}, {0x4d, 0x4c, 0x46, 0x20}, {0x4d, 0x4d, 0x4b, 0x20}, {0x4d, 0x4e, 0x54, 0x20}, {0x4d, 0x4f, 0x50, 0x20}, {0x4d, 0x52, 0x4f, 0x20}, {0x4d, 0x54, 0x4c, 0x20}, {0x4d, 0x54, 0x50, 0x20}, {0x4d, 0x55, 0x52, 0x20}, {0x4d, 0x56, 0x50, 0x20}, {0x4d, 0x56, 0x52, 0x20}, {0x4d, 0x57, 0x4b, 0x20}, {0x4d, 0x58, 0x4e, 0x20}, {0x4d, 0x58, 0x50, 0x20}, {0x4d, 0x58, 0x56, 0x20}, {0x4d, 0x59, 0x52, 0x20}, {0x4d, 0x5a, 0x45, 0x20}, {0x4d, 0x5a, 0x4d, 0x20}, {0x4d, 0x5a, 0x4e, 0x20}, {0x4e, 0x41, 0x44, 0x20}, {0x4e, 0x47, 0x4e, 0x20}, {0x4e, 0x49, 0x43, 0x20}, {0x4e, 0x49, 0x4f, 0x20}, {0x4e, 0x4c, 0x47, 0x20}, {0x4e, 0x4f, 0x4b, 0x20}, {0x4e, 0x50, 0x52, 0x20}, {0x4e, 0x5a, 0x44, 0x20}, {0x4f, 0x4d, 0x52, 0x20}, {0x50, 0x41, 0x42, 0x20}, {0x50, 0x45, 0x49, 0x20}, {0x50, 0x45, 0x4e, 0x20}, {0x50, 0x45, 0x53, 0x20}, {0x50, 0x47, 0x4b, 0x20}, {0x50, 0x48, 0x50, 0x20}, {0x50, 0x4b, 0x52, 0x20}, {0x50, 0x4c, 0x4e, 0x20}, {0x50, 0x4c, 0x5a, 0x20}, {0x50, 0x54, 0x45, 0x20}, {0x50, 0x59, 0x47, 0x20}, {0x51, 0x41, 0x52, 0x20}, {0x52, 0x48, 0x44, 0x20}, {0x52, 0x4f, 0x4c, 0x20}, {0x52, 0x4f, 0x4e, 0x20}, {0x52, 0x53, 0x44, 0x20}, {0x52, 0x55, 0x42, 0x20}, {0x52, 0x55, 0x52, 0x20}, {0x52, 0x57, 0x46, 0x20}, {0x53, 0x41, 0x52, 0x20}, {0x53, 0x42, 0x44, 0x20}, {0x53, 0x43, 0x52, 0x20}, {0x53, 0x44, 0x44, 0x20}, {0x53, 0x44, 0x47, 0x20}, {0x53, 0x44, 0x50, 0x20}, {0x53, 0x45, 0x4b, 0x20}, {0x53, 0x47, 0x44, 0x20}, {0x53, 0x48, 0x50, 0x20}, {0x53, 0x49, 0x54, 0x20}, {0x53, 0x4b, 0x4b, 0x20}, {0x53, 0x4c, 0x4c, 0x20}, {0x53, 0x4f, 0x53, 0x20}, {0x53, 0x52, 0x44, 0x20}, {0x53, 0x52, 0x47, 0x20}, {0x53, 0x53, 0x50, 0x20}, {0x53, 0x54, 0x44, 0x20}, {0x53, 0x55, 0x52, 0x20}, {0x53, 0x56, 0x43, 0x20}, {0x53, 0x59, 0x50, 0x20}, {0x53, 0x5a, 0x4c, 0x20}, {0x54, 0x48, 0x42, 0x20}, {0x54, 0x4a, 0x52, 0x20}, {0x54, 0x4a, 0x53, 0x20}, {0x54, 0x4d, 0x4d, 0x20}, {0x54, 0x4d, 0x54, 0x20}, {0x54, 0x4e, 0x44, 0x20}, {0x54, 0x4f, 0x50, 0x20}, {0x54, 0x50, 0x45, 0x20}, {0x54, 0x52, 0x4c, 0x20}, {0x54, 0x52, 0x59, 0x20}, {0x54, 0x54, 0x44, 0x20}, {0x54, 0x57, 0x44, 0x20}, {0x54, 0x5a, 0x53, 0x20}, {0x55, 0x41, 0x48, 0x20}, {0x55, 0x41, 0x4b, 0x20}, {0x55, 0x47, 0x53, 0x20}, {0x55, 0x47, 0x58, 0x20}, {0x55, 0x53, 0x44, 0x20}, {0x55, 0x53, 0x4e, 0x20}, {0x55, 0x53, 0x53, 0x20}, {0x55, 0x59, 0x49, 0x20}, {0x55, 0x59, 0x50, 0x20}, {0x55, 0x59, 0x55, 0x20}, {0x55, 0x5a, 0x53, 0x20}, {0x56, 0x45, 0x42, 0x20}, {0x56, 0x45, 0x46, 0x20}, {0x56, 0x4e, 0x44, 0x20}, {0x56, 0x4e, 0x4e, 0x20}, {0x56, 0x55, 0x56, 0x20}, {0x57, 0x53, 0x54, 0x20}, {0x58, 0x41, 0x46, 0x20}, {0x58, 0x41, 0x47, 0x20}, {0x58, 0x41, 0x55, 0x20}, {0x58, 0x42, 0x41, 0x20}, {0x58, 0x42, 0x42, 0x20}, {0x58, 0x42, 0x43, 0x20}, {0x58, 0x42, 0x44, 0x20}, {0x58, 0x43, 0x44, 0x20}, {0x58, 0x44, 0x52, 0x20}, {0x58, 0x45, 0x55, 0x20}, {0x58, 0x46, 0x4f, 0x20}, {0x58, 0x46, 0x55, 0x20}, {0x58, 0x4f, 0x46, 0x20}, {0x58, 0x50, 0x44, 0x20}, {0x58, 0x50, 0x46, 0x20}, {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, 0x20}, {0x59, 0x55, 0x44, 0x20}, {0x59, 0x55, 0x4d, 0x20}, {0x59, 0x55, 0x4e, 0x20}, {0x59, 0x55, 0x52, 0x20}, {0x5a, 0x41, 0x4c, 0x20}, {0x5a, 0x41, 0x52, 0x20}, {0x5a, 0x4d, 0x4b, 0x20}, {0x5a, 0x4d, 0x57, 0x20}, {0x5a, 0x52, 0x4e, 0x20}, {0x5a, 0x52, 0x5a, 0x20}, {0x5a, 0x57, 0x44, 0x20}, {0x5a, 0x57, 0x4c, 0x20}, {0x5a, 0x57, 0x52, 0x20}},
  56. percentSuffix: []byte{0xc2, 0xa0},
  57. currencyPositiveSuffix: []byte{0xc2, 0xa0},
  58. currencyNegativeSuffix: []byte{0xc2, 0xa0},
  59. monthsAbbreviated: [][]uint8{[]uint8(nil), {0x4a, 0x61, 0x6e, 0x2e}, {0x46, 0x65, 0x62, 0x2e}, {0x4d, 0xc3, 0xa4, 0x65, 0x2e}, {0x41, 0x62, 0x72, 0x2e}, {0x4d, 0x65, 0x65}, {0x4a, 0x75, 0x6e, 0x69}, {0x4a, 0x75, 0x6c, 0x69}, {0x41, 0x75, 0x67, 0x2e}, {0x53, 0x65, 0x70, 0x2e}, {0x4f, 0x6b, 0x74, 0x2e}, {0x4e, 0x6f, 0x76, 0x2e}, {0x44, 0x65, 0x7a, 0x2e}},
  60. monthsNarrow: [][]uint8{[]uint8(nil), {0x4a}, {0x46}, {0x4d}, {0x41}, {0x4d}, {0x4a}, {0x4a}, {0x41}, {0x53}, {0x4f}, {0x4e}, {0x44}},
  61. monthsWide: [][]uint8{[]uint8(nil), {0x4a, 0x61, 0x6e, 0x75, 0x61, 0x72}, {0x46, 0x65, 0x62, 0x72, 0x75, 0x61, 0x72}, {0x4d, 0xc3, 0xa4, 0x65, 0x72, 0x7a}, {0x41, 0x62, 0x72, 0xc3, 0xab, 0x6c, 0x6c}, {0x4d, 0x65, 0x65}, {0x4a, 0x75, 0x6e, 0x69}, {0x4a, 0x75, 0x6c, 0x69}, {0x41, 0x75, 0x67, 0x75, 0x73, 0x74}, {0x53, 0x65, 0x70, 0x74, 0x65, 0x6d, 0x62, 0x65, 0x72}, {0x4f, 0x6b, 0x74, 0x6f, 0x62, 0x65, 0x72}, {0x4e, 0x6f, 0x76, 0x65, 0x6d, 0x62, 0x65, 0x72}, {0x44, 0x65, 0x7a, 0x65, 0x6d, 0x62, 0x65, 0x72}},
  62. daysAbbreviated: [][]uint8{{0x53, 0x6f, 0x6e, 0x2e}, {0x4d, 0xc3, 0xa9, 0x69, 0x2e}, {0x44, 0xc3, 0xab, 0x6e, 0x2e}, {0x4d, 0xc3, 0xab, 0x74, 0x2e}, {0x44, 0x6f, 0x6e, 0x2e}, {0x46, 0x72, 0x65, 0x2e}, {0x53, 0x61, 0x6d, 0x2e}},
  63. daysNarrow: [][]uint8{{0x53}, {0x4d}, {0x44}, {0x4d}, {0x44}, {0x46}, {0x53}},
  64. daysShort: [][]uint8{{0x53, 0x6f, 0x2e}, {0x4d, 0xc3, 0xa9, 0x2e}, {0x44, 0xc3, 0xab, 0x2e}, {0x4d, 0xc3, 0xab, 0x2e}, {0x44, 0x6f, 0x2e}, {0x46, 0x72, 0x2e}, {0x53, 0x61, 0x2e}},
  65. daysWide: [][]uint8{{0x53, 0x6f, 0x6e, 0x6e, 0x64, 0x65, 0x67}, {0x4d, 0xc3, 0xa9, 0x69, 0x6e, 0x64, 0x65, 0x67}, {0x44, 0xc3, 0xab, 0x6e, 0x73, 0x63, 0x68, 0x64, 0x65, 0x67}, {0x4d, 0xc3, 0xab, 0x74, 0x74, 0x77, 0x6f, 0x63, 0x68}, {0x44, 0x6f, 0x6e, 0x6e, 0x65, 0x73, 0x63, 0x68, 0x64, 0x65, 0x67}, {0x46, 0x72, 0x65, 0x69, 0x64, 0x65, 0x67}, {0x53, 0x61, 0x6d, 0x73, 0x63, 0x68, 0x64, 0x65, 0x67}},
  66. periodsAbbreviated: [][]uint8{{0x6d, 0x6f, 0x69, 0x65, 0x73}, {0x6e, 0x6f, 0x6d, 0xc3, 0xab, 0x74, 0x74, 0x65, 0x73}},
  67. periodsNarrow: [][]uint8{{0x6d, 0x6f, 0x2e}, {0x6e, 0x6f, 0x6d, 0xc3, 0xab, 0x2e}},
  68. periodsWide: [][]uint8{{0x6d, 0x6f, 0x69, 0x65, 0x73}, {0x6e, 0x6f, 0x6d, 0xc3, 0xab, 0x74, 0x74, 0x65, 0x73}},
  69. erasAbbreviated: [][]uint8{{0x76, 0x2e, 0x20, 0x43, 0x68, 0x72, 0x2e}, {0x6e, 0x2e, 0x20, 0x43, 0x68, 0x72, 0x2e}},
  70. erasNarrow: [][]uint8{[]uint8(nil), []uint8(nil)},
  71. erasWide: [][]uint8{{0x76, 0x2e, 0x20, 0x43, 0x68, 0x72, 0x2e}, {0x6e, 0x2e, 0x20, 0x43, 0x68, 0x72, 0x2e}},
  72. timezones: map[string][]uint8{"ART": {0x41, 0x72, 0x67, 0x65, 0x6e, 0x74, 0x69, 0x6e, 0x65, 0x73, 0x63, 0x68, 0x20, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "ARST": {0x41, 0x72, 0x67, 0x65, 0x6e, 0x74, 0x69, 0x6e, 0x65, 0x73, 0x63, 0x68, 0x20, 0x53, 0x75, 0x6d, 0x6d, 0x65, 0x72, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "LHST": {0x4c, 0x6f, 0x72, 0x64, 0x2d, 0x48, 0x6f, 0x77, 0x65, 0x2d, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "AEST": {0x4f, 0x73, 0x74, 0x61, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x65, 0x73, 0x63, 0x68, 0x20, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "CHADT": {0x43, 0x68, 0x61, 0x74, 0x68, 0x61, 0x6d, 0x2d, 0x53, 0x75, 0x6d, 0x6d, 0x65, 0x72, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "CST": {0x4e, 0x6f, 0x72, 0x64, 0x61, 0x6d, 0x65, 0x72, 0x69, 0x6b, 0x61, 0x6e, 0x65, 0x73, 0x63, 0x68, 0x20, 0x49, 0x6e, 0x6c, 0x61, 0x6e, 0x64, 0x2d, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "SGT": {0x53, 0x69, 0x6e, 0x67, 0x61, 0x70, 0x75, 0x72, 0x2d, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "HAT": {0x4e, 0x65, 0x69, 0x66, 0x75, 0x6e, 0x64, 0x6c, 0x61, 0x6e, 0x64, 0x2d, 0x53, 0x75, 0x6d, 0x6d, 0x65, 0x72, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "WAST": {0x57, 0x65, 0x73, 0x74, 0x61, 0x66, 0x72, 0x69, 0x6b, 0x61, 0x6e, 0x65, 0x73, 0x63, 0x68, 0x20, 0x53, 0x75, 0x6d, 0x6d, 0x65, 0x72, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "CHAST": {0x43, 0x68, 0x61, 0x74, 0x68, 0x61, 0x6d, 0x2d, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "TMT": {0x54, 0x75, 0x72, 0x6b, 0x6d, 0x65, 0x6e, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x2d, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "EDT": {0x4e, 0x6f, 0x72, 0x64, 0x61, 0x6d, 0x65, 0x72, 0x69, 0x6b, 0x61, 0x6e, 0x65, 0x73, 0x63, 0x68, 0x20, 0x4f, 0x73, 0x74, 0x6b, 0xc3, 0xbc, 0x73, 0x74, 0x65, 0x6e, 0x2d, 0x53, 0x75, 0x6d, 0x6d, 0x65, 0x72, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "ChST": {0x43, 0x68, 0x61, 0x6d, 0x6f, 0x72, 0x72, 0x6f, 0x2d, 0x5a, 0xc3, 0xa4, 0x69, 0x74}, "MYT": {0x4d, 0x61, 0x6c, 0x61, 0x79, 0x73, 0x65, 0x73, 0x63, 0x68, 0x20, 0x5a, 0xc3, 0xa4, 0x69, 0x74}, "WART": {0x57, 0x65, 0x73, 0x74, 0x61, 0x72, 0x67, 0x65, 0x6e, 0x74, 0x69, 0x6e, 0x65, 0x73, 0x63, 0x68, 0x20, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "HKT": {0x48, 0x6f, 0x6e, 0x67, 0x2d, 0x4b, 0x6f, 0x6e, 0x67, 0x2d, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "AKST": {0x41, 0x6c, 0x61, 0x73, 0x6b, 0x61, 0x2d, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "UYST": {0x55, 0x72, 0x75, 0x67, 0x75, 0x61, 0x79, 0x61, 0x6e, 0x65, 0x73, 0x63, 0x68, 0x20, 0x53, 0x75, 0x6d, 0x6d, 0x65, 0x72, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "GFT": {0x46, 0x72, 0x61, 0x6e, 0x73, 0xc3, 0xa9, 0x69, 0x73, 0x63, 0x68, 0x2d, 0x47, 0x75, 0x61, 0x79, 0x61, 0x6e, 0x65, 0x2d, 0x5a, 0xc3, 0xa4, 0x69, 0x74}, "HNT": {0x4e, 0x65, 0x69, 0x66, 0x75, 0x6e, 0x64, 0x6c, 0x61, 0x6e, 0x64, 0x2d, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "GYT": {0x47, 0x75, 0x79, 0x61, 0x6e, 0x61, 0x2d, 0x5a, 0xc3, 0xa4, 0x69, 0x74}, "CAT": {0x5a, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x61, 0x66, 0x72, 0x69, 0x6b, 0x61, 0x6e, 0x65, 0x73, 0x63, 0x68, 0x20, 0x5a, 0xc3, 0xa4, 0x69, 0x74}, "BT": {0x42, 0x68, 0x75, 0x74, 0x61, 0x6e, 0x2d, 0x5a, 0xc3, 0xa4, 0x69, 0x74}, "COST": {0x4b, 0x6f, 0x6c, 0x75, 0x6d, 0x62, 0x69, 0x61, 0x6e, 0x65, 0x73, 0x63, 0x68, 0x20, 0x53, 0x75, 0x6d, 0x6d, 0x65, 0x72, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "BOT": {0x42, 0x6f, 0x6c, 0x69, 0x76, 0x69, 0x61, 0x6e, 0x65, 0x73, 0x63, 0x68, 0x20, 0x5a, 0xc3, 0xa4, 0x69, 0x74}, "EST": {0x4e, 0x6f, 0x72, 0x64, 0x61, 0x6d, 0x65, 0x72, 0x69, 0x6b, 0x61, 0x6e, 0x65, 0x73, 0x63, 0x68, 0x20, 0x4f, 0x73, 0x74, 0x6b, 0xc3, 0xbc, 0x73, 0x74, 0x65, 0x6e, 0x2d, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "NZST": {0x4e, 0x65, 0x69, 0x73, 0xc3, 0xa9, 0x69, 0x6c, 0x61, 0x6e, 0x64, 0x2d, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "ACST": {0x5a, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x61, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x65, 0x73, 0x63, 0x68, 0x20, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "MST": {0x52, 0x6f, 0x63, 0x6b, 0x79, 0x2d, 0x4d, 0x6f, 0x75, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x2d, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "TMST": {0x54, 0x75, 0x72, 0x6b, 0x6d, 0x65, 0x6e, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x2d, 0x53, 0x75, 0x6d, 0x6d, 0x65, 0x72, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "JDT": {0x4a, 0x61, 0x70, 0x61, 0x6e, 0x65, 0x73, 0x63, 0x68, 0x20, 0x53, 0x75, 0x6d, 0x6d, 0x65, 0x72, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "AKDT": {0x41, 0x6c, 0x61, 0x73, 0x6b, 0x61, 0x2d, 0x53, 0x75, 0x6d, 0x6d, 0x65, 0x72, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "WESZ": {0x57, 0x65, 0x73, 0x74, 0x65, 0x75, 0x72, 0x6f, 0x70, 0xc3, 0xa4, 0x65, 0x73, 0x63, 0x68, 0x20, 0x53, 0x75, 0x6d, 0x6d, 0x65, 0x72, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "ECT": {0x45, 0x63, 0x75, 0x61, 0x64, 0x6f, 0x72, 0x69, 0x61, 0x6e, 0x65, 0x73, 0x63, 0x68, 0x20, 0x5a, 0xc3, 0xa4, 0x69, 0x74}, "WITA": {0x5a, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x6e, 0x64, 0x6f, 0x6e, 0x65, 0x73, 0x65, 0x73, 0x63, 0x68, 0x20, 0x5a, 0xc3, 0xa4, 0x69, 0x74}, "MEZ": {0x4d, 0xc3, 0xab, 0x74, 0x74, 0x65, 0x6c, 0x65, 0x75, 0x72, 0x6f, 0x70, 0xc3, 0xa4, 0x65, 0x73, 0x63, 0x68, 0x20, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "GMT": {0x4d, 0xc3, 0xab, 0x74, 0x74, 0x6c, 0x65, 0x72, 0x20, 0x47, 0x72, 0x65, 0x65, 0x6e, 0x77, 0x69, 0x63, 0x68, 0x2d, 0x5a, 0xc3, 0xa4, 0x69, 0x74}, "AWST": {0x57, 0x65, 0x73, 0x74, 0x61, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x65, 0x73, 0x63, 0x68, 0x20, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "CLST": {0x43, 0x68, 0x69, 0x6c, 0x65, 0x6e, 0x65, 0x73, 0x63, 0x68, 0x20, 0x53, 0x75, 0x6d, 0x6d, 0x65, 0x72, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "ADT": {0x41, 0x74, 0x6c, 0x61, 0x6e, 0x74, 0x69, 0x6b, 0x2d, 0x53, 0x75, 0x6d, 0x6d, 0x65, 0x72, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "LHDT": {0x4c, 0x6f, 0x72, 0x64, 0x2d, 0x48, 0x6f, 0x77, 0x65, 0x2d, 0x53, 0x75, 0x6d, 0x6d, 0x65, 0x72, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "AWDT": {0x57, 0x65, 0x73, 0x74, 0x61, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x65, 0x73, 0x63, 0x68, 0x20, 0x53, 0x75, 0x6d, 0x6d, 0x65, 0x72, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "COT": {0x4b, 0x6f, 0x6c, 0x75, 0x6d, 0x62, 0x69, 0x61, 0x6e, 0x65, 0x73, 0x63, 0x68, 0x20, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "EAT": {0x4f, 0x73, 0x74, 0x61, 0x66, 0x72, 0x69, 0x6b, 0x61, 0x6e, 0x65, 0x73, 0x63, 0x68, 0x20, 0x5a, 0xc3, 0xa4, 0x69, 0x74}, "AST": {0x41, 0x74, 0x6c, 0x61, 0x6e, 0x74, 0x69, 0x6b, 0x2d, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "WEZ": {0x57, 0x65, 0x73, 0x74, 0x65, 0x75, 0x72, 0x6f, 0x70, 0xc3, 0xa4, 0x65, 0x73, 0x63, 0x68, 0x20, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "AEDT": {0x4f, 0x73, 0x74, 0x61, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x65, 0x73, 0x63, 0x68, 0x20, 0x53, 0x75, 0x6d, 0x6d, 0x65, 0x72, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "ACWST": {0x5a, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x2d, 0x2f, 0x57, 0x65, 0x73, 0x74, 0x61, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x65, 0x73, 0x63, 0x68, 0x20, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "IST": {0x49, 0x6e, 0x64, 0x65, 0x73, 0x63, 0x68, 0x20, 0x5a, 0xc3, 0xa4, 0x69, 0x74}, "HKST": {0x48, 0x6f, 0x6e, 0x67, 0x2d, 0x4b, 0x6f, 0x6e, 0x67, 0x2d, 0x53, 0x75, 0x6d, 0x6d, 0x65, 0x72, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "UYT": {0x55, 0x72, 0x75, 0x67, 0x75, 0x79, 0x61, 0x6e, 0x65, 0x73, 0x63, 0x68, 0x20, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "NZDT": {0x4e, 0x65, 0x69, 0x73, 0xc3, 0xa9, 0x69, 0x6c, 0x61, 0x6e, 0x64, 0x2d, 0x53, 0x75, 0x6d, 0x6d, 0x65, 0x72, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "SAST": {0x53, 0xc3, 0xbc, 0x64, 0x61, 0x66, 0x72, 0x69, 0x6b, 0x61, 0x6e, 0x65, 0x73, 0x63, 0x68, 0x20, 0x5a, 0xc3, 0xa4, 0x69, 0x74}, "PDT": {0x4e, 0x6f, 0x72, 0x64, 0x61, 0x6d, 0x65, 0x72, 0x69, 0x6b, 0x61, 0x6e, 0x65, 0x73, 0x63, 0x68, 0x20, 0x57, 0x65, 0x73, 0x74, 0x6b, 0xc3, 0xbc, 0x73, 0x74, 0x65, 0x6e, 0x2d, 0x53, 0x75, 0x6d, 0x6d, 0x65, 0x72, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "WAT": {0x57, 0x65, 0x73, 0x74, 0x61, 0x66, 0x72, 0x69, 0x6b, 0x61, 0x6e, 0x65, 0x73, 0x63, 0x68, 0x20, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "OEZ": {0x4f, 0x73, 0x74, 0x65, 0x75, 0x72, 0x6f, 0x70, 0xc3, 0xa4, 0x65, 0x73, 0x63, 0x68, 0x20, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "VET": {0x56, 0x65, 0x6e, 0x65, 0x7a, 0x75, 0x65, 0x6c, 0x61, 0x2d, 0x5a, 0xc3, 0xa4, 0x69, 0x74}, "MDT": {0x52, 0x6f, 0x63, 0x6b, 0x79, 0x2d, 0x4d, 0x6f, 0x75, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x2d, 0x53, 0x75, 0x6d, 0x6d, 0x65, 0x72, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "HADT": {0x48, 0x61, 0x77, 0x61, 0x69, 0x69, 0x2d, 0x41, 0x6c, 0x65, 0x75, 0x74, 0x65, 0x6e, 0x2d, 0x53, 0x75, 0x6d, 0x6d, 0x65, 0x72, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "JST": {0x4a, 0x61, 0x70, 0x61, 0x6e, 0x65, 0x73, 0x63, 0x68, 0x20, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "WIB": {0x57, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x64, 0x6f, 0x6e, 0x65, 0x73, 0x65, 0x73, 0x63, 0x68, 0x20, 0x5a, 0xc3, 0xa4, 0x69, 0x74}, "CDT": {0x4e, 0x6f, 0x72, 0x64, 0x61, 0x6d, 0x65, 0x72, 0x69, 0x6b, 0x61, 0x6e, 0x65, 0x73, 0x63, 0x68, 0x20, 0x49, 0x6e, 0x6c, 0x61, 0x6e, 0x64, 0x2d, 0x53, 0x75, 0x6d, 0x6d, 0x65, 0x72, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "MESZ": {0x4d, 0xc3, 0xab, 0x74, 0x74, 0x65, 0x6c, 0x65, 0x75, 0x72, 0x6f, 0x70, 0xc3, 0xa4, 0x65, 0x73, 0x63, 0x68, 0x20, 0x53, 0x75, 0x6d, 0x6d, 0x65, 0x72, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "HAST": {0x48, 0x61, 0x77, 0x61, 0x69, 0x69, 0x2d, 0x41, 0x6c, 0x65, 0x75, 0x74, 0x65, 0x6e, 0x2d, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "OESZ": {0x4f, 0x73, 0x74, 0x65, 0x75, 0x72, 0x6f, 0x70, 0xc3, 0xa4, 0x65, 0x73, 0x63, 0x68, 0x20, 0x53, 0x75, 0x6d, 0x6d, 0x65, 0x72, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "∅∅∅": {0x41, 0x63, 0x72, 0x65, 0x2d, 0x53, 0x75, 0x6d, 0x6d, 0x65, 0x72, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "ACWDT": {0x5a, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x2d, 0x2f, 0x57, 0x65, 0x73, 0x74, 0x61, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x65, 0x73, 0x63, 0x68, 0x20, 0x53, 0x75, 0x6d, 0x6d, 0x65, 0x72, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "PST": {0x4e, 0x6f, 0x72, 0x64, 0x61, 0x6d, 0x65, 0x72, 0x69, 0x6b, 0x61, 0x6e, 0x65, 0x73, 0x63, 0x68, 0x20, 0x57, 0x65, 0x73, 0x74, 0x6b, 0xc3, 0xbc, 0x73, 0x74, 0x65, 0x6e, 0x2d, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "WIT": {0x4f, 0x73, 0x74, 0x69, 0x6e, 0x64, 0x6f, 0x6e, 0x65, 0x73, 0x65, 0x73, 0x63, 0x68, 0x20, 0x5a, 0xc3, 0xa4, 0x69, 0x74}, "WARST": {0x57, 0x65, 0x73, 0x74, 0x61, 0x72, 0x67, 0x65, 0x6e, 0x74, 0x69, 0x6e, 0x65, 0x73, 0x63, 0x68, 0x20, 0x53, 0x75, 0x6d, 0x6d, 0x65, 0x72, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "SRT": {0x53, 0x75, 0x72, 0x69, 0x6e, 0x61, 0x6d, 0x65, 0x2d, 0x5a, 0xc3, 0xa4, 0x69, 0x74}, "ACDT": {0x5a, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x61, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x65, 0x73, 0x63, 0x68, 0x20, 0x53, 0x75, 0x6d, 0x6d, 0x65, 0x72, 0x7a, 0xc3, 0xa4, 0x69, 0x74}, "CLT": {0x43, 0x68, 0x69, 0x6c, 0x65, 0x6e, 0x65, 0x73, 0x63, 0x68, 0x20, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x7a, 0xc3, 0xa4, 0x69, 0x74}},
  73. }
  74. }
  75. // Locale returns the current translators string locale
  76. func (lb *lb_LU) Locale() string {
  77. return lb.locale
  78. }
  79. // PluralsCardinal returns the list of cardinal plural rules associated with 'lb_LU'
  80. func (lb *lb_LU) PluralsCardinal() []locales.PluralRule {
  81. return lb.pluralsCardinal
  82. }
  83. // PluralsOrdinal returns the list of ordinal plural rules associated with 'lb_LU'
  84. func (lb *lb_LU) PluralsOrdinal() []locales.PluralRule {
  85. return lb.pluralsOrdinal
  86. }
  87. // PluralsRange returns the list of range plural rules associated with 'lb_LU'
  88. func (lb *lb_LU) PluralsRange() []locales.PluralRule {
  89. return lb.pluralsRange
  90. }
  91. // CardinalPluralRule returns the cardinal PluralRule given 'num' and digits/precision of 'v' for 'lb_LU'
  92. func (lb *lb_LU) CardinalPluralRule(num float64, v uint64) locales.PluralRule {
  93. n := math.Abs(num)
  94. if n == 1 {
  95. return locales.PluralRuleOne
  96. }
  97. return locales.PluralRuleOther
  98. }
  99. // OrdinalPluralRule returns the ordinal PluralRule given 'num' and digits/precision of 'v' for 'lb_LU'
  100. func (lb *lb_LU) OrdinalPluralRule(num float64, v uint64) locales.PluralRule {
  101. return locales.PluralRuleUnknown
  102. }
  103. // RangePluralRule returns the ordinal PluralRule given 'num1', 'num2' and digits/precision of 'v1' and 'v2' for 'lb_LU'
  104. func (lb *lb_LU) RangePluralRule(num1 float64, v1 uint64, num2 float64, v2 uint64) locales.PluralRule {
  105. return locales.PluralRuleUnknown
  106. }
  107. // MonthAbbreviated returns the locales abbreviated month given the 'month' provided
  108. func (lb *lb_LU) MonthAbbreviated(month time.Month) []byte {
  109. return lb.monthsAbbreviated[month]
  110. }
  111. // MonthsAbbreviated returns the locales abbreviated months
  112. func (lb *lb_LU) MonthsAbbreviated() [][]byte {
  113. return lb.monthsAbbreviated[1:]
  114. }
  115. // MonthNarrow returns the locales narrow month given the 'month' provided
  116. func (lb *lb_LU) MonthNarrow(month time.Month) []byte {
  117. return lb.monthsNarrow[month]
  118. }
  119. // MonthsNarrow returns the locales narrow months
  120. func (lb *lb_LU) MonthsNarrow() [][]byte {
  121. return lb.monthsNarrow[1:]
  122. }
  123. // MonthWide returns the locales wide month given the 'month' provided
  124. func (lb *lb_LU) MonthWide(month time.Month) []byte {
  125. return lb.monthsWide[month]
  126. }
  127. // MonthsWide returns the locales wide months
  128. func (lb *lb_LU) MonthsWide() [][]byte {
  129. return lb.monthsWide[1:]
  130. }
  131. // WeekdayAbbreviated returns the locales abbreviated weekday given the 'weekday' provided
  132. func (lb *lb_LU) WeekdayAbbreviated(weekday time.Weekday) []byte {
  133. return lb.daysAbbreviated[weekday]
  134. }
  135. // WeekdaysAbbreviated returns the locales abbreviated weekdays
  136. func (lb *lb_LU) WeekdaysAbbreviated() [][]byte {
  137. return lb.daysAbbreviated
  138. }
  139. // WeekdayNarrow returns the locales narrow weekday given the 'weekday' provided
  140. func (lb *lb_LU) WeekdayNarrow(weekday time.Weekday) []byte {
  141. return lb.daysNarrow[weekday]
  142. }
  143. // WeekdaysNarrow returns the locales narrow weekdays
  144. func (lb *lb_LU) WeekdaysNarrow() [][]byte {
  145. return lb.daysNarrow
  146. }
  147. // WeekdayShort returns the locales short weekday given the 'weekday' provided
  148. func (lb *lb_LU) WeekdayShort(weekday time.Weekday) []byte {
  149. return lb.daysShort[weekday]
  150. }
  151. // WeekdaysShort returns the locales short weekdays
  152. func (lb *lb_LU) WeekdaysShort() [][]byte {
  153. return lb.daysShort
  154. }
  155. // WeekdayWide returns the locales wide weekday given the 'weekday' provided
  156. func (lb *lb_LU) WeekdayWide(weekday time.Weekday) []byte {
  157. return lb.daysWide[weekday]
  158. }
  159. // WeekdaysWide returns the locales wide weekdays
  160. func (lb *lb_LU) WeekdaysWide() [][]byte {
  161. return lb.daysWide
  162. }
  163. // FmtNumber returns 'num' with digits/precision of 'v' for 'lb_LU' and handles both Whole and Real numbers based on 'v'
  164. // returned as a []byte just in case the caller wishes to add more and can help
  165. // avoid allocations; otherwise just cast as string.
  166. func (lb *lb_LU) FmtNumber(num float64, v uint64) []byte {
  167. s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
  168. l := len(s) + len(lb.decimal) + len(lb.group)*len(s[:len(s)-int(v)-1])/3
  169. count := 0
  170. inWhole := v == 0
  171. b := make([]byte, 0, l)
  172. for i := len(s) - 1; i >= 0; i-- {
  173. if s[i] == '.' {
  174. b = append(b, lb.decimal[0])
  175. inWhole = true
  176. continue
  177. }
  178. if inWhole {
  179. if count == 3 {
  180. b = append(b, lb.group[0])
  181. count = 1
  182. } else {
  183. count++
  184. }
  185. }
  186. b = append(b, s[i])
  187. }
  188. if num < 0 {
  189. b = append(b, lb.minus[0])
  190. }
  191. // reverse
  192. for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
  193. b[i], b[j] = b[j], b[i]
  194. }
  195. return b
  196. }
  197. // FmtPercent returns 'num' with digits/precision of 'v' for 'lb_LU' and handles both Whole and Real numbers based on 'v'
  198. // returned as a []byte just in case the caller wishes to add more and can help
  199. // avoid allocations; otherwise just cast as string.
  200. // NOTE: 'num' passed into FmtPercent is assumed to be in percent already
  201. func (lb *lb_LU) FmtPercent(num float64, v uint64) []byte {
  202. s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
  203. l := len(s) + len(lb.decimal)
  204. b := make([]byte, 0, l)
  205. for i := len(s) - 1; i >= 0; i-- {
  206. if s[i] == '.' {
  207. b = append(b, lb.decimal[0])
  208. continue
  209. }
  210. b = append(b, s[i])
  211. }
  212. if num < 0 {
  213. b = append(b, lb.minus[0])
  214. }
  215. // reverse
  216. for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
  217. b[i], b[j] = b[j], b[i]
  218. }
  219. b = append(b, lb.percentSuffix...)
  220. b = append(b, lb.percent...)
  221. return b
  222. }
  223. // FmtCurrency returns the currency representation of 'num' with digits/precision of 'v' for 'lb_LU'
  224. // returned as a []byte just in case the caller wishes to add more and can help
  225. // avoid allocations; otherwise just cast as string.
  226. func (lb *lb_LU) FmtCurrency(num float64, v uint64, currency currency.Type) []byte {
  227. s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
  228. symbol := lb.currencies[currency]
  229. l := len(s) + len(lb.decimal) + len(lb.group)*len(s[:len(s)-int(v)-1])/3
  230. count := 0
  231. inWhole := v == 0
  232. b := make([]byte, 0, l)
  233. for i := len(s) - 1; i >= 0; i-- {
  234. if s[i] == '.' {
  235. b = append(b, lb.decimal[0])
  236. inWhole = true
  237. continue
  238. }
  239. if inWhole {
  240. if count == 3 {
  241. b = append(b, lb.group[0])
  242. count = 1
  243. } else {
  244. count++
  245. }
  246. }
  247. b = append(b, s[i])
  248. }
  249. if num < 0 {
  250. b = append(b, lb.minus[0])
  251. }
  252. // reverse
  253. for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
  254. b[i], b[j] = b[j], b[i]
  255. }
  256. if int(v) < 2 {
  257. if v == 0 {
  258. b = append(b, lb.decimal...)
  259. }
  260. for i := 0; i < 2-int(v); i++ {
  261. b = append(b, '0')
  262. }
  263. }
  264. b = append(b, lb.currencyPositiveSuffix...)
  265. b = append(b, symbol...)
  266. return b
  267. }
  268. // FmtAccounting returns the currency representation of 'num' with digits/precision of 'v' for 'lb_LU'
  269. // in accounting notation. returned as a []byte just in case the caller wishes to add more and can help
  270. // avoid allocations; otherwise just cast as string.
  271. func (lb *lb_LU) FmtAccounting(num float64, v uint64, currency currency.Type) []byte {
  272. s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
  273. symbol := lb.currencies[currency]
  274. l := len(s) + len(lb.decimal) + len(lb.group)*len(s[:len(s)-int(v)-1])/3
  275. count := 0
  276. inWhole := v == 0
  277. b := make([]byte, 0, l)
  278. for i := len(s) - 1; i >= 0; i-- {
  279. if s[i] == '.' {
  280. b = append(b, lb.decimal[0])
  281. inWhole = true
  282. continue
  283. }
  284. if inWhole {
  285. if count == 3 {
  286. b = append(b, lb.group[0])
  287. count = 1
  288. } else {
  289. count++
  290. }
  291. }
  292. b = append(b, s[i])
  293. }
  294. if num < 0 {
  295. b = append(b, lb.minus[0])
  296. }
  297. // reverse
  298. for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
  299. b[i], b[j] = b[j], b[i]
  300. }
  301. if int(v) < 2 {
  302. if v == 0 {
  303. b = append(b, lb.decimal...)
  304. }
  305. for i := 0; i < 2-int(v); i++ {
  306. b = append(b, '0')
  307. }
  308. }
  309. if num < 0 {
  310. b = append(b, lb.currencyNegativeSuffix...)
  311. b = append(b, symbol...)
  312. } else {
  313. b = append(b, lb.currencyPositiveSuffix...)
  314. b = append(b, symbol...)
  315. }
  316. return b
  317. }
  318. // FmtDateShort returns the short date representation of 't' for 'lb_LU'
  319. // returned as a []byte just in case the caller wishes to add more and can help
  320. // avoid allocations; otherwise just cast as string.
  321. func (lb *lb_LU) FmtDateShort(t time.Time) []byte {
  322. b := make([]byte, 0, 32)
  323. if t.Day() < 10 {
  324. b = append(b, '0')
  325. }
  326. b = strconv.AppendInt(b, int64(t.Day()), 10)
  327. b = append(b, []byte{0x2e}...)
  328. if t.Month() < 10 {
  329. b = append(b, '0')
  330. }
  331. b = strconv.AppendInt(b, int64(t.Month()), 10)
  332. b = append(b, []byte{0x2e}...)
  333. if t.Year() > 9 {
  334. b = append(b, strconv.Itoa(t.Year())[2:]...)
  335. } else {
  336. b = append(b, strconv.Itoa(t.Year())[1:]...)
  337. }
  338. return b
  339. }
  340. // FmtDateMedium returns the medium date representation of 't' for 'lb_LU'
  341. // returned as a []byte just in case the caller wishes to add more and can help
  342. // avoid allocations; otherwise just cast as string.
  343. func (lb *lb_LU) FmtDateMedium(t time.Time) []byte {
  344. b := make([]byte, 0, 32)
  345. b = strconv.AppendInt(b, int64(t.Day()), 10)
  346. b = append(b, []byte{0x2e, 0x20}...)
  347. b = append(b, lb.monthsAbbreviated[t.Month()]...)
  348. b = append(b, []byte{0x20}...)
  349. b = strconv.AppendInt(b, int64(t.Year()), 10)
  350. return b
  351. }
  352. // FmtDateLong returns the long date representation of 't' for 'lb_LU'
  353. // returned as a []byte just in case the caller wishes to add more and can help
  354. // avoid allocations; otherwise just cast as string.
  355. func (lb *lb_LU) FmtDateLong(t time.Time) []byte {
  356. b := make([]byte, 0, 32)
  357. b = strconv.AppendInt(b, int64(t.Day()), 10)
  358. b = append(b, []byte{0x2e, 0x20}...)
  359. b = append(b, lb.monthsWide[t.Month()]...)
  360. b = append(b, []byte{0x20}...)
  361. b = strconv.AppendInt(b, int64(t.Year()), 10)
  362. return b
  363. }
  364. // FmtDateFull returns the full date representation of 't' for 'lb_LU'
  365. // returned as a []byte just in case the caller wishes to add more and can help
  366. // avoid allocations; otherwise just cast as string.
  367. func (lb *lb_LU) FmtDateFull(t time.Time) []byte {
  368. b := make([]byte, 0, 32)
  369. b = append(b, lb.daysWide[t.Weekday()]...)
  370. b = append(b, []byte{0x2c, 0x20}...)
  371. b = strconv.AppendInt(b, int64(t.Day()), 10)
  372. b = append(b, []byte{0x2e, 0x20}...)
  373. b = append(b, lb.monthsWide[t.Month()]...)
  374. b = append(b, []byte{0x20}...)
  375. b = strconv.AppendInt(b, int64(t.Year()), 10)
  376. return b
  377. }
  378. // FmtTimeShort returns the short time representation of 't' for 'lb_LU'
  379. // returned as a []byte just in case the caller wishes to add more and can help
  380. // avoid allocations; otherwise just cast as string.
  381. func (lb *lb_LU) FmtTimeShort(t time.Time) []byte {
  382. b := make([]byte, 0, 32)
  383. if t.Hour() < 10 {
  384. b = append(b, '0')
  385. }
  386. b = strconv.AppendInt(b, int64(t.Hour()), 10)
  387. b = append(b, lb.timeSeparator...)
  388. if t.Minute() < 10 {
  389. b = append(b, '0')
  390. }
  391. b = strconv.AppendInt(b, int64(t.Minute()), 10)
  392. return b
  393. }
  394. // FmtTimeMedium returns the medium time representation of 't' for 'lb_LU'
  395. // returned as a []byte just in case the caller wishes to add more and can help
  396. // avoid allocations; otherwise just cast as string.
  397. func (lb *lb_LU) FmtTimeMedium(t time.Time) []byte {
  398. b := make([]byte, 0, 32)
  399. if t.Hour() < 10 {
  400. b = append(b, '0')
  401. }
  402. b = strconv.AppendInt(b, int64(t.Hour()), 10)
  403. b = append(b, lb.timeSeparator...)
  404. if t.Minute() < 10 {
  405. b = append(b, '0')
  406. }
  407. b = strconv.AppendInt(b, int64(t.Minute()), 10)
  408. b = append(b, lb.timeSeparator...)
  409. if t.Second() < 10 {
  410. b = append(b, '0')
  411. }
  412. b = strconv.AppendInt(b, int64(t.Second()), 10)
  413. return b
  414. }
  415. // FmtTimeLong returns the long time representation of 't' for 'lb_LU'
  416. // returned as a []byte just in case the caller wishes to add more and can help
  417. // avoid allocations; otherwise just cast as string.
  418. func (lb *lb_LU) FmtTimeLong(t time.Time) []byte {
  419. b := make([]byte, 0, 32)
  420. if t.Hour() < 10 {
  421. b = append(b, '0')
  422. }
  423. b = strconv.AppendInt(b, int64(t.Hour()), 10)
  424. b = append(b, lb.timeSeparator...)
  425. if t.Minute() < 10 {
  426. b = append(b, '0')
  427. }
  428. b = strconv.AppendInt(b, int64(t.Minute()), 10)
  429. b = append(b, lb.timeSeparator...)
  430. if t.Second() < 10 {
  431. b = append(b, '0')
  432. }
  433. b = strconv.AppendInt(b, int64(t.Second()), 10)
  434. b = append(b, []byte{0x20}...)
  435. tz, _ := t.Zone()
  436. b = append(b, tz...)
  437. return b
  438. }
  439. // FmtTimeFull returns the full time representation of 't' for 'lb_LU'
  440. // returned as a []byte just in case the caller wishes to add more and can help
  441. // avoid allocations; otherwise just cast as string.
  442. func (lb *lb_LU) FmtTimeFull(t time.Time) []byte {
  443. b := make([]byte, 0, 32)
  444. if t.Hour() < 10 {
  445. b = append(b, '0')
  446. }
  447. b = strconv.AppendInt(b, int64(t.Hour()), 10)
  448. b = append(b, lb.timeSeparator...)
  449. if t.Minute() < 10 {
  450. b = append(b, '0')
  451. }
  452. b = strconv.AppendInt(b, int64(t.Minute()), 10)
  453. b = append(b, lb.timeSeparator...)
  454. if t.Second() < 10 {
  455. b = append(b, '0')
  456. }
  457. b = strconv.AppendInt(b, int64(t.Second()), 10)
  458. b = append(b, []byte{0x20}...)
  459. tz, _ := t.Zone()
  460. if btz, ok := lb.timezones[tz]; ok {
  461. b = append(b, btz...)
  462. } else {
  463. b = append(b, tz...)
  464. }
  465. return b
  466. }