C# 클래스 Framework.Core.Helpers.Inflector

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

공개 메소드들

메소드 설명
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
AddIrregularRules ( ) : void
AddPlural ( String rule, String replacement ) : void
AddPluralRules ( ) : void
AddSingular ( String rule, String replacement ) : void
AddSingularRules ( ) : void
AddUncountable ( String word ) : void
AddUncountableRules ( ) : void
ApplyRules ( IEnumerable rules, String word ) : String
Inflector ( ) : System

Initializes static members of the Inflector class.

메소드 상세

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