The Labs \ Source Viewer \ SSCLI \ System.Globalization \ CultureTableData

  1. // ==++==
  2. //
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. //
  14. // ==--==
  15. // The file is autogenerated by nlpgen.pl.
  16. // DO NOT EDIT THIS FILE MANUALLY.
  17. // DO NOT EDIT THIS FILE MANUALLY.
  18. // DO NOT EDIT THIS FILE MANUALLY.
  19. namespace System.Globalization
  20. {
  21.    
  22.     using System;
  23.     using System.IO;
  24.     using System.Runtime.InteropServices;
  25.     using System.Text;
  26.     using System.Collections;
  27.    
  28.    
  29.     //
  30.     //
  31.    
  32.     //
  33.     // The list of data fields:
  34.     // Keep the fields that can be overridden in the beginning of the fields
  35.     // so that we can check if user override values should be read quickly.
  36.     //
  37.    
  38.    
  39.     // StructLayout is needed here otherwise compiler can re-arrange the fields.
  40.     [StructLayout(LayoutKind.Sequential, Pack = 2)]
  41.     internal struct CultureTableData
  42.     {
  43.         internal uint sName;
  44.         // locale name (ie: en-us)
  45.         internal uint sIetfLanguage;
  46.         // RFC 3066 IETF Language Name
  47.         internal ushort iLanguage;
  48.         // locale ID (0409) - NO sort information
  49.         internal ushort iParent;
  50.         // Parent locale/culture LCID
  51.         internal ushort iDigits;
  52.         // (user can override) number of fractional digits
  53.         internal ushort iNegativeNumber;
  54.         // (user can override) negative number format
  55.         internal ushort iCurrencyDigits;
  56.         // (user can override) # local monetary fractional digits
  57.         internal ushort iCurrency;
  58.         // (user can override) positive currency format
  59.         internal ushort iNegativeCurrency;
  60.         // (user can override) negative currency format
  61.         internal ushort iLeadingZeros;
  62.         // (user can override) leading zeros 0 = no leading zeros, 1 = leading zeros
  63.         internal ushort iFlags;
  64.         // Flags for the culture
  65.         internal ushort iFirstDayOfWeek;
  66.         // (user can override) first day of week
  67.         internal ushort iFirstWeekOfYear;
  68.         // (user can override) first week of year
  69.         internal ushort iCountry;
  70.         // (user can override) country code (RegionInfo)
  71.         internal ushort iMeasure;
  72.         // (user can override) system of measurement 0=metric, 1=US (RegionInfo)
  73.         internal ushort iDigitSubstitution;
  74.         // (user can override) Digit substitution 0=context, 1=none/arabic, 2=Native/national (2 seems to be unused) (Windows Only)
  75.         internal uint waGrouping;
  76.         // (user can override) grouping of digits
  77.         internal uint waMonetaryGrouping;
  78.         // (user can override) monetary grouping of digits
  79.         internal uint sListSeparator;
  80.         // (user can override) list separator
  81.         internal uint sDecimalSeparator;
  82.         // (user can override) decimal separator
  83.         internal uint sThousandSeparator;
  84.         // (user can override) thousands separator
  85.         internal uint sCurrency;
  86.         // (user can override) local monetary symbol
  87.         internal uint sMonetaryDecimal;
  88.         // (user can override) monetary decimal separator
  89.         internal uint sMonetaryThousand;
  90.         // (user can override) monetary thousands separator
  91.         internal uint sPositiveSign;
  92.         // (user can override) positive sign
  93.         internal uint sNegativeSign;
  94.         // (user can override) negative sign
  95.         internal uint sAM1159;
  96.         // (user can override) AM designator
  97.         internal uint sPM2359;
  98.         // (user can override) PM designator
  99.         internal uint saNativeDigits;
  100.         // (user can override) native characters for digits 0-9
  101.         internal uint saTimeFormat;
  102.         // (user can override) time format
  103.         internal uint saShortDate;
  104.         // (user can override) short date format
  105.         internal uint saLongDate;
  106.         // (user can override) long date format
  107.         internal uint saYearMonth;
  108.         // (user can override) year month format
  109.         internal uint saDuration;
  110.         // time duration format
  111.         internal ushort iDefaultLanguage;
  112.         // Default language if this is a rare lcid (Windows Only)
  113.         internal ushort iDefaultAnsiCodePage;
  114.         // default ansi code page ID (ACP)
  115.         internal ushort iDefaultOemCodePage;
  116.         // default oem code page ID (OCP or OEM)
  117.         internal ushort iDefaultMacCodePage;
  118.         // default macintosh code page
  119.         internal ushort iDefaultEbcdicCodePage;
  120.         // default EBCDIC code page
  121.         internal ushort iGeoId;
  122.         // GeoId (Windows Only)
  123.         internal ushort iPaperSize;
  124.         // default paper size (RegionInfo)
  125.         internal ushort iIntlCurrencyDigits;
  126.         // # of digits after decimal in intl currency format (Windows Only)
  127.         internal uint waCalendars;
  128.         // all available calendar type(s), semicolon seperated, ie: '1;6'. The first one is the default calendar.
  129.         internal uint sAbbrevLang;
  130.         // abbreviated language name
  131.         internal uint sISO639Language;
  132.         // ISO 639 Language Name
  133.         internal uint sEnglishLanguage;
  134.         // English name for this language (Windows Only)
  135.         internal uint sNativeLanguage;
  136.         // Native name of this language (Windows Only)
  137.         internal uint sEnglishCountry;
  138.         // english country name (RegionInfo)
  139.         internal uint sNativeCountry;
  140.         // native country name (Windows Only)
  141.         internal uint sAbbrevCountry;
  142.         // abbreviated country name (RegionInfo)
  143.         internal uint sISO3166CountryName;
  144.         // (RegionInfo)
  145.         internal uint sIntlMonetarySymbol;
  146.         // international monetary symbol (RegionInfo)
  147.         internal uint sEnglishCurrency;
  148.         // English name for this currency (Windows Only)
  149.         internal uint sNativeCurrency;
  150.         // Native name for this currency (Windows Only)
  151.         internal uint waFontSignature;
  152.         // Font signature (16 WORDS) (Windows Only)
  153.         internal uint sISO639Language2;
  154.         // (RegionInfo)
  155.         internal uint sISO3166CountryName2;
  156.         // (RegionInfo)
  157.         internal uint sParent;
  158.         // Parent name (which may be a custom locale/culture)
  159.         internal uint saDayNames;
  160.         // day names
  161.         internal uint saAbbrevDayNames;
  162.         // abbreviated day names
  163.         internal uint saMonthNames;
  164.         // month names
  165.         internal uint saAbbrevMonthNames;
  166.         // abbreviated month names
  167.         internal uint saMonthGenitiveNames;
  168.         // Genitive month names
  169.         internal uint saAbbrevMonthGenitiveNames;
  170.         // Abbreviated genitive month names
  171.         internal uint saNativeCalendarNames;
  172.         // Native calendar names. index of optional calendar - 1, empty if no optional calendar at that number
  173.         internal uint saAltSortID;
  174.         // one-based (1, 2, ...) array of alternate sort culture names. A blank entry means that the SORTID is invalid. e.g. zh-TW-pron
  175.         internal ushort iNegativePercent;
  176.         // Negative Percent (0-3)
  177.         internal ushort iPositivePercent;
  178.         // Positive Percent (0-11)
  179.         internal ushort iFormatFlags;
  180.         // Formatting flags
  181.         internal ushort iLineOrientations;
  182.         // Line orientation data
  183.         internal ushort iTextInfo;
  184.         // Text info LCID to use for custom
  185.         internal ushort iInputLanguageHandle;
  186.         // input language handle
  187.         internal uint iCompareInfo;
  188.         // MUST BE DWORD ALIGNED -Compare info LCID (including sorting key) to use if custom
  189.         internal uint sEnglishDisplayName;
  190.         // English pretty name for this locale
  191.         internal uint sNativeDisplayName;
  192.         // Native pretty name for this locale
  193.         internal uint sPercent;
  194.         // Percent (%) symbol
  195.         internal uint sNaN;
  196.         // Not a Number
  197.         internal uint sPositiveInfinity;
  198.         // + Infinity
  199.         internal uint sNegativeInfinity;
  200.         // - Infinity
  201.         internal uint sMonthDay;
  202.         // Month day pattern
  203.         internal uint sAdEra;
  204.         // localized names for the A.D. Era
  205.         internal uint sAbbrevAdEra;
  206.         // abbreviated localized names for the A.D. Era
  207.         internal uint sRegionName;
  208.         // (RegionInfo)
  209.         internal uint sConsoleFallbackName;
  210.         // The culture name for the console fallback UI culture
  211.         internal uint saShortTime;
  212.         // short time format
  213.         internal uint saSuperShortDayNames;
  214.         // The super short day names
  215.         internal uint saDateWords;
  216.         // words that can appear in date strings
  217.         internal uint sSpecificCulture;
  218.         // The culture name to be used in CultureInfo.CreateSpecificCulture()
  219.         internal uint sKeyboardsToInstall;
  220.         // Keyboard installation string.
  221.         internal uint sScripts;
  222.         // Typical Scripts for this locale (latn;cyrl; etc)
  223.         // Constants
  224.         internal const int sizeofDataFields = 304;
  225.         // Size of our data record (64-bit(QWORD) aligned)
  226.         // These aren't really used in FEATURE_PAL, but its easier to disable them at the Override functions than here
  227.         //#if !FEATURE_PAL
  228.         //
  229.         // Win32 GetLocaleInfo data constants
  230.         //
  231.         internal const int LOCALE_IDIGITS = 17;
  232.         // iDigits number of fractional digits
  233.         internal const int LOCALE_INEGNUMBER = 4112;
  234.         // iNegNumber negative number format
  235.         internal const int LOCALE_ICURRDIGITS = 25;
  236.         // iCurrDigits # local monetary fractional digits
  237.         internal const int LOCALE_ICURRENCY = 27;
  238.         // iCurrency positive currency format
  239.         internal const int LOCALE_INEGCURR = 28;
  240.         // iNegCurr negative currency format
  241.         internal const int LOCALE_ILZERO = 18;
  242.         // iLZero leading zeros 0 = no leading zeros, 1 = leading zeros
  243.         internal const int LOCALE_IFIRSTDAYOFWEEK = 4108;
  244.         // iFirstDayOfWeek first day of week
  245.         internal const int LOCALE_IFIRSTWEEKOFYEAR = 4109;
  246.         // iFirstWeekOfYear first week of year
  247.         internal const int LOCALE_ICOUNTRY = 5;
  248.         // iCountry country code (RegionInfo)
  249.         internal const int LOCALE_IMEASURE = 13;
  250.         // iMeasure system of measurement 0=metric, 1=US (RegionInfo)
  251.         internal const int LOCALE_IDIGITSUBSTITUTION = 4116;
  252.         // NumShape Digit substitution 0=context, 1=none/arabic, 2=Native/national (2 seems to be unused) (Windows Only)
  253.         internal const int LOCALE_SGROUPING = 16;
  254.         // sGrouping grouping of digits
  255.         internal const int LOCALE_SMONGROUPING = 24;
  256.         // sMonGrouping monetary grouping of digits
  257.         internal const int LOCALE_SLIST = 12;
  258.         // sList list separator
  259.         internal const int LOCALE_SDECIMAL = 14;
  260.         // sDecimal decimal separator
  261.         internal const int LOCALE_STHOUSAND = 15;
  262.         // sThousand thousands separator
  263.         internal const int LOCALE_SCURRENCY = 20;
  264.         // sCurrency local monetary symbol
  265.         internal const int LOCALE_SMONDECIMALSEP = 22;
  266.         // sMonDecimalSep monetary decimal separator
  267.         internal const int LOCALE_SMONTHOUSANDSEP = 23;
  268.         // sMonThousandSep monetary thousands separator
  269.         internal const int LOCALE_SPOSITIVESIGN = 80;
  270.         // sPositiveSign positive sign
  271.         internal const int LOCALE_SNEGATIVESIGN = 81;
  272.         // sNegativeSign negative sign
  273.         internal const int LOCALE_S1159 = 40;
  274.         // s1159 AM designator
  275.         internal const int LOCALE_S2359 = 41;
  276.         // s2359 PM designator
  277.         internal const int LOCALE_SNATIVEDIGITS = 19;
  278.         // sNativeDigits native characters for digits 0-9
  279.         internal const int LOCALE_STIMEFORMAT = 4099;
  280.         // sTimeFormat time format
  281.         internal const int LOCALE_SSHORTDATE = 31;
  282.         // sShortDate short date format
  283.         internal const int LOCALE_SLONGDATE = 32;
  284.         // sLongDate long date format
  285.         internal const int LOCALE_SYEARMONTH = 4102;
  286.         // sYearMonth year month format
  287.         //#endif // !FEATURE_PAL
  288.     }
  289. }

Developer Fusion