C# Class NCldr.Extensions.CultureExtensions

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

Méthodes publiques

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

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

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

GetCharacters() public static méthode

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

GetCurrencyDisplayName() public static méthode

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

GetDayPeriodRules() public static méthode

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

GetDelimiters() public static méthode

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

GetGenderListId() public static méthode

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

GetLayout() public static méthode

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

GetLikelySubTag() public static méthode

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

GetListPatterns() public static méthode

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

GetNo() public static méthode

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

GetNoShort() public static méthode

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

GetNumbers() public static méthode

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
Résultat System.Numbers

GetOrdinalRule() public static méthode

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

GetOrdinalRules() public static méthode

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

GetPluralRule() public static méthode

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

GetPluralRules() public static méthode

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

GetRuleBasedNumberFormatting() public static méthode

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

GetUnitPatternSets() public static méthode

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

GetYes() public static méthode

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

GetYesShort() public static méthode

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