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