xml.go 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494
  1. // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
  2. package cldr
  3. // LDMLBCP47 holds information on allowable values for various variables in LDML.
  4. type LDMLBCP47 struct {
  5. Common
  6. Version *struct {
  7. Common
  8. Number string `xml:"number,attr"`
  9. } `xml:"version"`
  10. Generation *struct {
  11. Common
  12. Date string `xml:"date,attr"`
  13. } `xml:"generation"`
  14. Keyword []*struct {
  15. Common
  16. Key []*struct {
  17. Common
  18. Extension string `xml:"extension,attr"`
  19. Name string `xml:"name,attr"`
  20. Description string `xml:"description,attr"`
  21. Deprecated string `xml:"deprecated,attr"`
  22. Preferred string `xml:"preferred,attr"`
  23. Alias string `xml:"alias,attr"`
  24. ValueType string `xml:"valueType,attr"`
  25. Since string `xml:"since,attr"`
  26. Type []*struct {
  27. Common
  28. Name string `xml:"name,attr"`
  29. Description string `xml:"description,attr"`
  30. Deprecated string `xml:"deprecated,attr"`
  31. Preferred string `xml:"preferred,attr"`
  32. Alias string `xml:"alias,attr"`
  33. Since string `xml:"since,attr"`
  34. } `xml:"type"`
  35. } `xml:"key"`
  36. } `xml:"keyword"`
  37. Attribute []*struct {
  38. Common
  39. Name string `xml:"name,attr"`
  40. Description string `xml:"description,attr"`
  41. Deprecated string `xml:"deprecated,attr"`
  42. Preferred string `xml:"preferred,attr"`
  43. Since string `xml:"since,attr"`
  44. } `xml:"attribute"`
  45. }
  46. // SupplementalData holds information relevant for internationalization
  47. // and proper use of CLDR, but that is not contained in the locale hierarchy.
  48. type SupplementalData struct {
  49. Common
  50. Version *struct {
  51. Common
  52. Number string `xml:"number,attr"`
  53. } `xml:"version"`
  54. Generation *struct {
  55. Common
  56. Date string `xml:"date,attr"`
  57. } `xml:"generation"`
  58. CurrencyData *struct {
  59. Common
  60. Fractions []*struct {
  61. Common
  62. Info []*struct {
  63. Common
  64. Iso4217 string `xml:"iso4217,attr"`
  65. Digits string `xml:"digits,attr"`
  66. Rounding string `xml:"rounding,attr"`
  67. CashDigits string `xml:"cashDigits,attr"`
  68. CashRounding string `xml:"cashRounding,attr"`
  69. } `xml:"info"`
  70. } `xml:"fractions"`
  71. Region []*struct {
  72. Common
  73. Iso3166 string `xml:"iso3166,attr"`
  74. Currency []*struct {
  75. Common
  76. Before string `xml:"before,attr"`
  77. From string `xml:"from,attr"`
  78. To string `xml:"to,attr"`
  79. Iso4217 string `xml:"iso4217,attr"`
  80. Digits string `xml:"digits,attr"`
  81. Rounding string `xml:"rounding,attr"`
  82. CashRounding string `xml:"cashRounding,attr"`
  83. Tender string `xml:"tender,attr"`
  84. Alternate []*struct {
  85. Common
  86. Iso4217 string `xml:"iso4217,attr"`
  87. } `xml:"alternate"`
  88. } `xml:"currency"`
  89. } `xml:"region"`
  90. } `xml:"currencyData"`
  91. TerritoryContainment *struct {
  92. Common
  93. Group []*struct {
  94. Common
  95. Contains string `xml:"contains,attr"`
  96. Grouping string `xml:"grouping,attr"`
  97. Status string `xml:"status,attr"`
  98. } `xml:"group"`
  99. } `xml:"territoryContainment"`
  100. SubdivisionContainment *struct {
  101. Common
  102. Subgroup []*struct {
  103. Common
  104. Subtype string `xml:"subtype,attr"`
  105. Contains string `xml:"contains,attr"`
  106. } `xml:"subgroup"`
  107. } `xml:"subdivisionContainment"`
  108. LanguageData *struct {
  109. Common
  110. Language []*struct {
  111. Common
  112. Scripts string `xml:"scripts,attr"`
  113. Territories string `xml:"territories,attr"`
  114. Variants string `xml:"variants,attr"`
  115. } `xml:"language"`
  116. } `xml:"languageData"`
  117. TerritoryInfo *struct {
  118. Common
  119. Territory []*struct {
  120. Common
  121. Gdp string `xml:"gdp,attr"`
  122. LiteracyPercent string `xml:"literacyPercent,attr"`
  123. Population string `xml:"population,attr"`
  124. LanguagePopulation []*struct {
  125. Common
  126. LiteracyPercent string `xml:"literacyPercent,attr"`
  127. WritingPercent string `xml:"writingPercent,attr"`
  128. PopulationPercent string `xml:"populationPercent,attr"`
  129. OfficialStatus string `xml:"officialStatus,attr"`
  130. } `xml:"languagePopulation"`
  131. } `xml:"territory"`
  132. } `xml:"territoryInfo"`
  133. PostalCodeData *struct {
  134. Common
  135. PostCodeRegex []*struct {
  136. Common
  137. TerritoryId string `xml:"territoryId,attr"`
  138. } `xml:"postCodeRegex"`
  139. } `xml:"postalCodeData"`
  140. CalendarData *struct {
  141. Common
  142. Calendar []*struct {
  143. Common
  144. Territories string `xml:"territories,attr"`
  145. CalendarSystem *Common `xml:"calendarSystem"`
  146. Eras *struct {
  147. Common
  148. Era []*struct {
  149. Common
  150. Start string `xml:"start,attr"`
  151. End string `xml:"end,attr"`
  152. } `xml:"era"`
  153. } `xml:"eras"`
  154. } `xml:"calendar"`
  155. } `xml:"calendarData"`
  156. CalendarPreferenceData *struct {
  157. Common
  158. CalendarPreference []*struct {
  159. Common
  160. Territories string `xml:"territories,attr"`
  161. Ordering string `xml:"ordering,attr"`
  162. } `xml:"calendarPreference"`
  163. } `xml:"calendarPreferenceData"`
  164. WeekData *struct {
  165. Common
  166. MinDays []*struct {
  167. Common
  168. Count string `xml:"count,attr"`
  169. Territories string `xml:"territories,attr"`
  170. } `xml:"minDays"`
  171. FirstDay []*struct {
  172. Common
  173. Day string `xml:"day,attr"`
  174. Territories string `xml:"territories,attr"`
  175. } `xml:"firstDay"`
  176. WeekendStart []*struct {
  177. Common
  178. Day string `xml:"day,attr"`
  179. Territories string `xml:"territories,attr"`
  180. } `xml:"weekendStart"`
  181. WeekendEnd []*struct {
  182. Common
  183. Day string `xml:"day,attr"`
  184. Territories string `xml:"territories,attr"`
  185. } `xml:"weekendEnd"`
  186. WeekOfPreference []*struct {
  187. Common
  188. Locales string `xml:"locales,attr"`
  189. Ordering string `xml:"ordering,attr"`
  190. } `xml:"weekOfPreference"`
  191. } `xml:"weekData"`
  192. TimeData *struct {
  193. Common
  194. Hours []*struct {
  195. Common
  196. Allowed string `xml:"allowed,attr"`
  197. Preferred string `xml:"preferred,attr"`
  198. Regions string `xml:"regions,attr"`
  199. } `xml:"hours"`
  200. } `xml:"timeData"`
  201. MeasurementData *struct {
  202. Common
  203. MeasurementSystem []*struct {
  204. Common
  205. Category string `xml:"category,attr"`
  206. Territories string `xml:"territories,attr"`
  207. } `xml:"measurementSystem"`
  208. PaperSize []*struct {
  209. Common
  210. Territories string `xml:"territories,attr"`
  211. } `xml:"paperSize"`
  212. } `xml:"measurementData"`
  213. UnitPreferenceData *struct {
  214. Common
  215. UnitPreferences []*struct {
  216. Common
  217. Category string `xml:"category,attr"`
  218. Usage string `xml:"usage,attr"`
  219. Scope string `xml:"scope,attr"`
  220. UnitPreference []*struct {
  221. Common
  222. Regions string `xml:"regions,attr"`
  223. } `xml:"unitPreference"`
  224. } `xml:"unitPreferences"`
  225. } `xml:"unitPreferenceData"`
  226. TimezoneData *struct {
  227. Common
  228. MapTimezones []*struct {
  229. Common
  230. OtherVersion string `xml:"otherVersion,attr"`
  231. TypeVersion string `xml:"typeVersion,attr"`
  232. MapZone []*struct {
  233. Common
  234. Other string `xml:"other,attr"`
  235. Territory string `xml:"territory,attr"`
  236. } `xml:"mapZone"`
  237. } `xml:"mapTimezones"`
  238. ZoneFormatting []*struct {
  239. Common
  240. Multizone string `xml:"multizone,attr"`
  241. TzidVersion string `xml:"tzidVersion,attr"`
  242. ZoneItem []*struct {
  243. Common
  244. Territory string `xml:"territory,attr"`
  245. Aliases string `xml:"aliases,attr"`
  246. } `xml:"zoneItem"`
  247. } `xml:"zoneFormatting"`
  248. } `xml:"timezoneData"`
  249. Characters *struct {
  250. Common
  251. CharacterFallback []*struct {
  252. Common
  253. Character []*struct {
  254. Common
  255. Value string `xml:"value,attr"`
  256. Substitute []*Common `xml:"substitute"`
  257. } `xml:"character"`
  258. } `xml:"character-fallback"`
  259. } `xml:"characters"`
  260. Transforms *struct {
  261. Common
  262. Transform []*struct {
  263. Common
  264. Source string `xml:"source,attr"`
  265. Target string `xml:"target,attr"`
  266. Variant string `xml:"variant,attr"`
  267. Direction string `xml:"direction,attr"`
  268. Alias string `xml:"alias,attr"`
  269. BackwardAlias string `xml:"backwardAlias,attr"`
  270. Visibility string `xml:"visibility,attr"`
  271. Comment []*Common `xml:"comment"`
  272. TRule []*Common `xml:"tRule"`
  273. } `xml:"transform"`
  274. } `xml:"transforms"`
  275. Metadata *struct {
  276. Common
  277. AttributeOrder *Common `xml:"attributeOrder"`
  278. ElementOrder *Common `xml:"elementOrder"`
  279. SerialElements *Common `xml:"serialElements"`
  280. Suppress *struct {
  281. Common
  282. Attributes []*struct {
  283. Common
  284. Element string `xml:"element,attr"`
  285. Attribute string `xml:"attribute,attr"`
  286. AttributeValue string `xml:"attributeValue,attr"`
  287. } `xml:"attributes"`
  288. } `xml:"suppress"`
  289. Validity *struct {
  290. Common
  291. Variable []*struct {
  292. Common
  293. Id string `xml:"id,attr"`
  294. } `xml:"variable"`
  295. AttributeValues []*struct {
  296. Common
  297. Dtds string `xml:"dtds,attr"`
  298. Elements string `xml:"elements,attr"`
  299. Attributes string `xml:"attributes,attr"`
  300. Order string `xml:"order,attr"`
  301. } `xml:"attributeValues"`
  302. } `xml:"validity"`
  303. Alias *struct {
  304. Common
  305. LanguageAlias []*struct {
  306. Common
  307. Replacement string `xml:"replacement,attr"`
  308. Reason string `xml:"reason,attr"`
  309. } `xml:"languageAlias"`
  310. ScriptAlias []*struct {
  311. Common
  312. Replacement string `xml:"replacement,attr"`
  313. Reason string `xml:"reason,attr"`
  314. } `xml:"scriptAlias"`
  315. TerritoryAlias []*struct {
  316. Common
  317. Replacement string `xml:"replacement,attr"`
  318. Reason string `xml:"reason,attr"`
  319. } `xml:"territoryAlias"`
  320. SubdivisionAlias []*struct {
  321. Common
  322. Replacement string `xml:"replacement,attr"`
  323. Reason string `xml:"reason,attr"`
  324. } `xml:"subdivisionAlias"`
  325. VariantAlias []*struct {
  326. Common
  327. Replacement string `xml:"replacement,attr"`
  328. Reason string `xml:"reason,attr"`
  329. } `xml:"variantAlias"`
  330. ZoneAlias []*struct {
  331. Common
  332. Replacement string `xml:"replacement,attr"`
  333. Reason string `xml:"reason,attr"`
  334. } `xml:"zoneAlias"`
  335. } `xml:"alias"`
  336. Deprecated *struct {
  337. Common
  338. DeprecatedItems []*struct {
  339. Common
  340. Elements string `xml:"elements,attr"`
  341. Attributes string `xml:"attributes,attr"`
  342. Values string `xml:"values,attr"`
  343. } `xml:"deprecatedItems"`
  344. } `xml:"deprecated"`
  345. Distinguishing *struct {
  346. Common
  347. DistinguishingItems []*struct {
  348. Common
  349. Exclude string `xml:"exclude,attr"`
  350. Elements string `xml:"elements,attr"`
  351. Attributes string `xml:"attributes,attr"`
  352. } `xml:"distinguishingItems"`
  353. } `xml:"distinguishing"`
  354. Blocking *struct {
  355. Common
  356. BlockingItems []*struct {
  357. Common
  358. Elements string `xml:"elements,attr"`
  359. } `xml:"blockingItems"`
  360. } `xml:"blocking"`
  361. CoverageAdditions *struct {
  362. Common
  363. LanguageCoverage []*struct {
  364. Common
  365. Values string `xml:"values,attr"`
  366. } `xml:"languageCoverage"`
  367. ScriptCoverage []*struct {
  368. Common
  369. Values string `xml:"values,attr"`
  370. } `xml:"scriptCoverage"`
  371. TerritoryCoverage []*struct {
  372. Common
  373. Values string `xml:"values,attr"`
  374. } `xml:"territoryCoverage"`
  375. CurrencyCoverage []*struct {
  376. Common
  377. Values string `xml:"values,attr"`
  378. } `xml:"currencyCoverage"`
  379. TimezoneCoverage []*struct {
  380. Common
  381. Values string `xml:"values,attr"`
  382. } `xml:"timezoneCoverage"`
  383. } `xml:"coverageAdditions"`
  384. SkipDefaultLocale *struct {
  385. Common
  386. Services string `xml:"services,attr"`
  387. } `xml:"skipDefaultLocale"`
  388. DefaultContent *struct {
  389. Common
  390. Locales string `xml:"locales,attr"`
  391. } `xml:"defaultContent"`
  392. } `xml:"metadata"`
  393. CodeMappings *struct {
  394. Common
  395. LanguageCodes []*struct {
  396. Common
  397. Alpha3 string `xml:"alpha3,attr"`
  398. } `xml:"languageCodes"`
  399. TerritoryCodes []*struct {
  400. Common
  401. Numeric string `xml:"numeric,attr"`
  402. Alpha3 string `xml:"alpha3,attr"`
  403. Fips10 string `xml:"fips10,attr"`
  404. Internet string `xml:"internet,attr"`
  405. } `xml:"territoryCodes"`
  406. CurrencyCodes []*struct {
  407. Common
  408. Numeric string `xml:"numeric,attr"`
  409. } `xml:"currencyCodes"`
  410. } `xml:"codeMappings"`
  411. ParentLocales *struct {
  412. Common
  413. ParentLocale []*struct {
  414. Common
  415. Parent string `xml:"parent,attr"`
  416. Locales string `xml:"locales,attr"`
  417. } `xml:"parentLocale"`
  418. } `xml:"parentLocales"`
  419. LikelySubtags *struct {
  420. Common
  421. LikelySubtag []*struct {
  422. Common
  423. From string `xml:"from,attr"`
  424. To string `xml:"to,attr"`
  425. } `xml:"likelySubtag"`
  426. } `xml:"likelySubtags"`
  427. MetazoneInfo *struct {
  428. Common
  429. Timezone []*struct {
  430. Common
  431. UsesMetazone []*struct {
  432. Common
  433. From string `xml:"from,attr"`
  434. To string `xml:"to,attr"`
  435. Mzone string `xml:"mzone,attr"`
  436. } `xml:"usesMetazone"`
  437. } `xml:"timezone"`
  438. } `xml:"metazoneInfo"`
  439. Plurals []*struct {
  440. Common
  441. PluralRules []*struct {
  442. Common
  443. Locales string `xml:"locales,attr"`
  444. PluralRule []*struct {
  445. Common
  446. Count string `xml:"count,attr"`
  447. } `xml:"pluralRule"`
  448. } `xml:"pluralRules"`
  449. PluralRanges []*struct {
  450. Common
  451. Locales string `xml:"locales,attr"`
  452. PluralRange []*struct {
  453. Common
  454. Start string `xml:"start,attr"`
  455. End string `xml:"end,attr"`
  456. Result string `xml:"result,attr"`
  457. } `xml:"pluralRange"`
  458. } `xml:"pluralRanges"`
  459. } `xml:"plurals"`
  460. TelephoneCodeData *struct {
  461. Common
  462. CodesByTerritory []*struct {
  463. Common
  464. Territory string `xml:"territory,attr"`
  465. TelephoneCountryCode []*struct {
  466. Common
  467. Code string `xml:"code,attr"`
  468. From string `xml:"from,attr"`
  469. To string `xml:"to,attr"`
  470. } `xml:"telephoneCountryCode"`
  471. } `xml:"codesByTerritory"`
  472. } `xml:"telephoneCodeData"`
  473. NumberingSystems *struct {
  474. Common
  475. NumberingSystem []*struct {
  476. Common
  477. Id string `xml:"id,attr"`
  478. Radix string `xml:"radix,attr"`
  479. Digits string `xml:"digits,attr"`
  480. Rules string `xml:"rules,attr"`
  481. } `xml:"numberingSystem"`
  482. } `xml:"numberingSystems"`
  483. Bcp47KeywordMappings *struct {
  484. Common
  485. MapKeys *struct {
  486. Common
  487. KeyMap []*struct {
  488. Common
  489. Bcp47 string `xml:"bcp47,attr"`
  490. } `xml:"keyMap"`
  491. } `xml:"mapKeys"`
  492. MapTypes []*struct {
  493. Common
  494. TypeMap []*struct {
  495. Common
  496. Bcp47 string `xml:"bcp47,attr"`
  497. } `xml:"typeMap"`
  498. } `xml:"mapTypes"`
  499. } `xml:"bcp47KeywordMappings"`
  500. Gender *struct {
  501. Common
  502. PersonList []*struct {
  503. Common
  504. Locales string `xml:"locales,attr"`
  505. } `xml:"personList"`
  506. } `xml:"gender"`
  507. References *struct {
  508. Common
  509. Reference []*struct {
  510. Common
  511. Uri string `xml:"uri,attr"`
  512. } `xml:"reference"`
  513. } `xml:"references"`
  514. LanguageMatching *struct {
  515. Common
  516. LanguageMatches []*struct {
  517. Common
  518. ParadigmLocales []*struct {
  519. Common
  520. Locales string `xml:"locales,attr"`
  521. } `xml:"paradigmLocales"`
  522. MatchVariable []*struct {
  523. Common
  524. Id string `xml:"id,attr"`
  525. Value string `xml:"value,attr"`
  526. } `xml:"matchVariable"`
  527. LanguageMatch []*struct {
  528. Common
  529. Desired string `xml:"desired,attr"`
  530. Supported string `xml:"supported,attr"`
  531. Percent string `xml:"percent,attr"`
  532. Distance string `xml:"distance,attr"`
  533. Oneway string `xml:"oneway,attr"`
  534. } `xml:"languageMatch"`
  535. } `xml:"languageMatches"`
  536. } `xml:"languageMatching"`
  537. DayPeriodRuleSet []*struct {
  538. Common
  539. DayPeriodRules []*struct {
  540. Common
  541. Locales string `xml:"locales,attr"`
  542. DayPeriodRule []*struct {
  543. Common
  544. At string `xml:"at,attr"`
  545. After string `xml:"after,attr"`
  546. Before string `xml:"before,attr"`
  547. From string `xml:"from,attr"`
  548. To string `xml:"to,attr"`
  549. } `xml:"dayPeriodRule"`
  550. } `xml:"dayPeriodRules"`
  551. } `xml:"dayPeriodRuleSet"`
  552. MetaZones *struct {
  553. Common
  554. MetazoneInfo *struct {
  555. Common
  556. Timezone []*struct {
  557. Common
  558. UsesMetazone []*struct {
  559. Common
  560. From string `xml:"from,attr"`
  561. To string `xml:"to,attr"`
  562. Mzone string `xml:"mzone,attr"`
  563. } `xml:"usesMetazone"`
  564. } `xml:"timezone"`
  565. } `xml:"metazoneInfo"`
  566. MapTimezones *struct {
  567. Common
  568. OtherVersion string `xml:"otherVersion,attr"`
  569. TypeVersion string `xml:"typeVersion,attr"`
  570. MapZone []*struct {
  571. Common
  572. Other string `xml:"other,attr"`
  573. Territory string `xml:"territory,attr"`
  574. } `xml:"mapZone"`
  575. } `xml:"mapTimezones"`
  576. } `xml:"metaZones"`
  577. PrimaryZones *struct {
  578. Common
  579. PrimaryZone []*struct {
  580. Common
  581. Iso3166 string `xml:"iso3166,attr"`
  582. } `xml:"primaryZone"`
  583. } `xml:"primaryZones"`
  584. WindowsZones *struct {
  585. Common
  586. MapTimezones *struct {
  587. Common
  588. OtherVersion string `xml:"otherVersion,attr"`
  589. TypeVersion string `xml:"typeVersion,attr"`
  590. MapZone []*struct {
  591. Common
  592. Other string `xml:"other,attr"`
  593. Territory string `xml:"territory,attr"`
  594. } `xml:"mapZone"`
  595. } `xml:"mapTimezones"`
  596. } `xml:"windowsZones"`
  597. CoverageLevels *struct {
  598. Common
  599. ApprovalRequirements *struct {
  600. Common
  601. ApprovalRequirement []*struct {
  602. Common
  603. Votes string `xml:"votes,attr"`
  604. Locales string `xml:"locales,attr"`
  605. Paths string `xml:"paths,attr"`
  606. } `xml:"approvalRequirement"`
  607. } `xml:"approvalRequirements"`
  608. CoverageVariable []*struct {
  609. Common
  610. Key string `xml:"key,attr"`
  611. Value string `xml:"value,attr"`
  612. } `xml:"coverageVariable"`
  613. CoverageLevel []*struct {
  614. Common
  615. InLanguage string `xml:"inLanguage,attr"`
  616. InScript string `xml:"inScript,attr"`
  617. InTerritory string `xml:"inTerritory,attr"`
  618. Value string `xml:"value,attr"`
  619. Match string `xml:"match,attr"`
  620. } `xml:"coverageLevel"`
  621. } `xml:"coverageLevels"`
  622. IdValidity *struct {
  623. Common
  624. Id []*struct {
  625. Common
  626. IdStatus string `xml:"idStatus,attr"`
  627. } `xml:"id"`
  628. } `xml:"idValidity"`
  629. RgScope *struct {
  630. Common
  631. RgPath []*struct {
  632. Common
  633. Path string `xml:"path,attr"`
  634. } `xml:"rgPath"`
  635. } `xml:"rgScope"`
  636. LanguageGroups *struct {
  637. Common
  638. LanguageGroup []*struct {
  639. Common
  640. Parent string `xml:"parent,attr"`
  641. } `xml:"languageGroup"`
  642. } `xml:"languageGroups"`
  643. }
  644. // LDML is the top-level type for locale-specific data.
  645. type LDML struct {
  646. Common
  647. Version string `xml:"version,attr"`
  648. Identity *struct {
  649. Common
  650. Version *struct {
  651. Common
  652. Number string `xml:"number,attr"`
  653. } `xml:"version"`
  654. Generation *struct {
  655. Common
  656. Date string `xml:"date,attr"`
  657. } `xml:"generation"`
  658. Language *Common `xml:"language"`
  659. Script *Common `xml:"script"`
  660. Territory *Common `xml:"territory"`
  661. Variant *Common `xml:"variant"`
  662. } `xml:"identity"`
  663. LocaleDisplayNames *LocaleDisplayNames `xml:"localeDisplayNames"`
  664. Layout *struct {
  665. Common
  666. Orientation []*struct {
  667. Common
  668. Characters string `xml:"characters,attr"`
  669. Lines string `xml:"lines,attr"`
  670. CharacterOrder []*Common `xml:"characterOrder"`
  671. LineOrder []*Common `xml:"lineOrder"`
  672. } `xml:"orientation"`
  673. InList []*struct {
  674. Common
  675. Casing string `xml:"casing,attr"`
  676. } `xml:"inList"`
  677. InText []*Common `xml:"inText"`
  678. } `xml:"layout"`
  679. ContextTransforms *struct {
  680. Common
  681. ContextTransformUsage []*struct {
  682. Common
  683. ContextTransform []*Common `xml:"contextTransform"`
  684. } `xml:"contextTransformUsage"`
  685. } `xml:"contextTransforms"`
  686. Characters *struct {
  687. Common
  688. ExemplarCharacters []*Common `xml:"exemplarCharacters"`
  689. Ellipsis []*Common `xml:"ellipsis"`
  690. MoreInformation []*Common `xml:"moreInformation"`
  691. Stopwords []*struct {
  692. Common
  693. StopwordList []*Common `xml:"stopwordList"`
  694. } `xml:"stopwords"`
  695. IndexLabels []*struct {
  696. Common
  697. IndexSeparator []*Common `xml:"indexSeparator"`
  698. CompressedIndexSeparator []*Common `xml:"compressedIndexSeparator"`
  699. IndexRangePattern []*Common `xml:"indexRangePattern"`
  700. IndexLabelBefore []*Common `xml:"indexLabelBefore"`
  701. IndexLabelAfter []*Common `xml:"indexLabelAfter"`
  702. IndexLabel []*struct {
  703. Common
  704. IndexSource string `xml:"indexSource,attr"`
  705. Priority string `xml:"priority,attr"`
  706. } `xml:"indexLabel"`
  707. } `xml:"indexLabels"`
  708. Mapping []*struct {
  709. Common
  710. Registry string `xml:"registry,attr"`
  711. } `xml:"mapping"`
  712. ParseLenients []*struct {
  713. Common
  714. Scope string `xml:"scope,attr"`
  715. Level string `xml:"level,attr"`
  716. ParseLenient []*struct {
  717. Common
  718. Sample string `xml:"sample,attr"`
  719. } `xml:"parseLenient"`
  720. } `xml:"parseLenients"`
  721. } `xml:"characters"`
  722. Delimiters *struct {
  723. Common
  724. QuotationStart []*Common `xml:"quotationStart"`
  725. QuotationEnd []*Common `xml:"quotationEnd"`
  726. AlternateQuotationStart []*Common `xml:"alternateQuotationStart"`
  727. AlternateQuotationEnd []*Common `xml:"alternateQuotationEnd"`
  728. } `xml:"delimiters"`
  729. Measurement *struct {
  730. Common
  731. MeasurementSystem []*Common `xml:"measurementSystem"`
  732. PaperSize []*struct {
  733. Common
  734. Height []*Common `xml:"height"`
  735. Width []*Common `xml:"width"`
  736. } `xml:"paperSize"`
  737. } `xml:"measurement"`
  738. Dates *struct {
  739. Common
  740. LocalizedPatternChars []*Common `xml:"localizedPatternChars"`
  741. DateRangePattern []*Common `xml:"dateRangePattern"`
  742. Calendars *struct {
  743. Common
  744. Calendar []*Calendar `xml:"calendar"`
  745. } `xml:"calendars"`
  746. Fields *struct {
  747. Common
  748. Field []*struct {
  749. Common
  750. DisplayName []*struct {
  751. Common
  752. Count string `xml:"count,attr"`
  753. } `xml:"displayName"`
  754. Relative []*Common `xml:"relative"`
  755. RelativeTime []*struct {
  756. Common
  757. RelativeTimePattern []*struct {
  758. Common
  759. Count string `xml:"count,attr"`
  760. } `xml:"relativeTimePattern"`
  761. } `xml:"relativeTime"`
  762. RelativePeriod []*Common `xml:"relativePeriod"`
  763. } `xml:"field"`
  764. } `xml:"fields"`
  765. TimeZoneNames *TimeZoneNames `xml:"timeZoneNames"`
  766. } `xml:"dates"`
  767. Numbers *Numbers `xml:"numbers"`
  768. Units *struct {
  769. Common
  770. Unit []*struct {
  771. Common
  772. DisplayName []*struct {
  773. Common
  774. Count string `xml:"count,attr"`
  775. } `xml:"displayName"`
  776. UnitPattern []*struct {
  777. Common
  778. Count string `xml:"count,attr"`
  779. } `xml:"unitPattern"`
  780. PerUnitPattern []*Common `xml:"perUnitPattern"`
  781. } `xml:"unit"`
  782. UnitLength []*struct {
  783. Common
  784. CompoundUnit []*struct {
  785. Common
  786. CompoundUnitPattern []*Common `xml:"compoundUnitPattern"`
  787. } `xml:"compoundUnit"`
  788. Unit []*struct {
  789. Common
  790. DisplayName []*struct {
  791. Common
  792. Count string `xml:"count,attr"`
  793. } `xml:"displayName"`
  794. UnitPattern []*struct {
  795. Common
  796. Count string `xml:"count,attr"`
  797. } `xml:"unitPattern"`
  798. PerUnitPattern []*Common `xml:"perUnitPattern"`
  799. } `xml:"unit"`
  800. CoordinateUnit []*struct {
  801. Common
  802. CoordinateUnitPattern []*Common `xml:"coordinateUnitPattern"`
  803. } `xml:"coordinateUnit"`
  804. } `xml:"unitLength"`
  805. DurationUnit []*struct {
  806. Common
  807. DurationUnitPattern []*Common `xml:"durationUnitPattern"`
  808. } `xml:"durationUnit"`
  809. } `xml:"units"`
  810. ListPatterns *struct {
  811. Common
  812. ListPattern []*struct {
  813. Common
  814. ListPatternPart []*Common `xml:"listPatternPart"`
  815. } `xml:"listPattern"`
  816. } `xml:"listPatterns"`
  817. Collations *struct {
  818. Common
  819. Version string `xml:"version,attr"`
  820. DefaultCollation *Common `xml:"defaultCollation"`
  821. Collation []*Collation `xml:"collation"`
  822. } `xml:"collations"`
  823. Posix *struct {
  824. Common
  825. Messages []*struct {
  826. Common
  827. Yesstr []*Common `xml:"yesstr"`
  828. Nostr []*Common `xml:"nostr"`
  829. Yesexpr []*Common `xml:"yesexpr"`
  830. Noexpr []*Common `xml:"noexpr"`
  831. } `xml:"messages"`
  832. } `xml:"posix"`
  833. CharacterLabels *struct {
  834. Common
  835. CharacterLabelPattern []*struct {
  836. Common
  837. Count string `xml:"count,attr"`
  838. } `xml:"characterLabelPattern"`
  839. CharacterLabel []*Common `xml:"characterLabel"`
  840. } `xml:"characterLabels"`
  841. Segmentations *struct {
  842. Common
  843. Segmentation []*struct {
  844. Common
  845. Variables *struct {
  846. Common
  847. Variable []*struct {
  848. Common
  849. Id string `xml:"id,attr"`
  850. } `xml:"variable"`
  851. } `xml:"variables"`
  852. SegmentRules *struct {
  853. Common
  854. Rule []*struct {
  855. Common
  856. Id string `xml:"id,attr"`
  857. } `xml:"rule"`
  858. } `xml:"segmentRules"`
  859. Exceptions *struct {
  860. Common
  861. Exception []*Common `xml:"exception"`
  862. } `xml:"exceptions"`
  863. Suppressions *struct {
  864. Common
  865. Suppression []*Common `xml:"suppression"`
  866. } `xml:"suppressions"`
  867. } `xml:"segmentation"`
  868. } `xml:"segmentations"`
  869. Rbnf *struct {
  870. Common
  871. RulesetGrouping []*struct {
  872. Common
  873. Ruleset []*struct {
  874. Common
  875. Access string `xml:"access,attr"`
  876. AllowsParsing string `xml:"allowsParsing,attr"`
  877. Rbnfrule []*struct {
  878. Common
  879. Value string `xml:"value,attr"`
  880. Radix string `xml:"radix,attr"`
  881. Decexp string `xml:"decexp,attr"`
  882. } `xml:"rbnfrule"`
  883. } `xml:"ruleset"`
  884. } `xml:"rulesetGrouping"`
  885. } `xml:"rbnf"`
  886. Annotations *struct {
  887. Common
  888. Annotation []*struct {
  889. Common
  890. Cp string `xml:"cp,attr"`
  891. Tts string `xml:"tts,attr"`
  892. } `xml:"annotation"`
  893. } `xml:"annotations"`
  894. Metadata *struct {
  895. Common
  896. CasingData *struct {
  897. Common
  898. CasingItem []*struct {
  899. Common
  900. Override string `xml:"override,attr"`
  901. ForceError string `xml:"forceError,attr"`
  902. } `xml:"casingItem"`
  903. } `xml:"casingData"`
  904. } `xml:"metadata"`
  905. References *struct {
  906. Common
  907. Reference []*struct {
  908. Common
  909. Uri string `xml:"uri,attr"`
  910. } `xml:"reference"`
  911. } `xml:"references"`
  912. }
  913. // Collation contains rules that specify a certain sort-order,
  914. // as a tailoring of the root order.
  915. // The parsed rules are obtained by passing a RuleProcessor to Collation's
  916. // Process method.
  917. type Collation struct {
  918. Common
  919. Visibility string `xml:"visibility,attr"`
  920. Base *Common `xml:"base"`
  921. Import []*struct {
  922. Common
  923. Source string `xml:"source,attr"`
  924. } `xml:"import"`
  925. Settings *struct {
  926. Common
  927. Strength string `xml:"strength,attr"`
  928. Alternate string `xml:"alternate,attr"`
  929. Backwards string `xml:"backwards,attr"`
  930. Normalization string `xml:"normalization,attr"`
  931. CaseLevel string `xml:"caseLevel,attr"`
  932. CaseFirst string `xml:"caseFirst,attr"`
  933. HiraganaQuaternary string `xml:"hiraganaQuaternary,attr"`
  934. MaxVariable string `xml:"maxVariable,attr"`
  935. Numeric string `xml:"numeric,attr"`
  936. Private string `xml:"private,attr"`
  937. VariableTop string `xml:"variableTop,attr"`
  938. Reorder string `xml:"reorder,attr"`
  939. } `xml:"settings"`
  940. SuppressContractions *Common `xml:"suppress_contractions"`
  941. Optimize *Common `xml:"optimize"`
  942. Cr []*Common `xml:"cr"`
  943. rulesElem
  944. }
  945. // Calendar specifies the fields used for formatting and parsing dates and times.
  946. // The month and quarter names are identified numerically, starting at 1.
  947. // The day (of the week) names are identified with short strings, since there is
  948. // no universally-accepted numeric designation.
  949. type Calendar struct {
  950. Common
  951. Months *struct {
  952. Common
  953. MonthContext []*struct {
  954. Common
  955. MonthWidth []*struct {
  956. Common
  957. Month []*struct {
  958. Common
  959. Yeartype string `xml:"yeartype,attr"`
  960. } `xml:"month"`
  961. } `xml:"monthWidth"`
  962. } `xml:"monthContext"`
  963. } `xml:"months"`
  964. MonthNames *struct {
  965. Common
  966. Month []*struct {
  967. Common
  968. Yeartype string `xml:"yeartype,attr"`
  969. } `xml:"month"`
  970. } `xml:"monthNames"`
  971. MonthAbbr *struct {
  972. Common
  973. Month []*struct {
  974. Common
  975. Yeartype string `xml:"yeartype,attr"`
  976. } `xml:"month"`
  977. } `xml:"monthAbbr"`
  978. MonthPatterns *struct {
  979. Common
  980. MonthPatternContext []*struct {
  981. Common
  982. MonthPatternWidth []*struct {
  983. Common
  984. MonthPattern []*Common `xml:"monthPattern"`
  985. } `xml:"monthPatternWidth"`
  986. } `xml:"monthPatternContext"`
  987. } `xml:"monthPatterns"`
  988. Days *struct {
  989. Common
  990. DayContext []*struct {
  991. Common
  992. DayWidth []*struct {
  993. Common
  994. Day []*Common `xml:"day"`
  995. } `xml:"dayWidth"`
  996. } `xml:"dayContext"`
  997. } `xml:"days"`
  998. DayNames *struct {
  999. Common
  1000. Day []*Common `xml:"day"`
  1001. } `xml:"dayNames"`
  1002. DayAbbr *struct {
  1003. Common
  1004. Day []*Common `xml:"day"`
  1005. } `xml:"dayAbbr"`
  1006. Quarters *struct {
  1007. Common
  1008. QuarterContext []*struct {
  1009. Common
  1010. QuarterWidth []*struct {
  1011. Common
  1012. Quarter []*Common `xml:"quarter"`
  1013. } `xml:"quarterWidth"`
  1014. } `xml:"quarterContext"`
  1015. } `xml:"quarters"`
  1016. Week *struct {
  1017. Common
  1018. MinDays []*struct {
  1019. Common
  1020. Count string `xml:"count,attr"`
  1021. } `xml:"minDays"`
  1022. FirstDay []*struct {
  1023. Common
  1024. Day string `xml:"day,attr"`
  1025. } `xml:"firstDay"`
  1026. WeekendStart []*struct {
  1027. Common
  1028. Day string `xml:"day,attr"`
  1029. Time string `xml:"time,attr"`
  1030. } `xml:"weekendStart"`
  1031. WeekendEnd []*struct {
  1032. Common
  1033. Day string `xml:"day,attr"`
  1034. Time string `xml:"time,attr"`
  1035. } `xml:"weekendEnd"`
  1036. } `xml:"week"`
  1037. Am []*Common `xml:"am"`
  1038. Pm []*Common `xml:"pm"`
  1039. DayPeriods *struct {
  1040. Common
  1041. DayPeriodContext []*struct {
  1042. Common
  1043. DayPeriodWidth []*struct {
  1044. Common
  1045. DayPeriod []*Common `xml:"dayPeriod"`
  1046. } `xml:"dayPeriodWidth"`
  1047. } `xml:"dayPeriodContext"`
  1048. } `xml:"dayPeriods"`
  1049. Eras *struct {
  1050. Common
  1051. EraNames *struct {
  1052. Common
  1053. Era []*Common `xml:"era"`
  1054. } `xml:"eraNames"`
  1055. EraAbbr *struct {
  1056. Common
  1057. Era []*Common `xml:"era"`
  1058. } `xml:"eraAbbr"`
  1059. EraNarrow *struct {
  1060. Common
  1061. Era []*Common `xml:"era"`
  1062. } `xml:"eraNarrow"`
  1063. } `xml:"eras"`
  1064. CyclicNameSets *struct {
  1065. Common
  1066. CyclicNameSet []*struct {
  1067. Common
  1068. CyclicNameContext []*struct {
  1069. Common
  1070. CyclicNameWidth []*struct {
  1071. Common
  1072. CyclicName []*Common `xml:"cyclicName"`
  1073. } `xml:"cyclicNameWidth"`
  1074. } `xml:"cyclicNameContext"`
  1075. } `xml:"cyclicNameSet"`
  1076. } `xml:"cyclicNameSets"`
  1077. DateFormats *struct {
  1078. Common
  1079. DateFormatLength []*struct {
  1080. Common
  1081. DateFormat []*struct {
  1082. Common
  1083. Pattern []*struct {
  1084. Common
  1085. Numbers string `xml:"numbers,attr"`
  1086. Count string `xml:"count,attr"`
  1087. } `xml:"pattern"`
  1088. DisplayName []*struct {
  1089. Common
  1090. Count string `xml:"count,attr"`
  1091. } `xml:"displayName"`
  1092. } `xml:"dateFormat"`
  1093. } `xml:"dateFormatLength"`
  1094. } `xml:"dateFormats"`
  1095. TimeFormats *struct {
  1096. Common
  1097. TimeFormatLength []*struct {
  1098. Common
  1099. TimeFormat []*struct {
  1100. Common
  1101. Pattern []*struct {
  1102. Common
  1103. Numbers string `xml:"numbers,attr"`
  1104. Count string `xml:"count,attr"`
  1105. } `xml:"pattern"`
  1106. DisplayName []*struct {
  1107. Common
  1108. Count string `xml:"count,attr"`
  1109. } `xml:"displayName"`
  1110. } `xml:"timeFormat"`
  1111. } `xml:"timeFormatLength"`
  1112. } `xml:"timeFormats"`
  1113. DateTimeFormats *struct {
  1114. Common
  1115. DateTimeFormatLength []*struct {
  1116. Common
  1117. DateTimeFormat []*struct {
  1118. Common
  1119. Pattern []*struct {
  1120. Common
  1121. Numbers string `xml:"numbers,attr"`
  1122. Count string `xml:"count,attr"`
  1123. } `xml:"pattern"`
  1124. DisplayName []*struct {
  1125. Common
  1126. Count string `xml:"count,attr"`
  1127. } `xml:"displayName"`
  1128. } `xml:"dateTimeFormat"`
  1129. } `xml:"dateTimeFormatLength"`
  1130. AvailableFormats []*struct {
  1131. Common
  1132. DateFormatItem []*struct {
  1133. Common
  1134. Id string `xml:"id,attr"`
  1135. Count string `xml:"count,attr"`
  1136. } `xml:"dateFormatItem"`
  1137. } `xml:"availableFormats"`
  1138. AppendItems []*struct {
  1139. Common
  1140. AppendItem []*struct {
  1141. Common
  1142. Request string `xml:"request,attr"`
  1143. } `xml:"appendItem"`
  1144. } `xml:"appendItems"`
  1145. IntervalFormats []*struct {
  1146. Common
  1147. IntervalFormatFallback []*Common `xml:"intervalFormatFallback"`
  1148. IntervalFormatItem []*struct {
  1149. Common
  1150. Id string `xml:"id,attr"`
  1151. GreatestDifference []*struct {
  1152. Common
  1153. Id string `xml:"id,attr"`
  1154. } `xml:"greatestDifference"`
  1155. } `xml:"intervalFormatItem"`
  1156. } `xml:"intervalFormats"`
  1157. } `xml:"dateTimeFormats"`
  1158. Fields []*struct {
  1159. Common
  1160. Field []*struct {
  1161. Common
  1162. DisplayName []*struct {
  1163. Common
  1164. Count string `xml:"count,attr"`
  1165. } `xml:"displayName"`
  1166. Relative []*Common `xml:"relative"`
  1167. RelativeTime []*struct {
  1168. Common
  1169. RelativeTimePattern []*struct {
  1170. Common
  1171. Count string `xml:"count,attr"`
  1172. } `xml:"relativeTimePattern"`
  1173. } `xml:"relativeTime"`
  1174. RelativePeriod []*Common `xml:"relativePeriod"`
  1175. } `xml:"field"`
  1176. } `xml:"fields"`
  1177. }
  1178. type TimeZoneNames struct {
  1179. Common
  1180. HourFormat []*Common `xml:"hourFormat"`
  1181. HoursFormat []*Common `xml:"hoursFormat"`
  1182. GmtFormat []*Common `xml:"gmtFormat"`
  1183. GmtZeroFormat []*Common `xml:"gmtZeroFormat"`
  1184. RegionFormat []*Common `xml:"regionFormat"`
  1185. FallbackFormat []*Common `xml:"fallbackFormat"`
  1186. FallbackRegionFormat []*Common `xml:"fallbackRegionFormat"`
  1187. AbbreviationFallback []*Common `xml:"abbreviationFallback"`
  1188. PreferenceOrdering []*Common `xml:"preferenceOrdering"`
  1189. SingleCountries []*struct {
  1190. Common
  1191. List string `xml:"list,attr"`
  1192. } `xml:"singleCountries"`
  1193. Zone []*struct {
  1194. Common
  1195. Long []*struct {
  1196. Common
  1197. Generic []*Common `xml:"generic"`
  1198. Standard []*Common `xml:"standard"`
  1199. Daylight []*Common `xml:"daylight"`
  1200. } `xml:"long"`
  1201. Short []*struct {
  1202. Common
  1203. Generic []*Common `xml:"generic"`
  1204. Standard []*Common `xml:"standard"`
  1205. Daylight []*Common `xml:"daylight"`
  1206. } `xml:"short"`
  1207. CommonlyUsed []*struct {
  1208. Common
  1209. Used string `xml:"used,attr"`
  1210. } `xml:"commonlyUsed"`
  1211. ExemplarCity []*Common `xml:"exemplarCity"`
  1212. } `xml:"zone"`
  1213. Metazone []*struct {
  1214. Common
  1215. Long []*struct {
  1216. Common
  1217. Generic []*Common `xml:"generic"`
  1218. Standard []*Common `xml:"standard"`
  1219. Daylight []*Common `xml:"daylight"`
  1220. } `xml:"long"`
  1221. Short []*struct {
  1222. Common
  1223. Generic []*Common `xml:"generic"`
  1224. Standard []*Common `xml:"standard"`
  1225. Daylight []*Common `xml:"daylight"`
  1226. } `xml:"short"`
  1227. CommonlyUsed []*struct {
  1228. Common
  1229. Used string `xml:"used,attr"`
  1230. } `xml:"commonlyUsed"`
  1231. } `xml:"metazone"`
  1232. }
  1233. // LocaleDisplayNames specifies localized display names for scripts, languages,
  1234. // countries, currencies, and variants.
  1235. type LocaleDisplayNames struct {
  1236. Common
  1237. LocaleDisplayPattern *struct {
  1238. Common
  1239. LocalePattern []*Common `xml:"localePattern"`
  1240. LocaleSeparator []*Common `xml:"localeSeparator"`
  1241. LocaleKeyTypePattern []*Common `xml:"localeKeyTypePattern"`
  1242. } `xml:"localeDisplayPattern"`
  1243. Languages *struct {
  1244. Common
  1245. Language []*Common `xml:"language"`
  1246. } `xml:"languages"`
  1247. Scripts *struct {
  1248. Common
  1249. Script []*Common `xml:"script"`
  1250. } `xml:"scripts"`
  1251. Territories *struct {
  1252. Common
  1253. Territory []*Common `xml:"territory"`
  1254. } `xml:"territories"`
  1255. Subdivisions *struct {
  1256. Common
  1257. Subdivision []*Common `xml:"subdivision"`
  1258. } `xml:"subdivisions"`
  1259. Variants *struct {
  1260. Common
  1261. Variant []*Common `xml:"variant"`
  1262. } `xml:"variants"`
  1263. Keys *struct {
  1264. Common
  1265. Key []*Common `xml:"key"`
  1266. } `xml:"keys"`
  1267. Types *struct {
  1268. Common
  1269. Type []*struct {
  1270. Common
  1271. Key string `xml:"key,attr"`
  1272. } `xml:"type"`
  1273. } `xml:"types"`
  1274. TransformNames *struct {
  1275. Common
  1276. TransformName []*Common `xml:"transformName"`
  1277. } `xml:"transformNames"`
  1278. MeasurementSystemNames *struct {
  1279. Common
  1280. MeasurementSystemName []*Common `xml:"measurementSystemName"`
  1281. } `xml:"measurementSystemNames"`
  1282. CodePatterns *struct {
  1283. Common
  1284. CodePattern []*Common `xml:"codePattern"`
  1285. } `xml:"codePatterns"`
  1286. }
  1287. // Numbers supplies information for formatting and parsing numbers and currencies.
  1288. type Numbers struct {
  1289. Common
  1290. DefaultNumberingSystem []*Common `xml:"defaultNumberingSystem"`
  1291. OtherNumberingSystems []*struct {
  1292. Common
  1293. Native []*Common `xml:"native"`
  1294. Traditional []*Common `xml:"traditional"`
  1295. Finance []*Common `xml:"finance"`
  1296. } `xml:"otherNumberingSystems"`
  1297. MinimumGroupingDigits []*Common `xml:"minimumGroupingDigits"`
  1298. Symbols []*struct {
  1299. Common
  1300. NumberSystem string `xml:"numberSystem,attr"`
  1301. Decimal []*struct {
  1302. Common
  1303. NumberSystem string `xml:"numberSystem,attr"`
  1304. } `xml:"decimal"`
  1305. Group []*struct {
  1306. Common
  1307. NumberSystem string `xml:"numberSystem,attr"`
  1308. } `xml:"group"`
  1309. List []*struct {
  1310. Common
  1311. NumberSystem string `xml:"numberSystem,attr"`
  1312. } `xml:"list"`
  1313. PercentSign []*struct {
  1314. Common
  1315. NumberSystem string `xml:"numberSystem,attr"`
  1316. } `xml:"percentSign"`
  1317. NativeZeroDigit []*struct {
  1318. Common
  1319. NumberSystem string `xml:"numberSystem,attr"`
  1320. } `xml:"nativeZeroDigit"`
  1321. PatternDigit []*struct {
  1322. Common
  1323. NumberSystem string `xml:"numberSystem,attr"`
  1324. } `xml:"patternDigit"`
  1325. PlusSign []*struct {
  1326. Common
  1327. NumberSystem string `xml:"numberSystem,attr"`
  1328. } `xml:"plusSign"`
  1329. MinusSign []*struct {
  1330. Common
  1331. NumberSystem string `xml:"numberSystem,attr"`
  1332. } `xml:"minusSign"`
  1333. Exponential []*struct {
  1334. Common
  1335. NumberSystem string `xml:"numberSystem,attr"`
  1336. } `xml:"exponential"`
  1337. SuperscriptingExponent []*Common `xml:"superscriptingExponent"`
  1338. PerMille []*struct {
  1339. Common
  1340. NumberSystem string `xml:"numberSystem,attr"`
  1341. } `xml:"perMille"`
  1342. Infinity []*struct {
  1343. Common
  1344. NumberSystem string `xml:"numberSystem,attr"`
  1345. } `xml:"infinity"`
  1346. Nan []*struct {
  1347. Common
  1348. NumberSystem string `xml:"numberSystem,attr"`
  1349. } `xml:"nan"`
  1350. CurrencyDecimal []*struct {
  1351. Common
  1352. NumberSystem string `xml:"numberSystem,attr"`
  1353. } `xml:"currencyDecimal"`
  1354. CurrencyGroup []*struct {
  1355. Common
  1356. NumberSystem string `xml:"numberSystem,attr"`
  1357. } `xml:"currencyGroup"`
  1358. TimeSeparator []*Common `xml:"timeSeparator"`
  1359. } `xml:"symbols"`
  1360. DecimalFormats []*struct {
  1361. Common
  1362. NumberSystem string `xml:"numberSystem,attr"`
  1363. DecimalFormatLength []*struct {
  1364. Common
  1365. DecimalFormat []*struct {
  1366. Common
  1367. Pattern []*struct {
  1368. Common
  1369. Numbers string `xml:"numbers,attr"`
  1370. Count string `xml:"count,attr"`
  1371. } `xml:"pattern"`
  1372. } `xml:"decimalFormat"`
  1373. } `xml:"decimalFormatLength"`
  1374. } `xml:"decimalFormats"`
  1375. ScientificFormats []*struct {
  1376. Common
  1377. NumberSystem string `xml:"numberSystem,attr"`
  1378. ScientificFormatLength []*struct {
  1379. Common
  1380. ScientificFormat []*struct {
  1381. Common
  1382. Pattern []*struct {
  1383. Common
  1384. Numbers string `xml:"numbers,attr"`
  1385. Count string `xml:"count,attr"`
  1386. } `xml:"pattern"`
  1387. } `xml:"scientificFormat"`
  1388. } `xml:"scientificFormatLength"`
  1389. } `xml:"scientificFormats"`
  1390. PercentFormats []*struct {
  1391. Common
  1392. NumberSystem string `xml:"numberSystem,attr"`
  1393. PercentFormatLength []*struct {
  1394. Common
  1395. PercentFormat []*struct {
  1396. Common
  1397. Pattern []*struct {
  1398. Common
  1399. Numbers string `xml:"numbers,attr"`
  1400. Count string `xml:"count,attr"`
  1401. } `xml:"pattern"`
  1402. } `xml:"percentFormat"`
  1403. } `xml:"percentFormatLength"`
  1404. } `xml:"percentFormats"`
  1405. CurrencyFormats []*struct {
  1406. Common
  1407. NumberSystem string `xml:"numberSystem,attr"`
  1408. CurrencySpacing []*struct {
  1409. Common
  1410. BeforeCurrency []*struct {
  1411. Common
  1412. CurrencyMatch []*Common `xml:"currencyMatch"`
  1413. SurroundingMatch []*Common `xml:"surroundingMatch"`
  1414. InsertBetween []*Common `xml:"insertBetween"`
  1415. } `xml:"beforeCurrency"`
  1416. AfterCurrency []*struct {
  1417. Common
  1418. CurrencyMatch []*Common `xml:"currencyMatch"`
  1419. SurroundingMatch []*Common `xml:"surroundingMatch"`
  1420. InsertBetween []*Common `xml:"insertBetween"`
  1421. } `xml:"afterCurrency"`
  1422. } `xml:"currencySpacing"`
  1423. CurrencyFormatLength []*struct {
  1424. Common
  1425. CurrencyFormat []*struct {
  1426. Common
  1427. Pattern []*struct {
  1428. Common
  1429. Numbers string `xml:"numbers,attr"`
  1430. Count string `xml:"count,attr"`
  1431. } `xml:"pattern"`
  1432. } `xml:"currencyFormat"`
  1433. } `xml:"currencyFormatLength"`
  1434. UnitPattern []*struct {
  1435. Common
  1436. Count string `xml:"count,attr"`
  1437. } `xml:"unitPattern"`
  1438. } `xml:"currencyFormats"`
  1439. Currencies *struct {
  1440. Common
  1441. Currency []*struct {
  1442. Common
  1443. Pattern []*struct {
  1444. Common
  1445. Numbers string `xml:"numbers,attr"`
  1446. Count string `xml:"count,attr"`
  1447. } `xml:"pattern"`
  1448. DisplayName []*struct {
  1449. Common
  1450. Count string `xml:"count,attr"`
  1451. } `xml:"displayName"`
  1452. Symbol []*Common `xml:"symbol"`
  1453. Decimal []*struct {
  1454. Common
  1455. NumberSystem string `xml:"numberSystem,attr"`
  1456. } `xml:"decimal"`
  1457. Group []*struct {
  1458. Common
  1459. NumberSystem string `xml:"numberSystem,attr"`
  1460. } `xml:"group"`
  1461. } `xml:"currency"`
  1462. } `xml:"currencies"`
  1463. MiscPatterns []*struct {
  1464. Common
  1465. NumberSystem string `xml:"numberSystem,attr"`
  1466. Pattern []*struct {
  1467. Common
  1468. Numbers string `xml:"numbers,attr"`
  1469. Count string `xml:"count,attr"`
  1470. } `xml:"pattern"`
  1471. } `xml:"miscPatterns"`
  1472. MinimalPairs []*struct {
  1473. Common
  1474. PluralMinimalPairs []*struct {
  1475. Common
  1476. Count string `xml:"count,attr"`
  1477. } `xml:"pluralMinimalPairs"`
  1478. OrdinalMinimalPairs []*struct {
  1479. Common
  1480. Ordinal string `xml:"ordinal,attr"`
  1481. } `xml:"ordinalMinimalPairs"`
  1482. } `xml:"minimalPairs"`
  1483. }
  1484. // Version is the version of CLDR from which the XML definitions are generated.
  1485. const Version = "32"