C# Class System.Web.Mvc.IronRuby.Extensions.Inflector

Afficher le fichier Open project: jschementi/ironrubymvc

Méthodes publiques

Méthode Description
Camelize ( this lowercaseAndUnderscoredWord ) : string
Dasherize ( this underscoredWord ) : string
Humanize ( this lowercaseAndUnderscoredWord ) : string
Ordinalize ( this number ) : string
Pascalize ( this lowercaseAndUnderscoredWord ) : string
Pluralize ( this word ) : string
Singularize ( this word ) : string
Titleize ( this word ) : string

Private Methods

Méthode Description
AddIrregular ( string singular, string plural ) : void
AddPlural ( string rule, string replacement ) : void
AddSingular ( string rule, string replacement ) : void
AddUncountable ( string word ) : void
ApplyRules ( IList rules, string word ) : string
Capitalize ( this word ) : string
Inflector ( ) : System.Collections.Generic
Uncapitalize ( this word ) : string
Underscore ( this pascalCasedWord ) : string

Method Details

Camelize() public static méthode

public static Camelize ( this lowercaseAndUnderscoredWord ) : string
lowercaseAndUnderscoredWord this
Résultat string

Dasherize() public static méthode

public static Dasherize ( this underscoredWord ) : string
underscoredWord this
Résultat string

Humanize() public static méthode

public static Humanize ( this lowercaseAndUnderscoredWord ) : string
lowercaseAndUnderscoredWord this
Résultat string

Ordinalize() public static méthode

public static Ordinalize ( this number ) : string
number this
Résultat string

Pascalize() public static méthode

public static Pascalize ( this lowercaseAndUnderscoredWord ) : string
lowercaseAndUnderscoredWord this
Résultat string

Pluralize() public static méthode

public static Pluralize ( this word ) : string
word this
Résultat string

Singularize() public static méthode

public static Singularize ( this word ) : string
word this
Résultat string

Titleize() public static méthode

public static Titleize ( this word ) : string
word this
Résultat string