C# Class NCldr.Extensions.CultureExtensions

CultureExtensions is a set of methods that provide easy access to NCLDR data for cultures
Show file Open project: GuySmithFerrier/NCLDR Class Usage Examples

Public Methods

Method Description
GetCasing ( string cultureName ) : Casing

GetCasing gets the CLDR Casing for the culture

GetCharacters ( string cultureName ) : Characters

GetCharacters gets the CLDR Characters for the culture

GetCurrencyDisplayName ( string currencyName, string languageId ) : string

GetCurrencyDisplayName gets the localized display name of a currency in a given language

GetDayPeriodRules ( string cultureName ) : DayPeriodRule[]

GetDayPeriodRules gets the CLDR DayPeriodRules for the culture

GetDelimiters ( string cultureName ) : Delimiters

GetDelimiters gets the CLDR Delimiters for the culture

GetGenderListId ( string cultureName ) : string

GetGenderListId gets the CLDR GenderList identifier for the culture

GetLayout ( string cultureName ) : Layout

GetLayout gets the CLDR Layout for the culture

GetLikelySubTag ( string cultureName ) : string

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

GetListPatterns ( string cultureName ) : ListPattern[]

GetListPatterns gets the CLDR ListPatterns for the culture

GetNo ( string cultureName ) : string

GetNo gets the localized 'No' string for the culture

GetNoShort ( string cultureName ) : string

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

GetNumbers ( string cultureName ) : Numbers

GetNumbers gets the CLDR Numbers for the culture

GetOrdinalRule ( string cultureName, int value ) : PluralRule

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

GetOrdinalRules ( string cultureName ) : PluralRule[]

GetOrdinalRules gets the CLDR ordinal PluralRules for the culture

GetPluralRule ( string cultureName, int value ) : PluralRule

GetPluralRule gets the CLDR PluralRule for the integer for the culture

GetPluralRules ( string cultureName ) : PluralRule[]

GetPluralRules gets the CLDR PluralRules for the culture

GetRuleBasedNumberFormatting ( string cultureName ) : RuleBasedNumberFormatting

GetRuleBasedNumberFormatting gets the CLDR RuleBasedNumberFormatting for the culture

GetUnitPatternSets ( string cultureName ) : UnitPatternSet[]

GetUnitPatternSets gets the CLDR UnitPatternSets for the culture

GetYes ( string cultureName ) : string

GetYes gets the localized 'Yes' string for the culture

GetYesShort ( string cultureName ) : string

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

Private Methods

Method Description
GetLanguage ( string cultureName ) : string

GetLanguage gets the language from a culture name

GetPluralRule ( PluralRule pluralRules, int value ) : PluralRule

GetPluralRule gets the CLDR PluralRule for the integer from the array of PluralRules

GetPluralRules ( PluralRuleSet pluralRuleSets, string cultureName ) : PluralRule[]

GetPluralRules gets the PluralRules that match the language of a culture from an array of sets of PluralRules

Method Details

GetCasing() public static method

GetCasing gets the CLDR Casing for the culture
public static GetCasing ( string cultureName ) : Casing
cultureName string The culture name to get the CLDR Casing for
return Casing

GetCharacters() public static method

GetCharacters gets the CLDR Characters for the culture
public static GetCharacters ( string cultureName ) : Characters
cultureName string The culture name to get the CLDR Characters for
return Characters

GetCurrencyDisplayName() public static method

GetCurrencyDisplayName gets the localized display name of a currency in a given language
public static GetCurrencyDisplayName ( string currencyName, string languageId ) : string
currencyName string The currency to get the localized display name for
languageId string The language in which to get the localized display name
return string

GetDayPeriodRules() public static method

GetDayPeriodRules gets the CLDR DayPeriodRules for the culture
public static GetDayPeriodRules ( string cultureName ) : DayPeriodRule[]
cultureName string The culture name to get the CLDR DayPeriodRules for
return DayPeriodRule[]

GetDelimiters() public static method

GetDelimiters gets the CLDR Delimiters for the culture
public static GetDelimiters ( string cultureName ) : Delimiters
cultureName string The culture name to get the CLDR Delimiters for
return Delimiters

GetGenderListId() public static method

GetGenderListId gets the CLDR GenderList identifier for the culture
public static GetGenderListId ( string cultureName ) : string
cultureName string The culture name to get the CLDR GenderList identifier for
return string

GetLayout() public static method

GetLayout gets the CLDR Layout for the culture
public static GetLayout ( string cultureName ) : Layout
cultureName string The culture name to get the CLDR Layout for
return Layout

GetLikelySubTag() public static method

GetLikelySubTag gets the most likely child culture name from a parent culture name
public static GetLikelySubTag ( string cultureName ) : string
cultureName string The culture name to get the sub tag for
return string

GetListPatterns() public static method

GetListPatterns gets the CLDR ListPatterns for the culture
public static GetListPatterns ( string cultureName ) : ListPattern[]
cultureName string The culture name to get the CLDR ListPatterns for
return ListPattern[]

GetNo() public static method

GetNo gets the localized 'No' string for the culture
public static GetNo ( string cultureName ) : string
cultureName string The culture name to get the localized 'No' string for
return string

GetNoShort() public static method

GetNo gets the localized short 'No' string for the culture
public static GetNoShort ( string cultureName ) : string
cultureName string The culture name to get the localized short 'No' string for
return string

GetNumbers() public static method

GetNumbers gets the CLDR Numbers for the culture
public static GetNumbers ( string cultureName ) : Numbers
cultureName string The culture name to get the CLDR Numbers for
return System.Numbers

GetOrdinalRule() public static method

GetOrdinalRule gets the CLDR ordinal PluralRule for the integer for the culture
public static GetOrdinalRule ( string cultureName, int value ) : PluralRule
cultureName string The culture name 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 culture
public static GetOrdinalRules ( string cultureName ) : PluralRule[]
cultureName string The culture name to get the CLDR ordinal PluralRules for
return PluralRule[]

GetPluralRule() public static method

GetPluralRule gets the CLDR PluralRule for the integer for the culture
public static GetPluralRule ( string cultureName, int value ) : PluralRule
cultureName string The culture name 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 culture
public static GetPluralRules ( string cultureName ) : PluralRule[]
cultureName string The culture name to get the CLDR PluralRules for
return PluralRule[]

GetRuleBasedNumberFormatting() public static method

GetRuleBasedNumberFormatting gets the CLDR RuleBasedNumberFormatting for the culture
public static GetRuleBasedNumberFormatting ( string cultureName ) : RuleBasedNumberFormatting
cultureName string The culture name to get the CLDR RuleBasedNumberFormatting for
return RuleBasedNumberFormatting

GetUnitPatternSets() public static method

GetUnitPatternSets gets the CLDR UnitPatternSets for the culture
public static GetUnitPatternSets ( string cultureName ) : UnitPatternSet[]
cultureName string The culture name to get the CLDR UnitPatternSets for
return UnitPatternSet[]

GetYes() public static method

GetYes gets the localized 'Yes' string for the culture
public static GetYes ( string cultureName ) : string
cultureName string The culture name to get the localized 'Yes' string for
return string

GetYesShort() public static method

GetYes gets the localized short 'Yes' string for the culture
public static GetYesShort ( string cultureName ) : string
cultureName string The culture name to get the localized short 'Yes' string for
return string