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
Afficher le fichier Open project: GuySmithFerrier/NCLDR

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

GetCharacters() public static méthode

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

GetDayPeriodRules() public static méthode

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

GetDelimiters() public static méthode

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

GetGenderListId() public static méthode

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
Résultat string

GetLayout() public static méthode

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

GetLikelySubTag() public static méthode

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
Résultat string

GetListPatterns() public static méthode

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

GetNo() public static méthode

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
Résultat string

GetNoShort() public static méthode

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
Résultat string

GetNumbers() public static méthode

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

GetOrdinalRule() public static méthode

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
Résultat PluralRule

GetOrdinalRules() public static méthode

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
Résultat PluralRule[]

GetPluralRule() public static méthode

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
Résultat PluralRule

GetPluralRules() public static méthode

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

GetPostcodeRegex() public static méthode

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
Résultat string

GetRegionInformation() public static méthode

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

GetRuleBasedNumberFormatting() public static méthode

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

GetUnitPatternSets() public static méthode

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

GetYes() public static méthode

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
Résultat string

GetYesShort() public static méthode

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
Résultat string