C# 클래스 Raven.Light.Util.Inflector

The Inflector class transforms words from one form to another. For example, from singular to plural.
파일 보기 프로젝트 열기: hibernating-rhinos/Raven.Light

공개 메소드들

메소드 설명
Capitalize ( string word ) : string

Capitalizes a word.

Pluralize ( string word ) : string

Return the plural of a word.

Singularize ( string word ) : string

Return the singular of a word.

비공개 메소드들

메소드 설명
AddIrregular ( string singular, string plural ) : void
AddPlural ( string rule, string replacement ) : void
AddSingular ( string rule, string replacement ) : void
AddUncountable ( string word ) : void
ApplyRules ( IList rules, string word ) : string
Inflector ( ) : System.Collections

메소드 상세

Capitalize() 공개 정적인 메소드

Capitalizes a word.
public static Capitalize ( string word ) : string
word string The word to be capitalized.
리턴 string

Pluralize() 공개 정적인 메소드

Return the plural of a word.
public static Pluralize ( string word ) : string
word string The singular form
리턴 string

Singularize() 공개 정적인 메소드

Return the singular of a word.
public static Singularize ( string word ) : string
word string The plural form
리턴 string