C# Класс NCldr.Extensions.CultureInfoExtensions

CultureInfoExtensions is a collection of extension methods for the CultureInfo class to access CLDR data as well as static methods to access CLDR data from culture names
Показать файл Открыть проект

Открытые методы

Метод Описание
GetCasing ( this cultureInfo ) : Casing

GetCasing gets the CLDR Casing for the CultureInfo

GetCharacters ( this cultureInfo ) : Characters

GetCharacters gets the CLDR Characters for the CultureInfo

GetDayPeriodRules ( this cultureInfo ) : DayPeriodRule[]

GetDayPeriodRules gets the CLDR DayPeriodRules for the CultureInfo

GetDelimiters ( this cultureInfo ) : Delimiters

GetDelimiters gets the CLDR Delimiters for the CultureInfo

GetGenderListId ( this cultureInfo ) : string

GetGenderListId gets the CLDR GenderList identifier for the CultureInfo

GetLayout ( this cultureInfo ) : Layout

GetLayout gets the CLDR Layout for the CultureInfo

GetLikelySubTag ( this cultureInfo ) : string

GetLikelySubTag gets the most likely child culture name from a parent CultureInfo

GetListPatterns ( this cultureInfo ) : ListPattern[]

GetListPatterns gets the CLDR ListPatterns for the CultureInfo

GetNo ( this cultureInfo ) : string

GetNo gets the localized 'No' string for the CultureInfo

GetNoShort ( this cultureInfo ) : string

GetNo gets the localized short 'No' string for the CultureInfo

GetNumbers ( this cultureInfo ) : Numbers

GetNumbers gets the CLDR Numbers for the CultureInfo

GetOrdinalRule ( this cultureInfo, int value ) : PluralRule

GetOrdinalRule gets the CLDR ordinal PluralRule for the integer for the CultureInfo

GetOrdinalRules ( this cultureInfo ) : PluralRule[]

GetOrdinalRules gets the CLDR ordinal PluralRules for the CultureInfo

GetPluralRule ( this cultureInfo, int value ) : PluralRule

GetPluralRule gets the CLDR PluralRule for the integer for the CultureInfo

GetPluralRules ( this cultureInfo ) : PluralRule[]

GetPluralRules gets the CLDR PluralRules for the CultureInfo

GetPostcodeRegex ( this cultureInfo ) : string

GetPostcodeRegex gets the postal code regular expression for the CultureInfo

GetRegionInformation ( this cultureInfo ) : RegionInformation

GetRegionInformation gets the RegionInformation for the CultureInfo

GetRuleBasedNumberFormatting ( this cultureInfo ) : RuleBasedNumberFormatting

GetRuleBasedNumberFormatting gets the CLDR RuleBasedNumberFormatting for the CultureInfo

GetUnitPatternSets ( this cultureInfo ) : UnitPatternSet[]

GetUnitPatternSets gets the CLDR UnitPatternSets for the CultureInfo

GetYes ( this cultureInfo ) : string

GetYes gets the localized 'Yes' string for the CultureInfo

GetYesShort ( this cultureInfo ) : string

GetYes gets the localized short 'Yes' string for the CultureInfo

Приватные методы

Метод Описание
AssertHasRegionInfo ( CultureInfo cultureInfo ) : void

AssertHasRegionInfo throws an exception if the CultureInfo does not have a region

GetNCldrCultureName ( CultureInfo cultureInfo ) : string

GetNCldrCultureName gets an NCLDR culture name from a .NET culture name

GetNeutralCultureInfo ( CultureInfo cultureInfo ) : CultureInfo

GetNeutralCultureInfo gets the neutral culture that the CultureInfo falls back to

Описание методов

GetCasing() публичный статический Метод

GetCasing gets the CLDR Casing for the CultureInfo
public static GetCasing ( this cultureInfo ) : Casing
cultureInfo this The CultureInfo to get the CLDR Casing for
Результат Casing

GetCharacters() публичный статический Метод

GetCharacters gets the CLDR Characters for the CultureInfo
public static GetCharacters ( this cultureInfo ) : Characters
cultureInfo this The CultureInfo to get the CLDR Characters for
Результат Characters

GetDayPeriodRules() публичный статический Метод

GetDayPeriodRules gets the CLDR DayPeriodRules for the CultureInfo
public static GetDayPeriodRules ( this cultureInfo ) : DayPeriodRule[]
cultureInfo this The CultureInfo to get the CLDR DayPeriodRules for
Результат DayPeriodRule[]

GetDelimiters() публичный статический Метод

GetDelimiters gets the CLDR Delimiters for the CultureInfo
public static GetDelimiters ( this cultureInfo ) : Delimiters
cultureInfo this The CultureInfo to get the CLDR Delimiters for
Результат Delimiters

GetGenderListId() публичный статический Метод

GetGenderListId gets the CLDR GenderList identifier for the CultureInfo
public static GetGenderListId ( this cultureInfo ) : string
cultureInfo this The CultureInfo to get the CLDR DayPeriodRules for
Результат string

GetLayout() публичный статический Метод

GetLayout gets the CLDR Layout for the CultureInfo
public static GetLayout ( this cultureInfo ) : Layout
cultureInfo this The CultureInfo to get the CLDR Layout for
Результат Layout

GetLikelySubTag() публичный статический Метод

GetLikelySubTag gets the most likely child culture name from a parent CultureInfo
public static GetLikelySubTag ( this cultureInfo ) : string
cultureInfo this The CultureInfo to get the sub tag for
Результат string

GetListPatterns() публичный статический Метод

GetListPatterns gets the CLDR ListPatterns for the CultureInfo
public static GetListPatterns ( this cultureInfo ) : ListPattern[]
cultureInfo this The CultureInfo to get the CLDR ListPatterns for
Результат ListPattern[]

GetNo() публичный статический Метод

GetNo gets the localized 'No' string for the CultureInfo
public static GetNo ( this cultureInfo ) : string
cultureInfo this The CultureInfo to get the localized 'No' string for
Результат string

GetNoShort() публичный статический Метод

GetNo gets the localized short 'No' string for the CultureInfo
public static GetNoShort ( this cultureInfo ) : string
cultureInfo this The CultureInfo to get the localized short 'No' string for
Результат string

GetNumbers() публичный статический Метод

GetNumbers gets the CLDR Numbers for the CultureInfo
public static GetNumbers ( this cultureInfo ) : Numbers
cultureInfo this The CultureInfo to get the Numbers
Результат System.Numbers

GetOrdinalRule() публичный статический Метод

GetOrdinalRule gets the CLDR ordinal PluralRule for the integer for the CultureInfo
public static GetOrdinalRule ( this cultureInfo, int value ) : PluralRule
cultureInfo this The CultureInfo to get the CLDR ordinal PluralRule for
value int The integer to get the ordinal PluralRule for
Результат PluralRule

GetOrdinalRules() публичный статический Метод

GetOrdinalRules gets the CLDR ordinal PluralRules for the CultureInfo
public static GetOrdinalRules ( this cultureInfo ) : PluralRule[]
cultureInfo this The CultureInfo to get the CLDR ordinal PluralRules for
Результат PluralRule[]

GetPluralRule() публичный статический Метод

GetPluralRule gets the CLDR PluralRule for the integer for the CultureInfo
public static GetPluralRule ( this cultureInfo, int value ) : PluralRule
cultureInfo this The CultureInfo to get the CLDR PluralRule for
value int The integer to get the PluralRule for
Результат PluralRule

GetPluralRules() публичный статический Метод

GetPluralRules gets the CLDR PluralRules for the CultureInfo
public static GetPluralRules ( this cultureInfo ) : PluralRule[]
cultureInfo this The CultureInfo to get the CLDR PluralRules for
Результат PluralRule[]

GetPostcodeRegex() публичный статический Метод

GetPostcodeRegex gets the postal code regular expression for the CultureInfo
public static GetPostcodeRegex ( this cultureInfo ) : string
cultureInfo this The CultureInfo to get the postal code regular expression for
Результат string

GetRegionInformation() публичный статический Метод

GetRegionInformation gets the RegionInformation for the CultureInfo
public static GetRegionInformation ( this cultureInfo ) : RegionInformation
cultureInfo this The CultureInfo to get the RegionInformation for
Результат RegionInformation

GetRuleBasedNumberFormatting() публичный статический Метод

GetRuleBasedNumberFormatting gets the CLDR RuleBasedNumberFormatting for the CultureInfo
public static GetRuleBasedNumberFormatting ( this cultureInfo ) : RuleBasedNumberFormatting
cultureInfo this The CultureInfo to get the RuleBasedNumberFormatting for
Результат RuleBasedNumberFormatting

GetUnitPatternSets() публичный статический Метод

GetUnitPatternSets gets the CLDR UnitPatternSets for the CultureInfo
public static GetUnitPatternSets ( this cultureInfo ) : UnitPatternSet[]
cultureInfo this The CultureInfo to get the UnitPatternSets for
Результат UnitPatternSet[]

GetYes() публичный статический Метод

GetYes gets the localized 'Yes' string for the CultureInfo
public static GetYes ( this cultureInfo ) : string
cultureInfo this The CultureInfo to get the localized 'Yes' string for
Результат string

GetYesShort() публичный статический Метод

GetYes gets the localized short 'Yes' string for the CultureInfo
public static GetYesShort ( this cultureInfo ) : string
cultureInfo this The CultureInfo to get the localized short 'Yes' string for
Результат string