xml.go 39 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487
  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. }
  637. // LDML is the top-level type for locale-specific data.
  638. type LDML struct {
  639. Common
  640. Version string `xml:"version,attr"`
  641. Identity *struct {
  642. Common
  643. Version *struct {
  644. Common
  645. Number string `xml:"number,attr"`
  646. } `xml:"version"`
  647. Generation *struct {
  648. Common
  649. Date string `xml:"date,attr"`
  650. } `xml:"generation"`
  651. Language *Common `xml:"language"`
  652. Script *Common `xml:"script"`
  653. Territory *Common `xml:"territory"`
  654. Variant *Common `xml:"variant"`
  655. } `xml:"identity"`
  656. LocaleDisplayNames *LocaleDisplayNames `xml:"localeDisplayNames"`
  657. Layout *struct {
  658. Common
  659. Orientation []*struct {
  660. Common
  661. Characters string `xml:"characters,attr"`
  662. Lines string `xml:"lines,attr"`
  663. CharacterOrder []*Common `xml:"characterOrder"`
  664. LineOrder []*Common `xml:"lineOrder"`
  665. } `xml:"orientation"`
  666. InList []*struct {
  667. Common
  668. Casing string `xml:"casing,attr"`
  669. } `xml:"inList"`
  670. InText []*Common `xml:"inText"`
  671. } `xml:"layout"`
  672. ContextTransforms *struct {
  673. Common
  674. ContextTransformUsage []*struct {
  675. Common
  676. ContextTransform []*Common `xml:"contextTransform"`
  677. } `xml:"contextTransformUsage"`
  678. } `xml:"contextTransforms"`
  679. Characters *struct {
  680. Common
  681. ExemplarCharacters []*Common `xml:"exemplarCharacters"`
  682. Ellipsis []*Common `xml:"ellipsis"`
  683. MoreInformation []*Common `xml:"moreInformation"`
  684. Stopwords []*struct {
  685. Common
  686. StopwordList []*Common `xml:"stopwordList"`
  687. } `xml:"stopwords"`
  688. IndexLabels []*struct {
  689. Common
  690. IndexSeparator []*Common `xml:"indexSeparator"`
  691. CompressedIndexSeparator []*Common `xml:"compressedIndexSeparator"`
  692. IndexRangePattern []*Common `xml:"indexRangePattern"`
  693. IndexLabelBefore []*Common `xml:"indexLabelBefore"`
  694. IndexLabelAfter []*Common `xml:"indexLabelAfter"`
  695. IndexLabel []*struct {
  696. Common
  697. IndexSource string `xml:"indexSource,attr"`
  698. Priority string `xml:"priority,attr"`
  699. } `xml:"indexLabel"`
  700. } `xml:"indexLabels"`
  701. Mapping []*struct {
  702. Common
  703. Registry string `xml:"registry,attr"`
  704. } `xml:"mapping"`
  705. ParseLenients []*struct {
  706. Common
  707. Scope string `xml:"scope,attr"`
  708. Level string `xml:"level,attr"`
  709. ParseLenient []*struct {
  710. Common
  711. Sample string `xml:"sample,attr"`
  712. } `xml:"parseLenient"`
  713. } `xml:"parseLenients"`
  714. } `xml:"characters"`
  715. Delimiters *struct {
  716. Common
  717. QuotationStart []*Common `xml:"quotationStart"`
  718. QuotationEnd []*Common `xml:"quotationEnd"`
  719. AlternateQuotationStart []*Common `xml:"alternateQuotationStart"`
  720. AlternateQuotationEnd []*Common `xml:"alternateQuotationEnd"`
  721. } `xml:"delimiters"`
  722. Measurement *struct {
  723. Common
  724. MeasurementSystem []*Common `xml:"measurementSystem"`
  725. PaperSize []*struct {
  726. Common
  727. Height []*Common `xml:"height"`
  728. Width []*Common `xml:"width"`
  729. } `xml:"paperSize"`
  730. } `xml:"measurement"`
  731. Dates *struct {
  732. Common
  733. LocalizedPatternChars []*Common `xml:"localizedPatternChars"`
  734. DateRangePattern []*Common `xml:"dateRangePattern"`
  735. Calendars *struct {
  736. Common
  737. Calendar []*Calendar `xml:"calendar"`
  738. } `xml:"calendars"`
  739. Fields *struct {
  740. Common
  741. Field []*struct {
  742. Common
  743. DisplayName []*struct {
  744. Common
  745. Count string `xml:"count,attr"`
  746. } `xml:"displayName"`
  747. Relative []*Common `xml:"relative"`
  748. RelativeTime []*struct {
  749. Common
  750. RelativeTimePattern []*struct {
  751. Common
  752. Count string `xml:"count,attr"`
  753. } `xml:"relativeTimePattern"`
  754. } `xml:"relativeTime"`
  755. RelativePeriod []*Common `xml:"relativePeriod"`
  756. } `xml:"field"`
  757. } `xml:"fields"`
  758. TimeZoneNames *TimeZoneNames `xml:"timeZoneNames"`
  759. } `xml:"dates"`
  760. Numbers *Numbers `xml:"numbers"`
  761. Units *struct {
  762. Common
  763. Unit []*struct {
  764. Common
  765. DisplayName []*struct {
  766. Common
  767. Count string `xml:"count,attr"`
  768. } `xml:"displayName"`
  769. UnitPattern []*struct {
  770. Common
  771. Count string `xml:"count,attr"`
  772. } `xml:"unitPattern"`
  773. PerUnitPattern []*Common `xml:"perUnitPattern"`
  774. } `xml:"unit"`
  775. UnitLength []*struct {
  776. Common
  777. CompoundUnit []*struct {
  778. Common
  779. CompoundUnitPattern []*Common `xml:"compoundUnitPattern"`
  780. } `xml:"compoundUnit"`
  781. Unit []*struct {
  782. Common
  783. DisplayName []*struct {
  784. Common
  785. Count string `xml:"count,attr"`
  786. } `xml:"displayName"`
  787. UnitPattern []*struct {
  788. Common
  789. Count string `xml:"count,attr"`
  790. } `xml:"unitPattern"`
  791. PerUnitPattern []*Common `xml:"perUnitPattern"`
  792. } `xml:"unit"`
  793. CoordinateUnit []*struct {
  794. Common
  795. CoordinateUnitPattern []*Common `xml:"coordinateUnitPattern"`
  796. } `xml:"coordinateUnit"`
  797. } `xml:"unitLength"`
  798. DurationUnit []*struct {
  799. Common
  800. DurationUnitPattern []*Common `xml:"durationUnitPattern"`
  801. } `xml:"durationUnit"`
  802. } `xml:"units"`
  803. ListPatterns *struct {
  804. Common
  805. ListPattern []*struct {
  806. Common
  807. ListPatternPart []*Common `xml:"listPatternPart"`
  808. } `xml:"listPattern"`
  809. } `xml:"listPatterns"`
  810. Collations *struct {
  811. Common
  812. Version string `xml:"version,attr"`
  813. DefaultCollation *Common `xml:"defaultCollation"`
  814. Collation []*Collation `xml:"collation"`
  815. } `xml:"collations"`
  816. Posix *struct {
  817. Common
  818. Messages []*struct {
  819. Common
  820. Yesstr []*Common `xml:"yesstr"`
  821. Nostr []*Common `xml:"nostr"`
  822. Yesexpr []*Common `xml:"yesexpr"`
  823. Noexpr []*Common `xml:"noexpr"`
  824. } `xml:"messages"`
  825. } `xml:"posix"`
  826. CharacterLabels *struct {
  827. Common
  828. CharacterLabelPattern []*struct {
  829. Common
  830. Count string `xml:"count,attr"`
  831. } `xml:"characterLabelPattern"`
  832. CharacterLabel []*Common `xml:"characterLabel"`
  833. } `xml:"characterLabels"`
  834. Segmentations *struct {
  835. Common
  836. Segmentation []*struct {
  837. Common
  838. Variables *struct {
  839. Common
  840. Variable []*struct {
  841. Common
  842. Id string `xml:"id,attr"`
  843. } `xml:"variable"`
  844. } `xml:"variables"`
  845. SegmentRules *struct {
  846. Common
  847. Rule []*struct {
  848. Common
  849. Id string `xml:"id,attr"`
  850. } `xml:"rule"`
  851. } `xml:"segmentRules"`
  852. Exceptions *struct {
  853. Common
  854. Exception []*Common `xml:"exception"`
  855. } `xml:"exceptions"`
  856. Suppressions *struct {
  857. Common
  858. Suppression []*Common `xml:"suppression"`
  859. } `xml:"suppressions"`
  860. } `xml:"segmentation"`
  861. } `xml:"segmentations"`
  862. Rbnf *struct {
  863. Common
  864. RulesetGrouping []*struct {
  865. Common
  866. Ruleset []*struct {
  867. Common
  868. Access string `xml:"access,attr"`
  869. AllowsParsing string `xml:"allowsParsing,attr"`
  870. Rbnfrule []*struct {
  871. Common
  872. Value string `xml:"value,attr"`
  873. Radix string `xml:"radix,attr"`
  874. Decexp string `xml:"decexp,attr"`
  875. } `xml:"rbnfrule"`
  876. } `xml:"ruleset"`
  877. } `xml:"rulesetGrouping"`
  878. } `xml:"rbnf"`
  879. Annotations *struct {
  880. Common
  881. Annotation []*struct {
  882. Common
  883. Cp string `xml:"cp,attr"`
  884. Tts string `xml:"tts,attr"`
  885. } `xml:"annotation"`
  886. } `xml:"annotations"`
  887. Metadata *struct {
  888. Common
  889. CasingData *struct {
  890. Common
  891. CasingItem []*struct {
  892. Common
  893. Override string `xml:"override,attr"`
  894. ForceError string `xml:"forceError,attr"`
  895. } `xml:"casingItem"`
  896. } `xml:"casingData"`
  897. } `xml:"metadata"`
  898. References *struct {
  899. Common
  900. Reference []*struct {
  901. Common
  902. Uri string `xml:"uri,attr"`
  903. } `xml:"reference"`
  904. } `xml:"references"`
  905. }
  906. // Collation contains rules that specify a certain sort-order,
  907. // as a tailoring of the root order.
  908. // The parsed rules are obtained by passing a RuleProcessor to Collation's
  909. // Process method.
  910. type Collation struct {
  911. Common
  912. Visibility string `xml:"visibility,attr"`
  913. Base *Common `xml:"base"`
  914. Import []*struct {
  915. Common
  916. Source string `xml:"source,attr"`
  917. } `xml:"import"`
  918. Settings *struct {
  919. Common
  920. Strength string `xml:"strength,attr"`
  921. Alternate string `xml:"alternate,attr"`
  922. Backwards string `xml:"backwards,attr"`
  923. Normalization string `xml:"normalization,attr"`
  924. CaseLevel string `xml:"caseLevel,attr"`
  925. CaseFirst string `xml:"caseFirst,attr"`
  926. HiraganaQuaternary string `xml:"hiraganaQuaternary,attr"`
  927. MaxVariable string `xml:"maxVariable,attr"`
  928. Numeric string `xml:"numeric,attr"`
  929. Private string `xml:"private,attr"`
  930. VariableTop string `xml:"variableTop,attr"`
  931. Reorder string `xml:"reorder,attr"`
  932. } `xml:"settings"`
  933. SuppressContractions *Common `xml:"suppress_contractions"`
  934. Optimize *Common `xml:"optimize"`
  935. Cr []*Common `xml:"cr"`
  936. rulesElem
  937. }
  938. // Calendar specifies the fields used for formatting and parsing dates and times.
  939. // The month and quarter names are identified numerically, starting at 1.
  940. // The day (of the week) names are identified with short strings, since there is
  941. // no universally-accepted numeric designation.
  942. type Calendar struct {
  943. Common
  944. Months *struct {
  945. Common
  946. MonthContext []*struct {
  947. Common
  948. MonthWidth []*struct {
  949. Common
  950. Month []*struct {
  951. Common
  952. Yeartype string `xml:"yeartype,attr"`
  953. } `xml:"month"`
  954. } `xml:"monthWidth"`
  955. } `xml:"monthContext"`
  956. } `xml:"months"`
  957. MonthNames *struct {
  958. Common
  959. Month []*struct {
  960. Common
  961. Yeartype string `xml:"yeartype,attr"`
  962. } `xml:"month"`
  963. } `xml:"monthNames"`
  964. MonthAbbr *struct {
  965. Common
  966. Month []*struct {
  967. Common
  968. Yeartype string `xml:"yeartype,attr"`
  969. } `xml:"month"`
  970. } `xml:"monthAbbr"`
  971. MonthPatterns *struct {
  972. Common
  973. MonthPatternContext []*struct {
  974. Common
  975. MonthPatternWidth []*struct {
  976. Common
  977. MonthPattern []*Common `xml:"monthPattern"`
  978. } `xml:"monthPatternWidth"`
  979. } `xml:"monthPatternContext"`
  980. } `xml:"monthPatterns"`
  981. Days *struct {
  982. Common
  983. DayContext []*struct {
  984. Common
  985. DayWidth []*struct {
  986. Common
  987. Day []*Common `xml:"day"`
  988. } `xml:"dayWidth"`
  989. } `xml:"dayContext"`
  990. } `xml:"days"`
  991. DayNames *struct {
  992. Common
  993. Day []*Common `xml:"day"`
  994. } `xml:"dayNames"`
  995. DayAbbr *struct {
  996. Common
  997. Day []*Common `xml:"day"`
  998. } `xml:"dayAbbr"`
  999. Quarters *struct {
  1000. Common
  1001. QuarterContext []*struct {
  1002. Common
  1003. QuarterWidth []*struct {
  1004. Common
  1005. Quarter []*Common `xml:"quarter"`
  1006. } `xml:"quarterWidth"`
  1007. } `xml:"quarterContext"`
  1008. } `xml:"quarters"`
  1009. Week *struct {
  1010. Common
  1011. MinDays []*struct {
  1012. Common
  1013. Count string `xml:"count,attr"`
  1014. } `xml:"minDays"`
  1015. FirstDay []*struct {
  1016. Common
  1017. Day string `xml:"day,attr"`
  1018. } `xml:"firstDay"`
  1019. WeekendStart []*struct {
  1020. Common
  1021. Day string `xml:"day,attr"`
  1022. Time string `xml:"time,attr"`
  1023. } `xml:"weekendStart"`
  1024. WeekendEnd []*struct {
  1025. Common
  1026. Day string `xml:"day,attr"`
  1027. Time string `xml:"time,attr"`
  1028. } `xml:"weekendEnd"`
  1029. } `xml:"week"`
  1030. Am []*Common `xml:"am"`
  1031. Pm []*Common `xml:"pm"`
  1032. DayPeriods *struct {
  1033. Common
  1034. DayPeriodContext []*struct {
  1035. Common
  1036. DayPeriodWidth []*struct {
  1037. Common
  1038. DayPeriod []*Common `xml:"dayPeriod"`
  1039. } `xml:"dayPeriodWidth"`
  1040. } `xml:"dayPeriodContext"`
  1041. } `xml:"dayPeriods"`
  1042. Eras *struct {
  1043. Common
  1044. EraNames *struct {
  1045. Common
  1046. Era []*Common `xml:"era"`
  1047. } `xml:"eraNames"`
  1048. EraAbbr *struct {
  1049. Common
  1050. Era []*Common `xml:"era"`
  1051. } `xml:"eraAbbr"`
  1052. EraNarrow *struct {
  1053. Common
  1054. Era []*Common `xml:"era"`
  1055. } `xml:"eraNarrow"`
  1056. } `xml:"eras"`
  1057. CyclicNameSets *struct {
  1058. Common
  1059. CyclicNameSet []*struct {
  1060. Common
  1061. CyclicNameContext []*struct {
  1062. Common
  1063. CyclicNameWidth []*struct {
  1064. Common
  1065. CyclicName []*Common `xml:"cyclicName"`
  1066. } `xml:"cyclicNameWidth"`
  1067. } `xml:"cyclicNameContext"`
  1068. } `xml:"cyclicNameSet"`
  1069. } `xml:"cyclicNameSets"`
  1070. DateFormats *struct {
  1071. Common
  1072. DateFormatLength []*struct {
  1073. Common
  1074. DateFormat []*struct {
  1075. Common
  1076. Pattern []*struct {
  1077. Common
  1078. Numbers string `xml:"numbers,attr"`
  1079. Count string `xml:"count,attr"`
  1080. } `xml:"pattern"`
  1081. DisplayName []*struct {
  1082. Common
  1083. Count string `xml:"count,attr"`
  1084. } `xml:"displayName"`
  1085. } `xml:"dateFormat"`
  1086. } `xml:"dateFormatLength"`
  1087. } `xml:"dateFormats"`
  1088. TimeFormats *struct {
  1089. Common
  1090. TimeFormatLength []*struct {
  1091. Common
  1092. TimeFormat []*struct {
  1093. Common
  1094. Pattern []*struct {
  1095. Common
  1096. Numbers string `xml:"numbers,attr"`
  1097. Count string `xml:"count,attr"`
  1098. } `xml:"pattern"`
  1099. DisplayName []*struct {
  1100. Common
  1101. Count string `xml:"count,attr"`
  1102. } `xml:"displayName"`
  1103. } `xml:"timeFormat"`
  1104. } `xml:"timeFormatLength"`
  1105. } `xml:"timeFormats"`
  1106. DateTimeFormats *struct {
  1107. Common
  1108. DateTimeFormatLength []*struct {
  1109. Common
  1110. DateTimeFormat []*struct {
  1111. Common
  1112. Pattern []*struct {
  1113. Common
  1114. Numbers string `xml:"numbers,attr"`
  1115. Count string `xml:"count,attr"`
  1116. } `xml:"pattern"`
  1117. DisplayName []*struct {
  1118. Common
  1119. Count string `xml:"count,attr"`
  1120. } `xml:"displayName"`
  1121. } `xml:"dateTimeFormat"`
  1122. } `xml:"dateTimeFormatLength"`
  1123. AvailableFormats []*struct {
  1124. Common
  1125. DateFormatItem []*struct {
  1126. Common
  1127. Id string `xml:"id,attr"`
  1128. Count string `xml:"count,attr"`
  1129. } `xml:"dateFormatItem"`
  1130. } `xml:"availableFormats"`
  1131. AppendItems []*struct {
  1132. Common
  1133. AppendItem []*struct {
  1134. Common
  1135. Request string `xml:"request,attr"`
  1136. } `xml:"appendItem"`
  1137. } `xml:"appendItems"`
  1138. IntervalFormats []*struct {
  1139. Common
  1140. IntervalFormatFallback []*Common `xml:"intervalFormatFallback"`
  1141. IntervalFormatItem []*struct {
  1142. Common
  1143. Id string `xml:"id,attr"`
  1144. GreatestDifference []*struct {
  1145. Common
  1146. Id string `xml:"id,attr"`
  1147. } `xml:"greatestDifference"`
  1148. } `xml:"intervalFormatItem"`
  1149. } `xml:"intervalFormats"`
  1150. } `xml:"dateTimeFormats"`
  1151. Fields []*struct {
  1152. Common
  1153. Field []*struct {
  1154. Common
  1155. DisplayName []*struct {
  1156. Common
  1157. Count string `xml:"count,attr"`
  1158. } `xml:"displayName"`
  1159. Relative []*Common `xml:"relative"`
  1160. RelativeTime []*struct {
  1161. Common
  1162. RelativeTimePattern []*struct {
  1163. Common
  1164. Count string `xml:"count,attr"`
  1165. } `xml:"relativeTimePattern"`
  1166. } `xml:"relativeTime"`
  1167. RelativePeriod []*Common `xml:"relativePeriod"`
  1168. } `xml:"field"`
  1169. } `xml:"fields"`
  1170. }
  1171. type TimeZoneNames struct {
  1172. Common
  1173. HourFormat []*Common `xml:"hourFormat"`
  1174. HoursFormat []*Common `xml:"hoursFormat"`
  1175. GmtFormat []*Common `xml:"gmtFormat"`
  1176. GmtZeroFormat []*Common `xml:"gmtZeroFormat"`
  1177. RegionFormat []*Common `xml:"regionFormat"`
  1178. FallbackFormat []*Common `xml:"fallbackFormat"`
  1179. FallbackRegionFormat []*Common `xml:"fallbackRegionFormat"`
  1180. AbbreviationFallback []*Common `xml:"abbreviationFallback"`
  1181. PreferenceOrdering []*Common `xml:"preferenceOrdering"`
  1182. SingleCountries []*struct {
  1183. Common
  1184. List string `xml:"list,attr"`
  1185. } `xml:"singleCountries"`
  1186. Zone []*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. ExemplarCity []*Common `xml:"exemplarCity"`
  1205. } `xml:"zone"`
  1206. Metazone []*struct {
  1207. Common
  1208. Long []*struct {
  1209. Common
  1210. Generic []*Common `xml:"generic"`
  1211. Standard []*Common `xml:"standard"`
  1212. Daylight []*Common `xml:"daylight"`
  1213. } `xml:"long"`
  1214. Short []*struct {
  1215. Common
  1216. Generic []*Common `xml:"generic"`
  1217. Standard []*Common `xml:"standard"`
  1218. Daylight []*Common `xml:"daylight"`
  1219. } `xml:"short"`
  1220. CommonlyUsed []*struct {
  1221. Common
  1222. Used string `xml:"used,attr"`
  1223. } `xml:"commonlyUsed"`
  1224. } `xml:"metazone"`
  1225. }
  1226. // LocaleDisplayNames specifies localized display names for for scripts, languages,
  1227. // countries, currencies, and variants.
  1228. type LocaleDisplayNames struct {
  1229. Common
  1230. LocaleDisplayPattern *struct {
  1231. Common
  1232. LocalePattern []*Common `xml:"localePattern"`
  1233. LocaleSeparator []*Common `xml:"localeSeparator"`
  1234. LocaleKeyTypePattern []*Common `xml:"localeKeyTypePattern"`
  1235. } `xml:"localeDisplayPattern"`
  1236. Languages *struct {
  1237. Common
  1238. Language []*Common `xml:"language"`
  1239. } `xml:"languages"`
  1240. Scripts *struct {
  1241. Common
  1242. Script []*Common `xml:"script"`
  1243. } `xml:"scripts"`
  1244. Territories *struct {
  1245. Common
  1246. Territory []*Common `xml:"territory"`
  1247. } `xml:"territories"`
  1248. Subdivisions *struct {
  1249. Common
  1250. Subdivision []*Common `xml:"subdivision"`
  1251. } `xml:"subdivisions"`
  1252. Variants *struct {
  1253. Common
  1254. Variant []*Common `xml:"variant"`
  1255. } `xml:"variants"`
  1256. Keys *struct {
  1257. Common
  1258. Key []*Common `xml:"key"`
  1259. } `xml:"keys"`
  1260. Types *struct {
  1261. Common
  1262. Type []*struct {
  1263. Common
  1264. Key string `xml:"key,attr"`
  1265. } `xml:"type"`
  1266. } `xml:"types"`
  1267. TransformNames *struct {
  1268. Common
  1269. TransformName []*Common `xml:"transformName"`
  1270. } `xml:"transformNames"`
  1271. MeasurementSystemNames *struct {
  1272. Common
  1273. MeasurementSystemName []*Common `xml:"measurementSystemName"`
  1274. } `xml:"measurementSystemNames"`
  1275. CodePatterns *struct {
  1276. Common
  1277. CodePattern []*Common `xml:"codePattern"`
  1278. } `xml:"codePatterns"`
  1279. }
  1280. // Numbers supplies information for formatting and parsing numbers and currencies.
  1281. type Numbers struct {
  1282. Common
  1283. DefaultNumberingSystem []*Common `xml:"defaultNumberingSystem"`
  1284. OtherNumberingSystems []*struct {
  1285. Common
  1286. Native []*Common `xml:"native"`
  1287. Traditional []*Common `xml:"traditional"`
  1288. Finance []*Common `xml:"finance"`
  1289. } `xml:"otherNumberingSystems"`
  1290. MinimumGroupingDigits []*Common `xml:"minimumGroupingDigits"`
  1291. Symbols []*struct {
  1292. Common
  1293. NumberSystem string `xml:"numberSystem,attr"`
  1294. Decimal []*struct {
  1295. Common
  1296. NumberSystem string `xml:"numberSystem,attr"`
  1297. } `xml:"decimal"`
  1298. Group []*struct {
  1299. Common
  1300. NumberSystem string `xml:"numberSystem,attr"`
  1301. } `xml:"group"`
  1302. List []*struct {
  1303. Common
  1304. NumberSystem string `xml:"numberSystem,attr"`
  1305. } `xml:"list"`
  1306. PercentSign []*struct {
  1307. Common
  1308. NumberSystem string `xml:"numberSystem,attr"`
  1309. } `xml:"percentSign"`
  1310. NativeZeroDigit []*struct {
  1311. Common
  1312. NumberSystem string `xml:"numberSystem,attr"`
  1313. } `xml:"nativeZeroDigit"`
  1314. PatternDigit []*struct {
  1315. Common
  1316. NumberSystem string `xml:"numberSystem,attr"`
  1317. } `xml:"patternDigit"`
  1318. PlusSign []*struct {
  1319. Common
  1320. NumberSystem string `xml:"numberSystem,attr"`
  1321. } `xml:"plusSign"`
  1322. MinusSign []*struct {
  1323. Common
  1324. NumberSystem string `xml:"numberSystem,attr"`
  1325. } `xml:"minusSign"`
  1326. Exponential []*struct {
  1327. Common
  1328. NumberSystem string `xml:"numberSystem,attr"`
  1329. } `xml:"exponential"`
  1330. SuperscriptingExponent []*Common `xml:"superscriptingExponent"`
  1331. PerMille []*struct {
  1332. Common
  1333. NumberSystem string `xml:"numberSystem,attr"`
  1334. } `xml:"perMille"`
  1335. Infinity []*struct {
  1336. Common
  1337. NumberSystem string `xml:"numberSystem,attr"`
  1338. } `xml:"infinity"`
  1339. Nan []*struct {
  1340. Common
  1341. NumberSystem string `xml:"numberSystem,attr"`
  1342. } `xml:"nan"`
  1343. CurrencyDecimal []*struct {
  1344. Common
  1345. NumberSystem string `xml:"numberSystem,attr"`
  1346. } `xml:"currencyDecimal"`
  1347. CurrencyGroup []*struct {
  1348. Common
  1349. NumberSystem string `xml:"numberSystem,attr"`
  1350. } `xml:"currencyGroup"`
  1351. TimeSeparator []*Common `xml:"timeSeparator"`
  1352. } `xml:"symbols"`
  1353. DecimalFormats []*struct {
  1354. Common
  1355. NumberSystem string `xml:"numberSystem,attr"`
  1356. DecimalFormatLength []*struct {
  1357. Common
  1358. DecimalFormat []*struct {
  1359. Common
  1360. Pattern []*struct {
  1361. Common
  1362. Numbers string `xml:"numbers,attr"`
  1363. Count string `xml:"count,attr"`
  1364. } `xml:"pattern"`
  1365. } `xml:"decimalFormat"`
  1366. } `xml:"decimalFormatLength"`
  1367. } `xml:"decimalFormats"`
  1368. ScientificFormats []*struct {
  1369. Common
  1370. NumberSystem string `xml:"numberSystem,attr"`
  1371. ScientificFormatLength []*struct {
  1372. Common
  1373. ScientificFormat []*struct {
  1374. Common
  1375. Pattern []*struct {
  1376. Common
  1377. Numbers string `xml:"numbers,attr"`
  1378. Count string `xml:"count,attr"`
  1379. } `xml:"pattern"`
  1380. } `xml:"scientificFormat"`
  1381. } `xml:"scientificFormatLength"`
  1382. } `xml:"scientificFormats"`
  1383. PercentFormats []*struct {
  1384. Common
  1385. NumberSystem string `xml:"numberSystem,attr"`
  1386. PercentFormatLength []*struct {
  1387. Common
  1388. PercentFormat []*struct {
  1389. Common
  1390. Pattern []*struct {
  1391. Common
  1392. Numbers string `xml:"numbers,attr"`
  1393. Count string `xml:"count,attr"`
  1394. } `xml:"pattern"`
  1395. } `xml:"percentFormat"`
  1396. } `xml:"percentFormatLength"`
  1397. } `xml:"percentFormats"`
  1398. CurrencyFormats []*struct {
  1399. Common
  1400. NumberSystem string `xml:"numberSystem,attr"`
  1401. CurrencySpacing []*struct {
  1402. Common
  1403. BeforeCurrency []*struct {
  1404. Common
  1405. CurrencyMatch []*Common `xml:"currencyMatch"`
  1406. SurroundingMatch []*Common `xml:"surroundingMatch"`
  1407. InsertBetween []*Common `xml:"insertBetween"`
  1408. } `xml:"beforeCurrency"`
  1409. AfterCurrency []*struct {
  1410. Common
  1411. CurrencyMatch []*Common `xml:"currencyMatch"`
  1412. SurroundingMatch []*Common `xml:"surroundingMatch"`
  1413. InsertBetween []*Common `xml:"insertBetween"`
  1414. } `xml:"afterCurrency"`
  1415. } `xml:"currencySpacing"`
  1416. CurrencyFormatLength []*struct {
  1417. Common
  1418. CurrencyFormat []*struct {
  1419. Common
  1420. Pattern []*struct {
  1421. Common
  1422. Numbers string `xml:"numbers,attr"`
  1423. Count string `xml:"count,attr"`
  1424. } `xml:"pattern"`
  1425. } `xml:"currencyFormat"`
  1426. } `xml:"currencyFormatLength"`
  1427. UnitPattern []*struct {
  1428. Common
  1429. Count string `xml:"count,attr"`
  1430. } `xml:"unitPattern"`
  1431. } `xml:"currencyFormats"`
  1432. Currencies *struct {
  1433. Common
  1434. Currency []*struct {
  1435. Common
  1436. Pattern []*struct {
  1437. Common
  1438. Numbers string `xml:"numbers,attr"`
  1439. Count string `xml:"count,attr"`
  1440. } `xml:"pattern"`
  1441. DisplayName []*struct {
  1442. Common
  1443. Count string `xml:"count,attr"`
  1444. } `xml:"displayName"`
  1445. Symbol []*Common `xml:"symbol"`
  1446. Decimal []*struct {
  1447. Common
  1448. NumberSystem string `xml:"numberSystem,attr"`
  1449. } `xml:"decimal"`
  1450. Group []*struct {
  1451. Common
  1452. NumberSystem string `xml:"numberSystem,attr"`
  1453. } `xml:"group"`
  1454. } `xml:"currency"`
  1455. } `xml:"currencies"`
  1456. MiscPatterns []*struct {
  1457. Common
  1458. NumberSystem string `xml:"numberSystem,attr"`
  1459. Pattern []*struct {
  1460. Common
  1461. Numbers string `xml:"numbers,attr"`
  1462. Count string `xml:"count,attr"`
  1463. } `xml:"pattern"`
  1464. } `xml:"miscPatterns"`
  1465. MinimalPairs []*struct {
  1466. Common
  1467. PluralMinimalPairs []*struct {
  1468. Common
  1469. Count string `xml:"count,attr"`
  1470. } `xml:"pluralMinimalPairs"`
  1471. OrdinalMinimalPairs []*struct {
  1472. Common
  1473. Ordinal string `xml:"ordinal,attr"`
  1474. } `xml:"ordinalMinimalPairs"`
  1475. } `xml:"minimalPairs"`
  1476. }
  1477. // Version is the version of CLDR from which the XML definitions are generated.
  1478. const Version = "31"