Skip to main content
Version: 4.0 (next)

Humanizer.ILongOrdinalizer

ILongOrdinalizer Interface​

Localizes the ordinal form of a 64-bit integer.

public interface ILongOrdinalizer : Humanizer.IOrdinalizer

Implements IOrdinalizer

Remarks​

Implement this interface when registering a custom ordinalizer that supports values outside the System.Int32 range. Existing IOrdinalizer implementations remain supported for 32-bit values.

Methods​

ILongOrdinalizer.Convert(long, string) Method​

Ordinalizes the number using the default grammatical form.

string Convert(long number, string numberString);
Parameters​

number System.Int64

The numeric value being ordinalized.

numberString System.String

The cardinal representation of the number.

Returns​

System.String
The ordinalized text.

ILongOrdinalizer.Convert(long, string, GrammaticalGender) Method​

Ordinalizes the number using the provided grammatical gender.

string Convert(long number, string numberString, Humanizer.GrammaticalGender gender);
Parameters​

number System.Int64

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.

Returns​

System.String
The ordinalized text.

ILongOrdinalizer.Convert(long, string, GrammaticalGender, WordForm) Method​

Ordinalizes the number using the provided grammatical gender and word form.

string Convert(long number, string numberString, Humanizer.GrammaticalGender gender, Humanizer.WordForm wordForm);
Parameters​

number System.Int64

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.

Returns​

System.String
The ordinalized text.

ILongOrdinalizer.Convert(long, string, WordForm) Method​

Ordinalizes the number using a locale-specific word form.

string Convert(long number, string numberString, Humanizer.WordForm wordForm);
Parameters​

number System.Int64

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.

Returns​

System.String
The ordinalized text.