xml.go 39 KB

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