Skip to content

Commit

Permalink
Update public API with new WordForm type and parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Serrano committed Jan 27, 2022
1 parent 748e804 commit 6c1ac03
Showing 1 changed file with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -664,13 +664,20 @@ namespace Humanizer
public class static NumberToWordsExtension
{
public static string ToOrdinalWords(this int number, System.Globalization.CultureInfo culture = null) { }
public static string ToOrdinalWords(this int number, Humanizer.WordForm wordForm, System.Globalization.CultureInfo culture = null) { }
public static string ToOrdinalWords(this int number, Humanizer.GrammaticalGender gender, System.Globalization.CultureInfo culture = null) { }
public static string ToOrdinalWords(this int number, Humanizer.GrammaticalGender gender, Humanizer.WordForm wordForm, System.Globalization.CultureInfo culture = null) { }
public static string ToTuple(this int number, System.Globalization.CultureInfo culture = null) { }
public static string ToWords(this int number, System.Globalization.CultureInfo culture = null) { }
public static string ToWords(this int number, Humanizer.WordForm wordForm, System.Globalization.CultureInfo culture = null) { }
public static string ToWords(this int number, bool addAnd, System.Globalization.CultureInfo culture = null) { }
public static string ToWords(this int number, bool addAnd, Humanizer.WordForm wordForm, System.Globalization.CultureInfo culture = null) { }
public static string ToWords(this int number, Humanizer.GrammaticalGender gender, System.Globalization.CultureInfo culture = null) { }
public static string ToWords(this int number, Humanizer.WordForm wordForm, Humanizer.GrammaticalGender gender, System.Globalization.CultureInfo culture = null) { }
public static string ToWords(this long number, System.Globalization.CultureInfo culture = null, bool addAnd = True) { }
public static string ToWords(this long number, Humanizer.WordForm wordForm, System.Globalization.CultureInfo culture = null, bool addAnd = False) { }
public static string ToWords(this long number, Humanizer.GrammaticalGender gender, System.Globalization.CultureInfo culture = null) { }
public static string ToWords(this long number, Humanizer.WordForm wordForm, Humanizer.GrammaticalGender gender, System.Globalization.CultureInfo culture = null) { }
}
public class On
{
Expand Down Expand Up @@ -1540,13 +1547,21 @@ namespace Humanizer
public class static OrdinalizeExtensions
{
public static string Ordinalize(this string numberString) { }
public static string Ordinalize(this string numberString, Humanizer.WordForm wordForm) { }
public static string Ordinalize(this string numberString, System.Globalization.CultureInfo culture) { }
public static string Ordinalize(this string numberString, System.Globalization.CultureInfo culture, Humanizer.WordForm wordForm) { }
public static string Ordinalize(this string numberString, Humanizer.GrammaticalGender gender) { }
public static string Ordinalize(this string numberString, Humanizer.GrammaticalGender gender, Humanizer.WordForm wordForm) { }
public static string Ordinalize(this string numberString, Humanizer.GrammaticalGender gender, System.Globalization.CultureInfo culture) { }
public static string Ordinalize(this string numberString, Humanizer.GrammaticalGender gender, System.Globalization.CultureInfo culture, Humanizer.WordForm wordForm) { }
public static string Ordinalize(this int number) { }
public static string Ordinalize(this int number, Humanizer.WordForm wordForm) { }
public static string Ordinalize(this int number, System.Globalization.CultureInfo culture) { }
public static string Ordinalize(this int number, System.Globalization.CultureInfo culture, Humanizer.WordForm wordForm) { }
public static string Ordinalize(this int number, Humanizer.GrammaticalGender gender) { }
public static string Ordinalize(this int number, Humanizer.GrammaticalGender gender, Humanizer.WordForm wordForm) { }
public static string Ordinalize(this int number, Humanizer.GrammaticalGender gender, System.Globalization.CultureInfo culture) { }
public static string Ordinalize(this int number, Humanizer.GrammaticalGender gender, System.Globalization.CultureInfo culture, Humanizer.WordForm wordForm) { }
}
public enum Plurality
{
Expand Down Expand Up @@ -1639,6 +1654,11 @@ namespace Humanizer
{
public static string Tupleize(this int input) { }
}
public enum WordForm
{
Normal = 0,
Abbreviation = 1,
}
}
namespace Humanizer.Bytes
{
Expand Down Expand Up @@ -1941,10 +1961,15 @@ namespace Humanizer.Localisation.NumberToWords
public interface INumberToWordsConverter
{
string Convert(long number);
string Convert(long number, Humanizer.WordForm wordForm);
string Convert(long number, bool addAnd);
string Convert(long number, bool addAnd, Humanizer.WordForm wordForm);
string Convert(long number, Humanizer.GrammaticalGender gender, bool addAnd = True);
string Convert(long number, Humanizer.WordForm wordForm, Humanizer.GrammaticalGender gender, bool addAnd = True);
string ConvertToOrdinal(int number);
string ConvertToOrdinal(int number, Humanizer.WordForm wordForm);
string ConvertToOrdinal(int number, Humanizer.GrammaticalGender gender);
string ConvertToOrdinal(int number, Humanizer.GrammaticalGender gender, Humanizer.WordForm wordForm);
string ConvertToTuple(int number);
}
}
Expand All @@ -1953,7 +1978,9 @@ namespace Humanizer.Localisation.Ordinalizers
public interface IOrdinalizer
{
string Convert(int number, string numberString);
string Convert(int number, string numberString, Humanizer.WordForm wordForm);
string Convert(int number, string numberString, Humanizer.GrammaticalGender gender);
string Convert(int number, string numberString, Humanizer.GrammaticalGender gender, Humanizer.WordForm wordForm);
}
}
namespace Humanizer.Localisation.TimeToClockNotation
Expand Down

0 comments on commit 6c1ac03

Please sign in to comment.