Localizes the ordinal form of a number.
public interface IOrdinalizerDerived
↳ ILongOrdinalizer
Ordinalizes the number using the default grammatical form.
string Convert(int number, string numberString);number System.Int32
The numeric value being ordinalized.
numberString System.String
The cardinal representation of the number.
System.String
The ordinalized text.
Ordinalizes the number using the provided grammatical gender.
string Convert(int number, string numberString, Humanizer.GrammaticalGender gender);number System.Int32
The numeric value being ordinalized.
numberString System.String
The cardinal representation of the number.
gender GrammaticalGender
The grammatical gender to use when the locale requires one.
System.String
The ordinalized text.
Ordinalizes the number using the provided grammatical gender and word form.
string Convert(int number, string numberString, Humanizer.GrammaticalGender gender, Humanizer.WordForm wordForm);number System.Int32
The numeric value being ordinalized.
numberString System.String
The cardinal representation of the number.
gender GrammaticalGender
The grammatical gender to use when the locale requires one.
wordForm WordForm
The word form to use when the locale distinguishes abbreviations from full words.
System.String
The ordinalized text.
Ordinalizes the number using a locale-specific word form.
string Convert(int number, string numberString, Humanizer.WordForm wordForm);number System.Int32
The numeric value being ordinalized.
numberString System.String
The cardinal representation of the number.
wordForm WordForm
The word form to use when the locale distinguishes abbreviations from full words.
System.String
The ordinalized text.