C# Class Inflector.Net.Inflector

Mostra file Open project: bibliopedia/bibliopedia

Public Methods

Method Description
Camelize ( string lowercaseAndUnderscoredWord ) : string
Capitalize ( string word ) : string
Dasherize ( string underscoredWord ) : string
Humanize ( string lowercaseAndUnderscoredWord ) : string
Ordinalize ( string number ) : string
Pascalize ( string lowercaseAndUnderscoredWord ) : string
Pluralize ( string word ) : string
Singularize ( string word ) : string
Titleize ( string word ) : string
Uncapitalize ( string word ) : string
Underscore ( string pascalCasedWord ) : string

Private Methods

Method Description
AddIrregular ( string singular, string plural ) : void
AddPlural ( string rule, string replacement ) : void
AddSingular ( string rule, string replacement ) : void
AddUncountable ( string word ) : void
ApplyRules ( List rules, string word ) : string
Inflector ( ) : System.Collections.Generic

Method Details

Camelize() public static method

public static Camelize ( string lowercaseAndUnderscoredWord ) : string
lowercaseAndUnderscoredWord string
return string

Capitalize() public static method

public static Capitalize ( string word ) : string
word string
return string

Dasherize() public static method

public static Dasherize ( string underscoredWord ) : string
underscoredWord string
return string

Humanize() public static method

public static Humanize ( string lowercaseAndUnderscoredWord ) : string
lowercaseAndUnderscoredWord string
return string

Ordinalize() public static method

public static Ordinalize ( string number ) : string
number string
return string

Pascalize() public static method

public static Pascalize ( string lowercaseAndUnderscoredWord ) : string
lowercaseAndUnderscoredWord string
return string

Pluralize() public static method

public static Pluralize ( string word ) : string
word string
return string

Singularize() public static method

public static Singularize ( string word ) : string
word string
return string

Titleize() public static method

public static Titleize ( string word ) : string
word string
return string

Uncapitalize() public static method

public static Uncapitalize ( string word ) : string
word string
return string

Underscore() public static method

public static Underscore ( string pascalCasedWord ) : string
pascalCasedWord string
return string