C# Class RssToolkit.Pluralizer

Used to convert to Plural or Singular
Afficher le fichier Open project: Throy/derp-octo-robot

Méthodes publiques

Méthode Description
IsNounPluralOfNoun ( string plural, string singular ) : bool

Determines whether [is noun plural of noun] [the specified plural].

ToPlural ( string noun ) : string

Converts to the plural.

ToSingular ( string noun ) : string

Converts to the singular.

Private Methods

Méthode Description
AdjustCase ( string s, string template ) : string
Pluralizer ( ) : System
ToPluralInternal ( string s ) : string
ToSingularInternal ( string s ) : string

Method Details

IsNounPluralOfNoun() public static méthode

Determines whether [is noun plural of noun] [the specified plural].
public static IsNounPluralOfNoun ( string plural, string singular ) : bool
plural string The plural.
singular string The singular.
Résultat bool

ToPlural() public static méthode

Converts to the plural.
public static ToPlural ( string noun ) : string
noun string The word.
Résultat string

ToSingular() public static méthode

Converts to the singular.
public static ToSingular ( string noun ) : string
noun string The word.
Résultat string