C# Class Simple.Generator.Strings.EnglishPluralizer.InflectorRule

Summary for the InflectorRule class
Exibir arquivo Open project: juanplopes/simple

Public Properties

Property Type Description
regex System.Text.RegularExpressions.Regex
replacement string

Public Methods

Method Description
Apply ( string word ) : string

Applies the specified word.

InflectorRule ( string regexPattern, string replacementText ) : System

Initializes a new instance of the InflectorRule class.

Method Details

Apply() public method

Applies the specified word.
public Apply ( string word ) : string
word string The word.
return string

InflectorRule() public method

Initializes a new instance of the InflectorRule class.
public InflectorRule ( string regexPattern, string replacementText ) : System
regexPattern string The regex pattern.
replacementText string The replacement text.
return System

Property Details

regex public_oe property

public Regex,System.Text.RegularExpressions regex
return System.Text.RegularExpressions.Regex

replacement public_oe property

public string replacement
return string