C# 클래스 Aqueduct.Extensions.Inflector

Summary for the Inflector class
파일 보기 프로젝트 열기: aqueduct/Aqueduct.SitecoreLib

공개 메소드들

메소드 설명
AddOrdinalSuffix ( this number ) : string

Adds the ordinal suffix.

AddUnderscores ( this pascalCasedWord ) : string

Adds the underscores.

ConvertUnderscoresToDashes ( this underscoredWord ) : string

Converts the underscores to dashes.

MakeInitialCaps ( this word ) : string

Makes the initial caps.

MakeInitialLowerCase ( this word ) : string

Makes the initial lower case.

MakePlural ( this word ) : string

Makes the plural.

MakeSingular ( this word ) : string

Makes the singular.

ToCamelCase ( this lowercaseAndUnderscoredWord ) : string

Converts the string to camel case.

ToHumanCase ( this lowercaseAndUnderscoredWord ) : string

Converts the string to human case.

ToPascalCase ( this lowercaseAndUnderscoredWord ) : string

Converts the string to pascal case.

ToPascalCase ( this text, bool removeUnderscores ) : string

Converts text to pascal case...

ToProper ( this sourceString ) : string

Convert string to proper case

ToTitleCase ( this word ) : string

Converts the string to title case.

비공개 메소드들

메소드 설명
AddIrregularRule ( string singular, string plural ) : void

Adds the irregular rule.

AddPluralRule ( string rule, string replacement ) : void

Adds the plural rule.

AddSingularRule ( string rule, string replacement ) : void

Adds the singular rule.

AddUnknownCountRule ( string word ) : void

Adds the unknown count rule.

ApplyRules ( IList rules, string word ) : string

Applies the rules.

Inflector ( ) : System

Initializes the Inflector class.

메소드 상세

AddOrdinalSuffix() 공개 정적인 메소드

Adds the ordinal suffix.
public static AddOrdinalSuffix ( this number ) : string
number this The number.
리턴 string

AddUnderscores() 공개 정적인 메소드

Adds the underscores.
public static AddUnderscores ( this pascalCasedWord ) : string
pascalCasedWord this The pascal cased word.
리턴 string

ConvertUnderscoresToDashes() 공개 정적인 메소드

Converts the underscores to dashes.
public static ConvertUnderscoresToDashes ( this underscoredWord ) : string
underscoredWord this The underscored word.
리턴 string

MakeInitialCaps() 공개 정적인 메소드

Makes the initial caps.
public static MakeInitialCaps ( this word ) : string
word this The word.
리턴 string

MakeInitialLowerCase() 공개 정적인 메소드

Makes the initial lower case.
public static MakeInitialLowerCase ( this word ) : string
word this The word.
리턴 string

MakePlural() 공개 정적인 메소드

Makes the plural.
public static MakePlural ( this word ) : string
word this The word.
리턴 string

MakeSingular() 공개 정적인 메소드

Makes the singular.
public static MakeSingular ( this word ) : string
word this The word.
리턴 string

ToCamelCase() 공개 정적인 메소드

Converts the string to camel case.
public static ToCamelCase ( this lowercaseAndUnderscoredWord ) : string
lowercaseAndUnderscoredWord this The lowercase and underscored word.
리턴 string

ToHumanCase() 공개 정적인 메소드

Converts the string to human case.
public static ToHumanCase ( this lowercaseAndUnderscoredWord ) : string
lowercaseAndUnderscoredWord this The lowercase and underscored word.
리턴 string

ToPascalCase() 공개 정적인 메소드

Converts the string to pascal case.
public static ToPascalCase ( this lowercaseAndUnderscoredWord ) : string
lowercaseAndUnderscoredWord this The lowercase and underscored word.
리턴 string

ToPascalCase() 공개 정적인 메소드

Converts text to pascal case...
public static ToPascalCase ( this text, bool removeUnderscores ) : string
text this The text.
removeUnderscores bool if set to true [remove underscores].
리턴 string

ToProper() 공개 정적인 메소드

Convert string to proper case
public static ToProper ( this sourceString ) : string
sourceString this The source string.
리턴 string

ToTitleCase() 공개 정적인 메소드

Converts the string to title case.
public static ToTitleCase ( this word ) : string
word this The word.
리턴 string