C# Class Frapid.Mapper.Database.Inflector

显示文件 Open project: frapid/frapid

Public Methods

Method Description
AddOrdinalSuffix ( string number ) : string
AddUnderscores ( string pascalCasedWord ) : string
ConvertUnderscoresToDashes ( string underscoredWord ) : string
IsStringNumeric ( string str ) : bool
MakeInitialCaps ( string word ) : string
MakeInitialLowerCase ( string word ) : string
MakePlural ( string word ) : string
MakeSingular ( string word ) : string
ToHumanCase ( string lowercaseAndUnderscoredWord ) : string
ToTitleCase ( string word ) : string

Private Methods

Method Description
AddIrregularRule ( string singular, string plural ) : void
AddPluralRule ( string rule, string replacement ) : void
AddSingularRule ( string rule, string replacement ) : void
AddUnknownCountRule ( string word ) : void
ApplyRules ( IList rules, string word ) : string
Inflector ( ) : System.Collections.Generic

Method Details

AddOrdinalSuffix() public static method

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

AddUnderscores() public static method

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

ConvertUnderscoresToDashes() public static method

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

IsStringNumeric() public static method

public static IsStringNumeric ( string str ) : bool
str string
return bool

MakeInitialCaps() public static method

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

MakeInitialLowerCase() public static method

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

MakePlural() public static method

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

MakeSingular() public static method

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

ToHumanCase() public static method

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

ToTitleCase() public static method

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