Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use type keywords #1339

Merged
merged 1 commit into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ internal class AfrikaansNumberToWordsConverter : GenderlessNumberToWordsConverte

public override string Convert(long number)
{
if (number > Int32.MaxValue || number < Int32.MinValue)
if (number > int.MaxValue || number < int.MinValue)
{
throw new NotImplementedException();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ internal class AzerbaijaniNumberToWordsConverter : GenderlessNumberToWordsConver

public override string Convert(long input)
{
if (input > Int32.MaxValue || input < Int32.MinValue)
if (input > int.MaxValue || input < int.MinValue)
{
throw new NotImplementedException();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public override string ConvertToOrdinal(int number)

public override string Convert(long input)
{
if (input > Int32.MaxValue || input < Int32.MinValue)
if (input > int.MaxValue || input < int.MinValue)
{
throw new NotImplementedException();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ internal class BulgarianNumberToWordsConverter : GenderedNumberToWordsConverter

private static readonly string[] HundredsOrdinalMap =
{
String.Empty, "стот", "двест", "трист", "четиристот", "петстот", "шестстот", "седемстот", "осемстот",
string.Empty, "стот", "двест", "трист", "четиристот", "петстот", "шестстот", "седемстот", "осемстот",
"деветстот"
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public CroatianNumberToWordsConverter(CultureInfo culture)

public override string Convert(long input)
{
if (input > Int32.MaxValue || input < Int32.MinValue)
if (input > int.MaxValue || input < int.MinValue)
{
throw new NotImplementedException();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ internal class FinnishNumberToWordsConverter : GenderlessNumberToWordsConverter

public override string Convert(long input)
{
if (input > Int32.MaxValue || input < Int32.MinValue)
if (input > int.MaxValue || input < int.MinValue)
{
throw new NotImplementedException();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public HebrewNumberToWordsConverter(CultureInfo culture)

public override string Convert(long input, GrammaticalGender gender, bool addAnd = true)
{
if (input > Int32.MaxValue || input < Int32.MinValue)
if (input > int.MaxValue || input < int.MinValue)
{
throw new NotImplementedException();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ internal class ItalianNumberToWordsConverter : GenderedNumberToWordsConverter
{
public override string Convert(long input, GrammaticalGender gender, bool addAnd = true)
{
if (input > Int32.MaxValue || input < Int32.MinValue)
if (input > int.MaxValue || input < int.MinValue)
{
throw new NotImplementedException();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public override string Convert(long input, GrammaticalGender gender, bool addAnd

if (input < 1000000000)
{
return GetMillions(input, gender) + (negativeNumber ? " inqas minn żero" : String.Empty);
return GetMillions(input, gender) + (negativeNumber ? " inqas minn żero" : string.Empty);
}

var billions = input / 1000000000;
Expand All @@ -58,7 +58,7 @@ public override string Convert(long input, GrammaticalGender gender, bool addAnd
return billionsText;
}

return $"{billionsText} u {millionsText}" + (negativeNumber ? " inqas minn żero" : String.Empty);
return $"{billionsText} u {millionsText}" + (negativeNumber ? " inqas minn żero" : string.Empty);
}

public override string ConvertToOrdinal(int number, GrammaticalGender gender)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ internal class NorwegianBokmalNumberToWordsConverter : GenderedNumberToWordsConv

public override string Convert(long number, GrammaticalGender gender, bool addAnd = true)
{
if (number > Int32.MaxValue || number < Int32.MinValue)
if (number > int.MaxValue || number < int.MinValue)
{
throw new NotImplementedException();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ internal class RomanianNumberToWordsConverter : GenderedNumberToWordsConverter
{
public override string Convert(long number, GrammaticalGender gender, bool addAnd = true)
{
if (number > Int32.MaxValue || number < Int32.MinValue)
if (number > int.MaxValue || number < int.MinValue)
{
throw new NotImplementedException();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public SerbianCyrlNumberToWordsConverter(CultureInfo culture)

public override string Convert(long input)
{
if (input > Int32.MaxValue || input < Int32.MinValue)
if (input > int.MaxValue || input < int.MinValue)
{
throw new NotImplementedException();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public SerbianNumberToWordsConverter(CultureInfo culture)

public override string Convert(long input)
{
if (input > Int32.MaxValue || input < Int32.MinValue)
if (input > int.MaxValue || input < int.MinValue)
{
throw new NotImplementedException();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public SlovenianNumberToWordsConverter(CultureInfo culture)

public override string Convert(long input)
{
if (input > Int32.MaxValue || input < Int32.MinValue)
if (input > int.MaxValue || input < int.MinValue)
{
throw new NotImplementedException();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ private class Fact

public override string Convert(long input, GrammaticalGender gender, bool addAnd = true)
{
if (input > Int32.MaxValue || input < Int32.MinValue)
if (input > int.MaxValue || input < int.MinValue)
{
throw new NotImplementedException();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ internal class UzbekCyrlNumberToWordConverter : GenderlessNumberToWordsConverter

public override string Convert(long input)
{
if (input > Int32.MaxValue || input < Int32.MinValue)
if (input > int.MaxValue || input < int.MinValue)
{
throw new NotImplementedException();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ internal class UzbekLatnNumberToWordConverter : GenderlessNumberToWordsConverter

public override string Convert(long input)
{
if (input > Int32.MaxValue || input < Int32.MinValue)
if (input > int.MaxValue || input < int.MinValue)
{
throw new NotImplementedException();
}
Expand Down