C# 클래스 Pdoxcl2Sharp.InflectorExtensions

Inflector extensions
파일 보기 프로젝트 열기: nickbabcock/Pdoxcl2Sharp

공개 메소드들

메소드 설명
Camelize ( this input ) : string

Same as Pascalize except that the first character is lower case

Dasherize ( this underscoredWord ) : string

Replaces underscores with dashes in the string

Hyphenate ( this underscoredWord ) : string

Replaces underscores with hyphens in the string

Pascalize ( this input ) : string

By default, pascalize converts strings to UpperCamelCase also removing underscores

Pluralize ( this word, Plurality plurality = Plurality.Singular ) : string

Pluralizes the provided input considering irregular words

Singularize ( this word, Plurality plurality = Plurality.Plural ) : string

Singularizes the provided input considering irregular words

Underscore ( this input ) : string

Separates the input words with underscore

비공개 메소드들

메소드 설명
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
InflectorExtensions ( ) : System.Collections.Generic

메소드 상세

Camelize() 공개 정적인 메소드

Same as Pascalize except that the first character is lower case
public static Camelize ( this input ) : string
input this
리턴 string

Dasherize() 공개 정적인 메소드

Replaces underscores with dashes in the string
public static Dasherize ( this underscoredWord ) : string
underscoredWord this
리턴 string

Hyphenate() 공개 정적인 메소드

Replaces underscores with hyphens in the string
public static Hyphenate ( this underscoredWord ) : string
underscoredWord this
리턴 string

Pascalize() 공개 정적인 메소드

By default, pascalize converts strings to UpperCamelCase also removing underscores
public static Pascalize ( this input ) : string
input this
리턴 string

Pluralize() 공개 정적인 메소드

Pluralizes the provided input considering irregular words
public static Pluralize ( this word, Plurality plurality = Plurality.Singular ) : string
word this Word to be pluralized
plurality Plurality Normally you call Pluralize on singular words; but if you're unsure call it with Plurality.CouldBeEither
리턴 string

Singularize() 공개 정적인 메소드

Singularizes the provided input considering irregular words
public static Singularize ( this word, Plurality plurality = Plurality.Plural ) : string
word this Word to be singularized
plurality Plurality Normally you call Singularize on plural words; but if you're unsure call it with Plurality.CouldBeEither
리턴 string

Underscore() 공개 정적인 메소드

Separates the input words with underscore
public static Underscore ( this input ) : string
input this The string to be underscored
리턴 string