C# Class FirstFloor.ModernUI.Localizable.Ordinalizing

Mostra file Open project: gro-ove/actools

Public Methods

Method Description
ConvertLong ( int v, string s ) : string

Long version: “1” → “First”, “2” → “Second”, …

ConvertShort ( int v, string s ) : string

Short version: “1” → “1st”, “2” → “2nd”, …

Private Methods

Method Description
BaseLong ( int v ) : string

Base version, takes strings from resources. Doesn’t consider different genders, forms and everything.

EnLong ( int v, string s ) : string
EnPostfix ( int v, string s ) : string
EsGetGenger ( string s ) : EsGenger
EsLong ( int v, string s ) : string
EsPostfix ( int v, string s ) : string
RuGetGenger ( string s ) : RuGenger
RuLong ( int v, string s ) : string
RuPostfix ( int v, string s ) : string
ZhCnLong ( int v, string s ) : string
ZhCnPostfix ( int v, string s ) : string

Method Details

ConvertLong() public static method

Long version: “1” → “First”, “2” → “Second”, …
public static ConvertLong ( int v, string s ) : string
v int Integer.
s string Subject string (for languages in which result might depend on a gender or something like that).
return string

ConvertShort() public static method

Short version: “1” → “1st”, “2” → “2nd”, …
public static ConvertShort ( int v, string s ) : string
v int Integer.
s string Subject string (for languages in which result might depend on a gender or something like that).
return string