C# Class inflector_extension.Inflector.AbstractInflector

Base implementation.
Originally implemented by http://andrewpeters.net/inflectornet/
Inheritance: IInflector
Show file Open project: little-sharps/inflector_extension

Public Methods

Method Description
AddDataDictionary ( IRuleApplier ruleApplier ) : void
AddDataDictionary ( string className, string dataName ) : void
Camelize ( string lowercaseAndUnderscoredWord ) : string
Capitalize ( string word ) : string
Dasherize ( string underscoredWord ) : string
ForeignKey ( string className, bool separateClassNameAndId ) : string
Humanize ( string lowercaseAndUnderscoredWord ) : string
Ordinalize ( string number ) : string
Pascalize ( string lowercaseAndUnderscoredWord ) : string
Pluralize ( string word ) : string
Singularize ( string word ) : string
Tableize ( string className ) : string
Titleize ( string word ) : string
Unaccent ( string word ) : string
Uncapitalize ( string word ) : string
Underscore ( string pascalCasedWord ) : string

Protected Methods

Method Description
AbstractInflector ( ) : System
AddCapitalize ( string rule, string replacement ) : void
AddIrregular ( string singular, string plural ) : void
AddPlural ( string rule, string replacement ) : void
AddSingular ( string rule, string replacement ) : void
AddUnaccent ( string rule, string replacement ) : void
AddUncountable ( string word ) : void
ApplyFirstMatchRule ( IEnumerable rules, string word ) : string
ApplyRules ( IEnumerable rules, string word ) : string

Method Details

AbstractInflector() protected method

protected AbstractInflector ( ) : System
return System

AddCapitalize() protected method

protected AddCapitalize ( string rule, string replacement ) : void
rule string
replacement string
return void

AddDataDictionary() public method

public AddDataDictionary ( IRuleApplier ruleApplier ) : void
ruleApplier IRuleApplier
return void

AddDataDictionary() public method

public AddDataDictionary ( string className, string dataName ) : void
className string
dataName string
return void

AddIrregular() protected method

protected AddIrregular ( string singular, string plural ) : void
singular string
plural string
return void

AddPlural() protected method

protected AddPlural ( string rule, string replacement ) : void
rule string
replacement string
return void

AddSingular() protected method

protected AddSingular ( string rule, string replacement ) : void
rule string
replacement string
return void

AddUnaccent() protected method

protected AddUnaccent ( string rule, string replacement ) : void
rule string
replacement string
return void

AddUncountable() protected method

protected AddUncountable ( string word ) : void
word string
return void

ApplyFirstMatchRule() protected method

protected ApplyFirstMatchRule ( IEnumerable rules, string word ) : string
rules IEnumerable
word string
return string

ApplyRules() protected method

protected ApplyRules ( IEnumerable rules, string word ) : string
rules IEnumerable
word string
return string

Camelize() public method

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

Capitalize() public method

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

Dasherize() public method

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

ForeignKey() public method

public ForeignKey ( string className, bool separateClassNameAndId ) : string
className string
separateClassNameAndId bool
return string

Humanize() public method

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

Ordinalize() public abstract method

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

Pascalize() public method

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

Pluralize() public method

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

Singularize() public method

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

Tableize() public method

public Tableize ( string className ) : string
className string
return string

Titleize() public method

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

Unaccent() public method

public Unaccent ( string word ) : string
word string
return string

Uncapitalize() public method

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

Underscore() public method

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