C# Class 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
显示文件 Open project: GuySmithFerrier/NCLDR

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

GetCasing() public static method

GetCasing gets the CLDR Casing for the CultureInfo
public static GetCasing ( this cultureInfo ) : Casing
cultureInfo this The CultureInfo to get the CLDR Casing for
return Casing

GetCharacters() public static method

GetCharacters gets the CLDR Characters for the CultureInfo
public static GetCharacters ( this cultureInfo ) : Characters
cultureInfo this The CultureInfo to get the CLDR Characters for
return Characters

GetDayPeriodRules() public static method

GetDayPeriodRules gets the CLDR DayPeriodRules for the CultureInfo
public static GetDayPeriodRules ( this cultureInfo ) : DayPeriodRule[]
cultureInfo this The CultureInfo to get the CLDR DayPeriodRules for
return DayPeriodRule[]

GetDelimiters() public static method

GetDelimiters gets the CLDR Delimiters for the CultureInfo
public static GetDelimiters ( this cultureInfo ) : Delimiters
cultureInfo this The CultureInfo to get the CLDR Delimiters for
return Delimiters

GetGenderListId() public static method

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
return string

GetLayout() public static method

GetLayout gets the CLDR Layout for the CultureInfo
public static GetLayout ( this cultureInfo ) : Layout
cultureInfo this The CultureInfo to get the CLDR Layout for
return Layout

GetLikelySubTag() public static method

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
return string

GetListPatterns() public static method

GetListPatterns gets the CLDR ListPatterns for the CultureInfo
public static GetListPatterns ( this cultureInfo ) : ListPattern[]
cultureInfo this The CultureInfo to get the CLDR ListPatterns for
return ListPattern[]

GetNo() public static method

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
return string

GetNoShort() public static method

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
return string

GetNumbers() public static method

GetNumbers gets the CLDR Numbers for the CultureInfo
public static GetNumbers ( this cultureInfo ) : Numbers
cultureInfo this The CultureInfo to get the Numbers
return System.Numbers

GetOrdinalRule() public static method

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
return PluralRule

GetOrdinalRules() public static method

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
return PluralRule[]

GetPluralRule() public static method

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
return PluralRule

GetPluralRules() public static method

GetPluralRules gets the CLDR PluralRules for the CultureInfo
public static GetPluralRules ( this cultureInfo ) : PluralRule[]
cultureInfo this The CultureInfo to get the CLDR PluralRules for
return PluralRule[]

GetPostcodeRegex() public static method

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
return string

GetRegionInformation() public static method

GetRegionInformation gets the RegionInformation for the CultureInfo
public static GetRegionInformation ( this cultureInfo ) : RegionInformation
cultureInfo this The CultureInfo to get the RegionInformation for
return RegionInformation

GetRuleBasedNumberFormatting() public static method

GetRuleBasedNumberFormatting gets the CLDR RuleBasedNumberFormatting for the CultureInfo
public static GetRuleBasedNumberFormatting ( this cultureInfo ) : RuleBasedNumberFormatting
cultureInfo this The CultureInfo to get the RuleBasedNumberFormatting for
return RuleBasedNumberFormatting

GetUnitPatternSets() public static method

GetUnitPatternSets gets the CLDR UnitPatternSets for the CultureInfo
public static GetUnitPatternSets ( this cultureInfo ) : UnitPatternSet[]
cultureInfo this The CultureInfo to get the UnitPatternSets for
return UnitPatternSet[]

GetYes() public static method

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
return string

GetYesShort() public static method

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
return string