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