C# Class Framework.Core.Helpers.Inflector

The Inflector class transforms words from one form to another. For example, from singular to plural.
Afficher le fichier Open project: coreframework/Core-Framework

Méthodes publiques

Méthode Description
Pluralize ( String word ) : String

Return the plural of a word.

Singularize ( String word ) : String

Return the singular of a word.

Private Methods

Méthode Description
AddIrregular ( String singular, String plural ) : void
AddIrregularRules ( ) : void
AddPlural ( String rule, String replacement ) : void
AddPluralRules ( ) : void
AddSingular ( String rule, String replacement ) : void
AddSingularRules ( ) : void
AddUncountable ( String word ) : void
AddUncountableRules ( ) : void
ApplyRules ( IEnumerable rules, String word ) : String
Inflector ( ) : System

Initializes static members of the Inflector class.

Method Details

Pluralize() public static méthode

Return the plural of a word.
public static Pluralize ( String word ) : String
word String The singular form.
Résultat String

Singularize() public static méthode

Return the singular of a word.
public static Singularize ( String word ) : String
word String The plural form.
Résultat String