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