From 77789936bbe5d4fa7294634c540525bf7490f736 Mon Sep 17 00:00:00 2001 From: Luiz Strobelt Date: Wed, 27 Oct 2021 12:14:29 -0300 Subject: [PATCH] Address PR suggestions --- .../Humanizer.Tests.Shared.projitems | 2 + .../en/TimeToClockNotationTests.cs | 24 - .../pt-BR/TimeToClockNotationTests.cs | 36 + ...lTest.Approve_Public_Api.approved.txt.orig | 1955 ----------------- ...provalTest.approve_public_api.approved.txt | 10 +- ...meOnlyToClockNotationConvertersRegistry.cs | 2 +- ...ugueseTimeOnlyToClockNotationConverter.cs} | 2 +- 7 files changed, 45 insertions(+), 1986 deletions(-) create mode 100644 src/Humanizer.Tests.Shared/Localisation/pt-BR/TimeToClockNotationTests.cs delete mode 100644 src/Humanizer.Tests/ApiApprover/PublicApiApprovalTest.Approve_Public_Api.approved.txt.orig rename src/Humanizer/Localisation/TimeToClockNotation/{PtBrTimeOnlyToClockNotationConverter.cs => BrazilianPortugueseTimeOnlyToClockNotationConverter.cs} (91%) diff --git a/src/Humanizer.Tests.Shared/Humanizer.Tests.Shared.projitems b/src/Humanizer.Tests.Shared/Humanizer.Tests.Shared.projitems index d2a2bcb77..f67af31f6 100644 --- a/src/Humanizer.Tests.Shared/Humanizer.Tests.Shared.projitems +++ b/src/Humanizer.Tests.Shared/Humanizer.Tests.Shared.projitems @@ -25,6 +25,7 @@ + @@ -36,6 +37,7 @@ + diff --git a/src/Humanizer.Tests.Shared/Localisation/en/TimeToClockNotationTests.cs b/src/Humanizer.Tests.Shared/Localisation/en/TimeToClockNotationTests.cs index 4f341c3e4..3b424939f 100644 --- a/src/Humanizer.Tests.Shared/Localisation/en/TimeToClockNotationTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/en/TimeToClockNotationTests.cs @@ -30,30 +30,6 @@ public void ConvertToClockNotationTimeOnlyStringEnUs(int hours, int minutes, str var actualResult = new TimeOnly(hours, minutes).ToClockNotation(); Assert.Equal(expectedResult, actualResult); } - - [UseCulture("pt-BR")] - [Theory] - [InlineData(00, 00, "meia-noite")] - [InlineData(04, 00, "quatro em ponto")] - [InlineData(05, 01, "cinco e um")] - [InlineData(06, 05, "seis e cinco")] - [InlineData(07, 10, "sete e dez")] - [InlineData(08, 15, "oito e quinze")] - [InlineData(09, 20, "nove e vinte")] - [InlineData(10, 25, "dez e vinte e cinco")] - [InlineData(11, 30, "onze e meia")] - [InlineData(12, 00, "meio-dia")] - [InlineData(15, 35, "três e trinta e cinco")] - [InlineData(16, 40, "vinte para as cinco")] - [InlineData(17, 45, "quinze para as seis")] - [InlineData(18, 50, "dez para as sete")] - [InlineData(19, 55, "cinco para as oito")] - [InlineData(20, 59, "oito e cinquenta e nove")] - public void ConvertToClockNotationTimeOnlyStringPtBr(int hours, int minutes, string expectedResult) - { - var actualResult = new TimeOnly(hours, minutes).ToClockNotation(); - Assert.Equal(expectedResult, actualResult); - } } } diff --git a/src/Humanizer.Tests.Shared/Localisation/pt-BR/TimeToClockNotationTests.cs b/src/Humanizer.Tests.Shared/Localisation/pt-BR/TimeToClockNotationTests.cs new file mode 100644 index 000000000..c81c6237e --- /dev/null +++ b/src/Humanizer.Tests.Shared/Localisation/pt-BR/TimeToClockNotationTests.cs @@ -0,0 +1,36 @@ +#if NET6_0_OR_GREATER + +using System; +using Xunit; + +namespace Humanizer.Tests.Localisation.ptBR +{ + [UseCulture("pt-BR")] + public class TimeToClockNotationTests + { + [Theory] + [InlineData(00, 00, "meia-noite")] + [InlineData(04, 00, "quatro em ponto")] + [InlineData(05, 01, "cinco e um")] + [InlineData(06, 05, "seis e cinco")] + [InlineData(07, 10, "sete e dez")] + [InlineData(08, 15, "oito e quinze")] + [InlineData(09, 20, "nove e vinte")] + [InlineData(10, 25, "dez e vinte e cinco")] + [InlineData(11, 30, "onze e meia")] + [InlineData(12, 00, "meio-dia")] + [InlineData(15, 35, "três e trinta e cinco")] + [InlineData(16, 40, "vinte para as cinco")] + [InlineData(17, 45, "quinze para as seis")] + [InlineData(18, 50, "dez para as sete")] + [InlineData(19, 55, "cinco para as oito")] + [InlineData(20, 59, "oito e cinquenta e nove")] + public void ConvertToClockNotationTimeOnlyStringPtBr(int hours, int minutes, string expectedResult) + { + var actualResult = new TimeOnly(hours, minutes).ToClockNotation(); + Assert.Equal(expectedResult, actualResult); + } + } +} + +#endif diff --git a/src/Humanizer.Tests/ApiApprover/PublicApiApprovalTest.Approve_Public_Api.approved.txt.orig b/src/Humanizer.Tests/ApiApprover/PublicApiApprovalTest.Approve_Public_Api.approved.txt.orig deleted file mode 100644 index 4a1a9cb3c..000000000 --- a/src/Humanizer.Tests/ApiApprover/PublicApiApprovalTest.Approve_Public_Api.approved.txt.orig +++ /dev/null @@ -1,1955 +0,0 @@ -[assembly: System.Resources.NeutralResourcesLanguageAttribute("en")] -[assembly: System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName="")] -namespace Humanizer -{ - public class static ByteSizeExtensions - { - public static Humanizer.Bytes.ByteSize Bits(this byte input) { } - public static Humanizer.Bytes.ByteSize Bits(this sbyte input) { } - public static Humanizer.Bytes.ByteSize Bits(this short input) { } - public static Humanizer.Bytes.ByteSize Bits(this ushort input) { } - public static Humanizer.Bytes.ByteSize Bits(this int input) { } - public static Humanizer.Bytes.ByteSize Bits(this uint input) { } - public static Humanizer.Bytes.ByteSize Bits(this long input) { } - public static Humanizer.Bytes.ByteSize Bytes(this byte input) { } - public static Humanizer.Bytes.ByteSize Bytes(this sbyte input) { } - public static Humanizer.Bytes.ByteSize Bytes(this short input) { } - public static Humanizer.Bytes.ByteSize Bytes(this ushort input) { } - public static Humanizer.Bytes.ByteSize Bytes(this int input) { } - public static Humanizer.Bytes.ByteSize Bytes(this uint input) { } - public static Humanizer.Bytes.ByteSize Bytes(this double input) { } - public static Humanizer.Bytes.ByteSize Bytes(this long input) { } - public static Humanizer.Bytes.ByteSize Gigabytes(this byte input) { } - public static Humanizer.Bytes.ByteSize Gigabytes(this sbyte input) { } - public static Humanizer.Bytes.ByteSize Gigabytes(this short input) { } - public static Humanizer.Bytes.ByteSize Gigabytes(this ushort input) { } - public static Humanizer.Bytes.ByteSize Gigabytes(this int input) { } - public static Humanizer.Bytes.ByteSize Gigabytes(this uint input) { } - public static Humanizer.Bytes.ByteSize Gigabytes(this double input) { } - public static Humanizer.Bytes.ByteSize Gigabytes(this long input) { } - public static string Humanize(this Humanizer.Bytes.ByteSize input, string format = null) { } - public static string Humanize(this Humanizer.Bytes.ByteSize input, System.IFormatProvider formatProvider) { } - public static string Humanize(this Humanizer.Bytes.ByteSize input, string format, System.IFormatProvider formatProvider) { } - public static Humanizer.Bytes.ByteSize Kilobytes(this byte input) { } - public static Humanizer.Bytes.ByteSize Kilobytes(this sbyte input) { } - public static Humanizer.Bytes.ByteSize Kilobytes(this short input) { } - public static Humanizer.Bytes.ByteSize Kilobytes(this ushort input) { } - public static Humanizer.Bytes.ByteSize Kilobytes(this int input) { } - public static Humanizer.Bytes.ByteSize Kilobytes(this uint input) { } - public static Humanizer.Bytes.ByteSize Kilobytes(this double input) { } - public static Humanizer.Bytes.ByteSize Kilobytes(this long input) { } - public static Humanizer.Bytes.ByteSize Megabytes(this byte input) { } - public static Humanizer.Bytes.ByteSize Megabytes(this sbyte input) { } - public static Humanizer.Bytes.ByteSize Megabytes(this short input) { } - public static Humanizer.Bytes.ByteSize Megabytes(this ushort input) { } - public static Humanizer.Bytes.ByteSize Megabytes(this int input) { } - public static Humanizer.Bytes.ByteSize Megabytes(this uint input) { } - public static Humanizer.Bytes.ByteSize Megabytes(this double input) { } - public static Humanizer.Bytes.ByteSize Megabytes(this long input) { } - public static Humanizer.Bytes.ByteRate Per(this Humanizer.Bytes.ByteSize size, System.TimeSpan interval) { } - public static Humanizer.Bytes.ByteSize Terabytes(this byte input) { } - public static Humanizer.Bytes.ByteSize Terabytes(this sbyte input) { } - public static Humanizer.Bytes.ByteSize Terabytes(this short input) { } - public static Humanizer.Bytes.ByteSize Terabytes(this ushort input) { } - public static Humanizer.Bytes.ByteSize Terabytes(this int input) { } - public static Humanizer.Bytes.ByteSize Terabytes(this uint input) { } - public static Humanizer.Bytes.ByteSize Terabytes(this double input) { } - public static Humanizer.Bytes.ByteSize Terabytes(this long input) { } - } - public class static CasingExtensions - { - public static string ApplyCase(this string input, Humanizer.LetterCasing casing) { } - } - public class static CollectionHumanizeExtensions - { - public static string Humanize(this System.Collections.Generic.IEnumerable collection) { } - public static string Humanize(this System.Collections.Generic.IEnumerable collection, System.Func displayFormatter) { } - public static string Humanize(this System.Collections.Generic.IEnumerable collection, System.Func displayFormatter) { } - public static string Humanize(this System.Collections.Generic.IEnumerable collection, string separator) { } - public static string Humanize(this System.Collections.Generic.IEnumerable collection, System.Func displayFormatter, string separator) { } - public static string Humanize(this System.Collections.Generic.IEnumerable collection, System.Func displayFormatter, string separator) { } - } - public class static DateHumanizeExtensions - { - public static string Humanize(this System.DateTime input, System.Nullable utcDate = null, System.Nullable dateToCompareAgainst = null, System.Globalization.CultureInfo culture = null) { } - public static string Humanize(this System.Nullable input, System.Nullable utcDate = null, System.Nullable dateToCompareAgainst = null, System.Globalization.CultureInfo culture = null) { } - public static string Humanize(this System.DateTimeOffset input, System.Nullable dateToCompareAgainst = null, System.Globalization.CultureInfo culture = null) { } - public static string Humanize(this System.Nullable input, System.Nullable dateToCompareAgainst = null, System.Globalization.CultureInfo culture = null) { } - public static string Humanize(this System.DateOnly input, System.Nullable dateToCompareAgainst = null, System.Globalization.CultureInfo culture = null) { } - public static string Humanize(this System.Nullable input, System.Nullable dateToCompareAgainst = null, System.Globalization.CultureInfo culture = null) { } - public static string Humanize(this System.TimeOnly input, System.Nullable timeToCompareAgainst = null, bool useUtc = True, System.Globalization.CultureInfo culture = null) { } - public static string Humanize(this System.Nullable input, System.Nullable timeToCompareAgainst = null, bool useUtc = True, System.Globalization.CultureInfo culture = null) { } - } - public class static DateToOrdinalWordsExtensions - { - public static string ToOrdinalWords(this System.DateTime input) { } - public static string ToOrdinalWords(this System.DateTime input, Humanizer.GrammaticalCase grammaticalCase) { } - public static string ToOrdinalWords(this System.DateOnly input) { } - public static string ToOrdinalWords(this System.DateOnly input, Humanizer.GrammaticalCase grammaticalCase) { } - } - public class static EnglishArticle - { - public static string[] AppendArticlePrefix(string[] items) { } - public static string[] PrependArticleSuffix(string[] appended) { } - } - public enum EnglishArticles - { - A = 0, - An = 1, - The = 2, - } - public class static EnumDehumanizeExtensions - { - public static TTargetEnum DehumanizeTo(this string input) - where TTargetEnum : struct, System.IComparable, System.IFormattable { } - public static System.Enum DehumanizeTo(this string input, System.Type targetEnum, Humanizer.OnNoMatch onNoMatch = 0) { } - } - public class static EnumHumanizeExtensions - { - public static string Humanize(this System.Enum input) { } - public static string Humanize(this System.Enum input, Humanizer.LetterCasing casing) { } - } - public enum GrammaticalCase - { - Nominative = 0, - Genitive = 1, - Dative = 2, - Accusative = 3, - Instrumental = 4, - Prepositional = 5, - } - public enum GrammaticalGender - { - Masculine = 0, - Feminine = 1, - Neuter = 2, - } - public class static HeadingExtensions - { - public static double FromAbbreviatedHeading(this string heading) { } - public static double FromAbbreviatedHeading(this string heading, System.Globalization.CultureInfo culture = null) { } - public static double FromHeadingArrow(this char heading) { } - public static double FromHeadingArrow(this string heading) { } - public static string ToHeading(this double heading, Humanizer.HeadingStyle style = 0, System.Globalization.CultureInfo culture = null) { } - public static char ToHeadingArrow(this double heading) { } - } - public enum HeadingStyle - { - Abbreviated = 0, - Full = 1, - } - public interface ICulturedStringTransformer : Humanizer.IStringTransformer - { - string Transform(string input, System.Globalization.CultureInfo culture); - } - public interface IStringTransformer - { - string Transform(string input); - } - public interface ITruncator - { - string Truncate(string value, int length, string truncationString, Humanizer.TruncateFrom truncateFrom = 1); - } - public class In - { - public In() { } - public static System.DateTime April { get; } - public static System.DateTime August { get; } - public static System.DateTime December { get; } - public static System.DateTime February { get; } - public static System.DateTime January { get; } - public static System.DateTime July { get; } - public static System.DateTime June { get; } - public static System.DateTime March { get; } - public static System.DateTime May { get; } - public static System.DateTime November { get; } - public static System.DateTime October { get; } - public static System.DateTime September { get; } - public static System.DateTime AprilOf(int year) { } - public static System.DateTime AugustOf(int year) { } - public static System.DateTime DecemberOf(int year) { } - public static System.DateTime FebruaryOf(int year) { } - public static System.DateTime JanuaryOf(int year) { } - public static System.DateTime JulyOf(int year) { } - public static System.DateTime JuneOf(int year) { } - public static System.DateTime MarchOf(int year) { } - public static System.DateTime MayOf(int year) { } - public static System.DateTime NovemberOf(int year) { } - public static System.DateTime OctoberOf(int year) { } - public static System.DateTime SeptemberOf(int year) { } - public static System.DateTime TheYear(int year) { } - public class static Eight - { - public static System.DateTime Days { get; } - public static System.DateTime Hours { get; } - public static System.DateTime Minutes { get; } - public static System.DateTime Months { get; } - public static System.DateTime Seconds { get; } - public static System.DateTime Weeks { get; } - public static System.DateTime Years { get; } - public static System.DateTime DaysFrom(System.DateTime date) { } - public static System.DateTime HoursFrom(System.DateTime date) { } - public static System.DateTime MinutesFrom(System.DateTime date) { } - public static System.DateTime MonthsFrom(System.DateTime date) { } - public static System.DateTime SecondsFrom(System.DateTime date) { } - public static System.DateTime WeeksFrom(System.DateTime date) { } - public static System.DateTime YearsFrom(System.DateTime date) { } - } - public class static Five - { - public static System.DateTime Days { get; } - public static System.DateTime Hours { get; } - public static System.DateTime Minutes { get; } - public static System.DateTime Months { get; } - public static System.DateTime Seconds { get; } - public static System.DateTime Weeks { get; } - public static System.DateTime Years { get; } - public static System.DateTime DaysFrom(System.DateTime date) { } - public static System.DateTime HoursFrom(System.DateTime date) { } - public static System.DateTime MinutesFrom(System.DateTime date) { } - public static System.DateTime MonthsFrom(System.DateTime date) { } - public static System.DateTime SecondsFrom(System.DateTime date) { } - public static System.DateTime WeeksFrom(System.DateTime date) { } - public static System.DateTime YearsFrom(System.DateTime date) { } - } - public class static Four - { - public static System.DateTime Days { get; } - public static System.DateTime Hours { get; } - public static System.DateTime Minutes { get; } - public static System.DateTime Months { get; } - public static System.DateTime Seconds { get; } - public static System.DateTime Weeks { get; } - public static System.DateTime Years { get; } - public static System.DateTime DaysFrom(System.DateTime date) { } - public static System.DateTime HoursFrom(System.DateTime date) { } - public static System.DateTime MinutesFrom(System.DateTime date) { } - public static System.DateTime MonthsFrom(System.DateTime date) { } - public static System.DateTime SecondsFrom(System.DateTime date) { } - public static System.DateTime WeeksFrom(System.DateTime date) { } - public static System.DateTime YearsFrom(System.DateTime date) { } - } - public class static Nine - { - public static System.DateTime Days { get; } - public static System.DateTime Hours { get; } - public static System.DateTime Minutes { get; } - public static System.DateTime Months { get; } - public static System.DateTime Seconds { get; } - public static System.DateTime Weeks { get; } - public static System.DateTime Years { get; } - public static System.DateTime DaysFrom(System.DateTime date) { } - public static System.DateTime HoursFrom(System.DateTime date) { } - public static System.DateTime MinutesFrom(System.DateTime date) { } - public static System.DateTime MonthsFrom(System.DateTime date) { } - public static System.DateTime SecondsFrom(System.DateTime date) { } - public static System.DateTime WeeksFrom(System.DateTime date) { } - public static System.DateTime YearsFrom(System.DateTime date) { } - } - public class static One - { - public static System.DateTime Day { get; } - public static System.DateTime Hour { get; } - public static System.DateTime Minute { get; } - public static System.DateTime Month { get; } - public static System.DateTime Second { get; } - public static System.DateTime Week { get; } - public static System.DateTime Year { get; } - public static System.DateTime DayFrom(System.DateTime date) { } - public static System.DateTime HourFrom(System.DateTime date) { } - public static System.DateTime MinuteFrom(System.DateTime date) { } - public static System.DateTime MonthFrom(System.DateTime date) { } - public static System.DateTime SecondFrom(System.DateTime date) { } - public static System.DateTime WeekFrom(System.DateTime date) { } - public static System.DateTime YearFrom(System.DateTime date) { } - } - public class static Seven - { - public static System.DateTime Days { get; } - public static System.DateTime Hours { get; } - public static System.DateTime Minutes { get; } - public static System.DateTime Months { get; } - public static System.DateTime Seconds { get; } - public static System.DateTime Weeks { get; } - public static System.DateTime Years { get; } - public static System.DateTime DaysFrom(System.DateTime date) { } - public static System.DateTime HoursFrom(System.DateTime date) { } - public static System.DateTime MinutesFrom(System.DateTime date) { } - public static System.DateTime MonthsFrom(System.DateTime date) { } - public static System.DateTime SecondsFrom(System.DateTime date) { } - public static System.DateTime WeeksFrom(System.DateTime date) { } - public static System.DateTime YearsFrom(System.DateTime date) { } - } - public class static Six - { - public static System.DateTime Days { get; } - public static System.DateTime Hours { get; } - public static System.DateTime Minutes { get; } - public static System.DateTime Months { get; } - public static System.DateTime Seconds { get; } - public static System.DateTime Weeks { get; } - public static System.DateTime Years { get; } - public static System.DateTime DaysFrom(System.DateTime date) { } - public static System.DateTime HoursFrom(System.DateTime date) { } - public static System.DateTime MinutesFrom(System.DateTime date) { } - public static System.DateTime MonthsFrom(System.DateTime date) { } - public static System.DateTime SecondsFrom(System.DateTime date) { } - public static System.DateTime WeeksFrom(System.DateTime date) { } - public static System.DateTime YearsFrom(System.DateTime date) { } - } - public class static Ten - { - public static System.DateTime Days { get; } - public static System.DateTime Hours { get; } - public static System.DateTime Minutes { get; } - public static System.DateTime Months { get; } - public static System.DateTime Seconds { get; } - public static System.DateTime Weeks { get; } - public static System.DateTime Years { get; } - public static System.DateTime DaysFrom(System.DateTime date) { } - public static System.DateTime HoursFrom(System.DateTime date) { } - public static System.DateTime MinutesFrom(System.DateTime date) { } - public static System.DateTime MonthsFrom(System.DateTime date) { } - public static System.DateTime SecondsFrom(System.DateTime date) { } - public static System.DateTime WeeksFrom(System.DateTime date) { } - public static System.DateTime YearsFrom(System.DateTime date) { } - } - public class static Three - { - public static System.DateTime Days { get; } - public static System.DateTime Hours { get; } - public static System.DateTime Minutes { get; } - public static System.DateTime Months { get; } - public static System.DateTime Seconds { get; } - public static System.DateTime Weeks { get; } - public static System.DateTime Years { get; } - public static System.DateTime DaysFrom(System.DateTime date) { } - public static System.DateTime HoursFrom(System.DateTime date) { } - public static System.DateTime MinutesFrom(System.DateTime date) { } - public static System.DateTime MonthsFrom(System.DateTime date) { } - public static System.DateTime SecondsFrom(System.DateTime date) { } - public static System.DateTime WeeksFrom(System.DateTime date) { } - public static System.DateTime YearsFrom(System.DateTime date) { } - } - public class static Two - { - public static System.DateTime Days { get; } - public static System.DateTime Hours { get; } - public static System.DateTime Minutes { get; } - public static System.DateTime Months { get; } - public static System.DateTime Seconds { get; } - public static System.DateTime Weeks { get; } - public static System.DateTime Years { get; } - public static System.DateTime DaysFrom(System.DateTime date) { } - public static System.DateTime HoursFrom(System.DateTime date) { } - public static System.DateTime MinutesFrom(System.DateTime date) { } - public static System.DateTime MonthsFrom(System.DateTime date) { } - public static System.DateTime SecondsFrom(System.DateTime date) { } - public static System.DateTime WeeksFrom(System.DateTime date) { } - public static System.DateTime YearsFrom(System.DateTime date) { } - } - } - public class InDate - { - public InDate() { } - public static System.DateOnly April { get; } - public static System.DateOnly August { get; } - public static System.DateOnly December { get; } - public static System.DateOnly February { get; } - public static System.DateOnly January { get; } - public static System.DateOnly July { get; } - public static System.DateOnly June { get; } - public static System.DateOnly March { get; } - public static System.DateOnly May { get; } - public static System.DateOnly November { get; } - public static System.DateOnly October { get; } - public static System.DateOnly September { get; } - public static System.DateOnly AprilOf(int year) { } - public static System.DateOnly AugustOf(int year) { } - public static System.DateOnly DecemberOf(int year) { } - public static System.DateOnly FebruaryOf(int year) { } - public static System.DateOnly JanuaryOf(int year) { } - public static System.DateOnly JulyOf(int year) { } - public static System.DateOnly JuneOf(int year) { } - public static System.DateOnly MarchOf(int year) { } - public static System.DateOnly MayOf(int year) { } - public static System.DateOnly NovemberOf(int year) { } - public static System.DateOnly OctoberOf(int year) { } - public static System.DateOnly SeptemberOf(int year) { } - public static System.DateOnly TheYear(int year) { } - public class static Eight - { - public static System.DateOnly Days { get; } - public static System.DateOnly Months { get; } - public static System.DateOnly Weeks { get; } - public static System.DateOnly Years { get; } - public static System.DateOnly DaysFrom(System.DateOnly date) { } - public static System.DateOnly DaysFrom(System.DateTime date) { } - public static System.DateOnly MonthsFrom(System.DateOnly date) { } - public static System.DateOnly MonthsFrom(System.DateTime date) { } - public static System.DateOnly WeeksFrom(System.DateOnly date) { } - public static System.DateOnly WeeksFrom(System.DateTime date) { } - public static System.DateOnly YearsFrom(System.DateOnly date) { } - public static System.DateOnly YearsFrom(System.DateTime date) { } - } - public class static Five - { - public static System.DateOnly Days { get; } - public static System.DateOnly Months { get; } - public static System.DateOnly Weeks { get; } - public static System.DateOnly Years { get; } - public static System.DateOnly DaysFrom(System.DateOnly date) { } - public static System.DateOnly DaysFrom(System.DateTime date) { } - public static System.DateOnly MonthsFrom(System.DateOnly date) { } - public static System.DateOnly MonthsFrom(System.DateTime date) { } - public static System.DateOnly WeeksFrom(System.DateOnly date) { } - public static System.DateOnly WeeksFrom(System.DateTime date) { } - public static System.DateOnly YearsFrom(System.DateOnly date) { } - public static System.DateOnly YearsFrom(System.DateTime date) { } - } - public class static Four - { - public static System.DateOnly Days { get; } - public static System.DateOnly Months { get; } - public static System.DateOnly Weeks { get; } - public static System.DateOnly Years { get; } - public static System.DateOnly DaysFrom(System.DateOnly date) { } - public static System.DateOnly DaysFrom(System.DateTime date) { } - public static System.DateOnly MonthsFrom(System.DateOnly date) { } - public static System.DateOnly MonthsFrom(System.DateTime date) { } - public static System.DateOnly WeeksFrom(System.DateOnly date) { } - public static System.DateOnly WeeksFrom(System.DateTime date) { } - public static System.DateOnly YearsFrom(System.DateOnly date) { } - public static System.DateOnly YearsFrom(System.DateTime date) { } - } - public class static Nine - { - public static System.DateOnly Days { get; } - public static System.DateOnly Months { get; } - public static System.DateOnly Weeks { get; } - public static System.DateOnly Years { get; } - public static System.DateOnly DaysFrom(System.DateOnly date) { } - public static System.DateOnly DaysFrom(System.DateTime date) { } - public static System.DateOnly MonthsFrom(System.DateOnly date) { } - public static System.DateOnly MonthsFrom(System.DateTime date) { } - public static System.DateOnly WeeksFrom(System.DateOnly date) { } - public static System.DateOnly WeeksFrom(System.DateTime date) { } - public static System.DateOnly YearsFrom(System.DateOnly date) { } - public static System.DateOnly YearsFrom(System.DateTime date) { } - } - public class static One - { - public static System.DateOnly Day { get; } - public static System.DateOnly Month { get; } - public static System.DateOnly Week { get; } - public static System.DateOnly Year { get; } - public static System.DateOnly DayFrom(System.DateOnly date) { } - public static System.DateOnly DayFrom(System.DateTime date) { } - public static System.DateOnly MonthFrom(System.DateOnly date) { } - public static System.DateOnly MonthFrom(System.DateTime date) { } - public static System.DateOnly WeekFrom(System.DateOnly date) { } - public static System.DateOnly WeekFrom(System.DateTime date) { } - public static System.DateOnly YearFrom(System.DateOnly date) { } - public static System.DateOnly YearFrom(System.DateTime date) { } - } - public class static Seven - { - public static System.DateOnly Days { get; } - public static System.DateOnly Months { get; } - public static System.DateOnly Weeks { get; } - public static System.DateOnly Years { get; } - public static System.DateOnly DaysFrom(System.DateOnly date) { } - public static System.DateOnly DaysFrom(System.DateTime date) { } - public static System.DateOnly MonthsFrom(System.DateOnly date) { } - public static System.DateOnly MonthsFrom(System.DateTime date) { } - public static System.DateOnly WeeksFrom(System.DateOnly date) { } - public static System.DateOnly WeeksFrom(System.DateTime date) { } - public static System.DateOnly YearsFrom(System.DateOnly date) { } - public static System.DateOnly YearsFrom(System.DateTime date) { } - } - public class static Six - { - public static System.DateOnly Days { get; } - public static System.DateOnly Months { get; } - public static System.DateOnly Weeks { get; } - public static System.DateOnly Years { get; } - public static System.DateOnly DaysFrom(System.DateOnly date) { } - public static System.DateOnly DaysFrom(System.DateTime date) { } - public static System.DateOnly MonthsFrom(System.DateOnly date) { } - public static System.DateOnly MonthsFrom(System.DateTime date) { } - public static System.DateOnly WeeksFrom(System.DateOnly date) { } - public static System.DateOnly WeeksFrom(System.DateTime date) { } - public static System.DateOnly YearsFrom(System.DateOnly date) { } - public static System.DateOnly YearsFrom(System.DateTime date) { } - } - public class static Ten - { - public static System.DateOnly Days { get; } - public static System.DateOnly Months { get; } - public static System.DateOnly Weeks { get; } - public static System.DateOnly Years { get; } - public static System.DateOnly DaysFrom(System.DateOnly date) { } - public static System.DateOnly DaysFrom(System.DateTime date) { } - public static System.DateOnly MonthsFrom(System.DateOnly date) { } - public static System.DateOnly MonthsFrom(System.DateTime date) { } - public static System.DateOnly WeeksFrom(System.DateOnly date) { } - public static System.DateOnly WeeksFrom(System.DateTime date) { } - public static System.DateOnly YearsFrom(System.DateOnly date) { } - public static System.DateOnly YearsFrom(System.DateTime date) { } - } - public class static Three - { - public static System.DateOnly Days { get; } - public static System.DateOnly Months { get; } - public static System.DateOnly Weeks { get; } - public static System.DateOnly Years { get; } - public static System.DateOnly DaysFrom(System.DateOnly date) { } - public static System.DateOnly DaysFrom(System.DateTime date) { } - public static System.DateOnly MonthsFrom(System.DateOnly date) { } - public static System.DateOnly MonthsFrom(System.DateTime date) { } - public static System.DateOnly WeeksFrom(System.DateOnly date) { } - public static System.DateOnly WeeksFrom(System.DateTime date) { } - public static System.DateOnly YearsFrom(System.DateOnly date) { } - public static System.DateOnly YearsFrom(System.DateTime date) { } - } - public class static Two - { - public static System.DateOnly Days { get; } - public static System.DateOnly Months { get; } - public static System.DateOnly Weeks { get; } - public static System.DateOnly Years { get; } - public static System.DateOnly DaysFrom(System.DateOnly date) { } - public static System.DateOnly DaysFrom(System.DateTime date) { } - public static System.DateOnly MonthsFrom(System.DateOnly date) { } - public static System.DateOnly MonthsFrom(System.DateTime date) { } - public static System.DateOnly WeeksFrom(System.DateOnly date) { } - public static System.DateOnly WeeksFrom(System.DateTime date) { } - public static System.DateOnly YearsFrom(System.DateOnly date) { } - public static System.DateOnly YearsFrom(System.DateTime date) { } - } - } - public class static InflectorExtensions - { - public static string Camelize(this string input) { } - public static string Dasherize(this string underscoredWord) { } - public static string Hyphenate(this string underscoredWord) { } - public static string Kebaberize(this string input) { } - public static string Pascalize(this string input) { } - public static string Pluralize(this string word, bool inputIsKnownToBeSingular = True) { } - public static string Singularize(this string word, bool inputIsKnownToBePlural = True, bool skipSimpleWords = False) { } - public static string Titleize(this string input) { } - public static string Underscore(this string input) { } - } - public enum LetterCasing - { - Title = 0, - AllCaps = 1, - LowerCase = 2, - Sentence = 3, - } - public class static MetricNumeralExtensions - { - public static double FromMetric(this string input) { } - [System.ObsoleteAttribute("Please use overload with MetricNumeralFormats")] - public static string ToMetric(this int input, bool hasSpace, bool useSymbol = True, System.Nullable decimals = null) { } - public static string ToMetric(this int input, System.Nullable formats = null, System.Nullable decimals = null) { } - [System.ObsoleteAttribute("Please use overload with MetricNumeralFormats")] - public static string ToMetric(this double input, bool hasSpace, bool useSymbol = True, System.Nullable decimals = null) { } - public static string ToMetric(this double input, System.Nullable formats = null, System.Nullable decimals = null) { } - } - [System.FlagsAttribute()] - public enum MetricNumeralFormats - { - UseLongScaleWord = 1, - UseName = 2, - UseShortScaleWord = 4, - WithSpace = 8, - } - public class NoMatchFoundException : System.Exception - { - public NoMatchFoundException() { } - public NoMatchFoundException(string message) { } - public NoMatchFoundException(string message, System.Exception inner) { } - } - public class static NumberToNumberExtensions - { - public static int Billions(this int input) { } - public static uint Billions(this uint input) { } - public static long Billions(this long input) { } - public static ulong Billions(this ulong input) { } - public static double Billions(this double input) { } - public static int Hundreds(this int input) { } - public static uint Hundreds(this uint input) { } - public static long Hundreds(this long input) { } - public static ulong Hundreds(this ulong input) { } - public static double Hundreds(this double input) { } - public static int Millions(this int input) { } - public static uint Millions(this uint input) { } - public static long Millions(this long input) { } - public static ulong Millions(this ulong input) { } - public static double Millions(this double input) { } - public static int Tens(this int input) { } - public static uint Tens(this uint input) { } - public static long Tens(this long input) { } - public static ulong Tens(this ulong input) { } - public static double Tens(this double input) { } - public static int Thousands(this int input) { } - public static uint Thousands(this uint input) { } - public static long Thousands(this long input) { } - public static ulong Thousands(this ulong input) { } - public static double Thousands(this double input) { } - } - public class static NumberToTimeSpanExtensions - { - public static System.TimeSpan Days(this byte days) { } - public static System.TimeSpan Days(this sbyte days) { } - public static System.TimeSpan Days(this short days) { } - public static System.TimeSpan Days(this ushort days) { } - public static System.TimeSpan Days(this int days) { } - public static System.TimeSpan Days(this uint days) { } - public static System.TimeSpan Days(this long days) { } - public static System.TimeSpan Days(this ulong days) { } - public static System.TimeSpan Days(this double days) { } - public static System.TimeSpan Hours(this byte hours) { } - public static System.TimeSpan Hours(this sbyte hours) { } - public static System.TimeSpan Hours(this short hours) { } - public static System.TimeSpan Hours(this ushort hours) { } - public static System.TimeSpan Hours(this int hours) { } - public static System.TimeSpan Hours(this uint hours) { } - public static System.TimeSpan Hours(this long hours) { } - public static System.TimeSpan Hours(this ulong hours) { } - public static System.TimeSpan Hours(this double hours) { } - public static System.TimeSpan Milliseconds(this byte ms) { } - public static System.TimeSpan Milliseconds(this sbyte ms) { } - public static System.TimeSpan Milliseconds(this short ms) { } - public static System.TimeSpan Milliseconds(this ushort ms) { } - public static System.TimeSpan Milliseconds(this int ms) { } - public static System.TimeSpan Milliseconds(this uint ms) { } - public static System.TimeSpan Milliseconds(this long ms) { } - public static System.TimeSpan Milliseconds(this ulong ms) { } - public static System.TimeSpan Milliseconds(this double ms) { } - public static System.TimeSpan Minutes(this byte minutes) { } - public static System.TimeSpan Minutes(this sbyte minutes) { } - public static System.TimeSpan Minutes(this short minutes) { } - public static System.TimeSpan Minutes(this ushort minutes) { } - public static System.TimeSpan Minutes(this int minutes) { } - public static System.TimeSpan Minutes(this uint minutes) { } - public static System.TimeSpan Minutes(this long minutes) { } - public static System.TimeSpan Minutes(this ulong minutes) { } - public static System.TimeSpan Minutes(this double minutes) { } - public static System.TimeSpan Seconds(this byte seconds) { } - public static System.TimeSpan Seconds(this sbyte seconds) { } - public static System.TimeSpan Seconds(this short seconds) { } - public static System.TimeSpan Seconds(this ushort seconds) { } - public static System.TimeSpan Seconds(this int seconds) { } - public static System.TimeSpan Seconds(this uint seconds) { } - public static System.TimeSpan Seconds(this long seconds) { } - public static System.TimeSpan Seconds(this ulong seconds) { } - public static System.TimeSpan Seconds(this double seconds) { } - public static System.TimeSpan Weeks(this byte input) { } - public static System.TimeSpan Weeks(this sbyte input) { } - public static System.TimeSpan Weeks(this short input) { } - public static System.TimeSpan Weeks(this ushort input) { } - public static System.TimeSpan Weeks(this int input) { } - public static System.TimeSpan Weeks(this uint input) { } - public static System.TimeSpan Weeks(this long input) { } - public static System.TimeSpan Weeks(this ulong input) { } - public static System.TimeSpan Weeks(this double input) { } - } - public class static NumberToWordsExtension - { - public static string ToOrdinalWords(this int number, System.Globalization.CultureInfo culture = null) { } - public static string ToOrdinalWords(this int number, Humanizer.GrammaticalGender gender, 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, bool addAnd, 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 long number, System.Globalization.CultureInfo culture = null, bool addAnd = True) { } - public static string ToWords(this long number, Humanizer.GrammaticalGender gender, System.Globalization.CultureInfo culture = null) { } - } - public class On - { - public On() { } - public class April - { - public April() { } - public static System.DateTime The10th { get; } - public static System.DateTime The11th { get; } - public static System.DateTime The12th { get; } - public static System.DateTime The13th { get; } - public static System.DateTime The14th { get; } - public static System.DateTime The15th { get; } - public static System.DateTime The16th { get; } - public static System.DateTime The17th { get; } - public static System.DateTime The18th { get; } - public static System.DateTime The19th { get; } - public static System.DateTime The1st { get; } - public static System.DateTime The20th { get; } - public static System.DateTime The21st { get; } - public static System.DateTime The22nd { get; } - public static System.DateTime The23rd { get; } - public static System.DateTime The24th { get; } - public static System.DateTime The25th { get; } - public static System.DateTime The26th { get; } - public static System.DateTime The27th { get; } - public static System.DateTime The28th { get; } - public static System.DateTime The29th { get; } - public static System.DateTime The2nd { get; } - public static System.DateTime The30th { get; } - public static System.DateTime The3rd { get; } - public static System.DateTime The4th { get; } - public static System.DateTime The5th { get; } - public static System.DateTime The6th { get; } - public static System.DateTime The7th { get; } - public static System.DateTime The8th { get; } - public static System.DateTime The9th { get; } - public static System.DateTime The(int dayNumber) { } - } - public class August - { - public August() { } - public static System.DateTime The10th { get; } - public static System.DateTime The11th { get; } - public static System.DateTime The12th { get; } - public static System.DateTime The13th { get; } - public static System.DateTime The14th { get; } - public static System.DateTime The15th { get; } - public static System.DateTime The16th { get; } - public static System.DateTime The17th { get; } - public static System.DateTime The18th { get; } - public static System.DateTime The19th { get; } - public static System.DateTime The1st { get; } - public static System.DateTime The20th { get; } - public static System.DateTime The21st { get; } - public static System.DateTime The22nd { get; } - public static System.DateTime The23rd { get; } - public static System.DateTime The24th { get; } - public static System.DateTime The25th { get; } - public static System.DateTime The26th { get; } - public static System.DateTime The27th { get; } - public static System.DateTime The28th { get; } - public static System.DateTime The29th { get; } - public static System.DateTime The2nd { get; } - public static System.DateTime The30th { get; } - public static System.DateTime The31st { get; } - public static System.DateTime The3rd { get; } - public static System.DateTime The4th { get; } - public static System.DateTime The5th { get; } - public static System.DateTime The6th { get; } - public static System.DateTime The7th { get; } - public static System.DateTime The8th { get; } - public static System.DateTime The9th { get; } - public static System.DateTime The(int dayNumber) { } - } - public class December - { - public December() { } - public static System.DateTime The10th { get; } - public static System.DateTime The11th { get; } - public static System.DateTime The12th { get; } - public static System.DateTime The13th { get; } - public static System.DateTime The14th { get; } - public static System.DateTime The15th { get; } - public static System.DateTime The16th { get; } - public static System.DateTime The17th { get; } - public static System.DateTime The18th { get; } - public static System.DateTime The19th { get; } - public static System.DateTime The1st { get; } - public static System.DateTime The20th { get; } - public static System.DateTime The21st { get; } - public static System.DateTime The22nd { get; } - public static System.DateTime The23rd { get; } - public static System.DateTime The24th { get; } - public static System.DateTime The25th { get; } - public static System.DateTime The26th { get; } - public static System.DateTime The27th { get; } - public static System.DateTime The28th { get; } - public static System.DateTime The29th { get; } - public static System.DateTime The2nd { get; } - public static System.DateTime The30th { get; } - public static System.DateTime The31st { get; } - public static System.DateTime The3rd { get; } - public static System.DateTime The4th { get; } - public static System.DateTime The5th { get; } - public static System.DateTime The6th { get; } - public static System.DateTime The7th { get; } - public static System.DateTime The8th { get; } - public static System.DateTime The9th { get; } - public static System.DateTime The(int dayNumber) { } - } - public class February - { - public February() { } - public static System.DateTime The10th { get; } - public static System.DateTime The11th { get; } - public static System.DateTime The12th { get; } - public static System.DateTime The13th { get; } - public static System.DateTime The14th { get; } - public static System.DateTime The15th { get; } - public static System.DateTime The16th { get; } - public static System.DateTime The17th { get; } - public static System.DateTime The18th { get; } - public static System.DateTime The19th { get; } - public static System.DateTime The1st { get; } - public static System.DateTime The20th { get; } - public static System.DateTime The21st { get; } - public static System.DateTime The22nd { get; } - public static System.DateTime The23rd { get; } - public static System.DateTime The24th { get; } - public static System.DateTime The25th { get; } - public static System.DateTime The26th { get; } - public static System.DateTime The27th { get; } - public static System.DateTime The28th { get; } - public static System.DateTime The29th { get; } - public static System.DateTime The2nd { get; } - public static System.DateTime The3rd { get; } - public static System.DateTime The4th { get; } - public static System.DateTime The5th { get; } - public static System.DateTime The6th { get; } - public static System.DateTime The7th { get; } - public static System.DateTime The8th { get; } - public static System.DateTime The9th { get; } - public static System.DateTime The(int dayNumber) { } - } - public class January - { - public January() { } - public static System.DateTime The10th { get; } - public static System.DateTime The11th { get; } - public static System.DateTime The12th { get; } - public static System.DateTime The13th { get; } - public static System.DateTime The14th { get; } - public static System.DateTime The15th { get; } - public static System.DateTime The16th { get; } - public static System.DateTime The17th { get; } - public static System.DateTime The18th { get; } - public static System.DateTime The19th { get; } - public static System.DateTime The1st { get; } - public static System.DateTime The20th { get; } - public static System.DateTime The21st { get; } - public static System.DateTime The22nd { get; } - public static System.DateTime The23rd { get; } - public static System.DateTime The24th { get; } - public static System.DateTime The25th { get; } - public static System.DateTime The26th { get; } - public static System.DateTime The27th { get; } - public static System.DateTime The28th { get; } - public static System.DateTime The29th { get; } - public static System.DateTime The2nd { get; } - public static System.DateTime The30th { get; } - public static System.DateTime The31st { get; } - public static System.DateTime The3rd { get; } - public static System.DateTime The4th { get; } - public static System.DateTime The5th { get; } - public static System.DateTime The6th { get; } - public static System.DateTime The7th { get; } - public static System.DateTime The8th { get; } - public static System.DateTime The9th { get; } - public static System.DateTime The(int dayNumber) { } - } - public class July - { - public July() { } - public static System.DateTime The10th { get; } - public static System.DateTime The11th { get; } - public static System.DateTime The12th { get; } - public static System.DateTime The13th { get; } - public static System.DateTime The14th { get; } - public static System.DateTime The15th { get; } - public static System.DateTime The16th { get; } - public static System.DateTime The17th { get; } - public static System.DateTime The18th { get; } - public static System.DateTime The19th { get; } - public static System.DateTime The1st { get; } - public static System.DateTime The20th { get; } - public static System.DateTime The21st { get; } - public static System.DateTime The22nd { get; } - public static System.DateTime The23rd { get; } - public static System.DateTime The24th { get; } - public static System.DateTime The25th { get; } - public static System.DateTime The26th { get; } - public static System.DateTime The27th { get; } - public static System.DateTime The28th { get; } - public static System.DateTime The29th { get; } - public static System.DateTime The2nd { get; } - public static System.DateTime The30th { get; } - public static System.DateTime The31st { get; } - public static System.DateTime The3rd { get; } - public static System.DateTime The4th { get; } - public static System.DateTime The5th { get; } - public static System.DateTime The6th { get; } - public static System.DateTime The7th { get; } - public static System.DateTime The8th { get; } - public static System.DateTime The9th { get; } - public static System.DateTime The(int dayNumber) { } - } - public class June - { - public June() { } - public static System.DateTime The10th { get; } - public static System.DateTime The11th { get; } - public static System.DateTime The12th { get; } - public static System.DateTime The13th { get; } - public static System.DateTime The14th { get; } - public static System.DateTime The15th { get; } - public static System.DateTime The16th { get; } - public static System.DateTime The17th { get; } - public static System.DateTime The18th { get; } - public static System.DateTime The19th { get; } - public static System.DateTime The1st { get; } - public static System.DateTime The20th { get; } - public static System.DateTime The21st { get; } - public static System.DateTime The22nd { get; } - public static System.DateTime The23rd { get; } - public static System.DateTime The24th { get; } - public static System.DateTime The25th { get; } - public static System.DateTime The26th { get; } - public static System.DateTime The27th { get; } - public static System.DateTime The28th { get; } - public static System.DateTime The29th { get; } - public static System.DateTime The2nd { get; } - public static System.DateTime The30th { get; } - public static System.DateTime The3rd { get; } - public static System.DateTime The4th { get; } - public static System.DateTime The5th { get; } - public static System.DateTime The6th { get; } - public static System.DateTime The7th { get; } - public static System.DateTime The8th { get; } - public static System.DateTime The9th { get; } - public static System.DateTime The(int dayNumber) { } - } - public class March - { - public March() { } - public static System.DateTime The10th { get; } - public static System.DateTime The11th { get; } - public static System.DateTime The12th { get; } - public static System.DateTime The13th { get; } - public static System.DateTime The14th { get; } - public static System.DateTime The15th { get; } - public static System.DateTime The16th { get; } - public static System.DateTime The17th { get; } - public static System.DateTime The18th { get; } - public static System.DateTime The19th { get; } - public static System.DateTime The1st { get; } - public static System.DateTime The20th { get; } - public static System.DateTime The21st { get; } - public static System.DateTime The22nd { get; } - public static System.DateTime The23rd { get; } - public static System.DateTime The24th { get; } - public static System.DateTime The25th { get; } - public static System.DateTime The26th { get; } - public static System.DateTime The27th { get; } - public static System.DateTime The28th { get; } - public static System.DateTime The29th { get; } - public static System.DateTime The2nd { get; } - public static System.DateTime The30th { get; } - public static System.DateTime The31st { get; } - public static System.DateTime The3rd { get; } - public static System.DateTime The4th { get; } - public static System.DateTime The5th { get; } - public static System.DateTime The6th { get; } - public static System.DateTime The7th { get; } - public static System.DateTime The8th { get; } - public static System.DateTime The9th { get; } - public static System.DateTime The(int dayNumber) { } - } - public class May - { - public May() { } - public static System.DateTime The10th { get; } - public static System.DateTime The11th { get; } - public static System.DateTime The12th { get; } - public static System.DateTime The13th { get; } - public static System.DateTime The14th { get; } - public static System.DateTime The15th { get; } - public static System.DateTime The16th { get; } - public static System.DateTime The17th { get; } - public static System.DateTime The18th { get; } - public static System.DateTime The19th { get; } - public static System.DateTime The1st { get; } - public static System.DateTime The20th { get; } - public static System.DateTime The21st { get; } - public static System.DateTime The22nd { get; } - public static System.DateTime The23rd { get; } - public static System.DateTime The24th { get; } - public static System.DateTime The25th { get; } - public static System.DateTime The26th { get; } - public static System.DateTime The27th { get; } - public static System.DateTime The28th { get; } - public static System.DateTime The29th { get; } - public static System.DateTime The2nd { get; } - public static System.DateTime The30th { get; } - public static System.DateTime The31st { get; } - public static System.DateTime The3rd { get; } - public static System.DateTime The4th { get; } - public static System.DateTime The5th { get; } - public static System.DateTime The6th { get; } - public static System.DateTime The7th { get; } - public static System.DateTime The8th { get; } - public static System.DateTime The9th { get; } - public static System.DateTime The(int dayNumber) { } - } - public class November - { - public November() { } - public static System.DateTime The10th { get; } - public static System.DateTime The11th { get; } - public static System.DateTime The12th { get; } - public static System.DateTime The13th { get; } - public static System.DateTime The14th { get; } - public static System.DateTime The15th { get; } - public static System.DateTime The16th { get; } - public static System.DateTime The17th { get; } - public static System.DateTime The18th { get; } - public static System.DateTime The19th { get; } - public static System.DateTime The1st { get; } - public static System.DateTime The20th { get; } - public static System.DateTime The21st { get; } - public static System.DateTime The22nd { get; } - public static System.DateTime The23rd { get; } - public static System.DateTime The24th { get; } - public static System.DateTime The25th { get; } - public static System.DateTime The26th { get; } - public static System.DateTime The27th { get; } - public static System.DateTime The28th { get; } - public static System.DateTime The29th { get; } - public static System.DateTime The2nd { get; } - public static System.DateTime The30th { get; } - public static System.DateTime The3rd { get; } - public static System.DateTime The4th { get; } - public static System.DateTime The5th { get; } - public static System.DateTime The6th { get; } - public static System.DateTime The7th { get; } - public static System.DateTime The8th { get; } - public static System.DateTime The9th { get; } - public static System.DateTime The(int dayNumber) { } - } - public class October - { - public October() { } - public static System.DateTime The10th { get; } - public static System.DateTime The11th { get; } - public static System.DateTime The12th { get; } - public static System.DateTime The13th { get; } - public static System.DateTime The14th { get; } - public static System.DateTime The15th { get; } - public static System.DateTime The16th { get; } - public static System.DateTime The17th { get; } - public static System.DateTime The18th { get; } - public static System.DateTime The19th { get; } - public static System.DateTime The1st { get; } - public static System.DateTime The20th { get; } - public static System.DateTime The21st { get; } - public static System.DateTime The22nd { get; } - public static System.DateTime The23rd { get; } - public static System.DateTime The24th { get; } - public static System.DateTime The25th { get; } - public static System.DateTime The26th { get; } - public static System.DateTime The27th { get; } - public static System.DateTime The28th { get; } - public static System.DateTime The29th { get; } - public static System.DateTime The2nd { get; } - public static System.DateTime The30th { get; } - public static System.DateTime The31st { get; } - public static System.DateTime The3rd { get; } - public static System.DateTime The4th { get; } - public static System.DateTime The5th { get; } - public static System.DateTime The6th { get; } - public static System.DateTime The7th { get; } - public static System.DateTime The8th { get; } - public static System.DateTime The9th { get; } - public static System.DateTime The(int dayNumber) { } - } - public class September - { - public September() { } - public static System.DateTime The10th { get; } - public static System.DateTime The11th { get; } - public static System.DateTime The12th { get; } - public static System.DateTime The13th { get; } - public static System.DateTime The14th { get; } - public static System.DateTime The15th { get; } - public static System.DateTime The16th { get; } - public static System.DateTime The17th { get; } - public static System.DateTime The18th { get; } - public static System.DateTime The19th { get; } - public static System.DateTime The1st { get; } - public static System.DateTime The20th { get; } - public static System.DateTime The21st { get; } - public static System.DateTime The22nd { get; } - public static System.DateTime The23rd { get; } - public static System.DateTime The24th { get; } - public static System.DateTime The25th { get; } - public static System.DateTime The26th { get; } - public static System.DateTime The27th { get; } - public static System.DateTime The28th { get; } - public static System.DateTime The29th { get; } - public static System.DateTime The2nd { get; } - public static System.DateTime The30th { get; } - public static System.DateTime The3rd { get; } - public static System.DateTime The4th { get; } - public static System.DateTime The5th { get; } - public static System.DateTime The6th { get; } - public static System.DateTime The7th { get; } - public static System.DateTime The8th { get; } - public static System.DateTime The9th { get; } - public static System.DateTime The(int dayNumber) { } - } - } - public class OnDate - { - public OnDate() { } - public class April - { - public April() { } - public static System.DateOnly The10th { get; } - public static System.DateOnly The11th { get; } - public static System.DateOnly The12th { get; } - public static System.DateOnly The13th { get; } - public static System.DateOnly The14th { get; } - public static System.DateOnly The15th { get; } - public static System.DateOnly The16th { get; } - public static System.DateOnly The17th { get; } - public static System.DateOnly The18th { get; } - public static System.DateOnly The19th { get; } - public static System.DateOnly The1st { get; } - public static System.DateOnly The20th { get; } - public static System.DateOnly The21st { get; } - public static System.DateOnly The22nd { get; } - public static System.DateOnly The23rd { get; } - public static System.DateOnly The24th { get; } - public static System.DateOnly The25th { get; } - public static System.DateOnly The26th { get; } - public static System.DateOnly The27th { get; } - public static System.DateOnly The28th { get; } - public static System.DateOnly The29th { get; } - public static System.DateOnly The2nd { get; } - public static System.DateOnly The30th { get; } - public static System.DateOnly The3rd { get; } - public static System.DateOnly The4th { get; } - public static System.DateOnly The5th { get; } - public static System.DateOnly The6th { get; } - public static System.DateOnly The7th { get; } - public static System.DateOnly The8th { get; } - public static System.DateOnly The9th { get; } - public static System.DateOnly The(int dayNumber) { } - } - public class August - { - public August() { } - public static System.DateOnly The10th { get; } - public static System.DateOnly The11th { get; } - public static System.DateOnly The12th { get; } - public static System.DateOnly The13th { get; } - public static System.DateOnly The14th { get; } - public static System.DateOnly The15th { get; } - public static System.DateOnly The16th { get; } - public static System.DateOnly The17th { get; } - public static System.DateOnly The18th { get; } - public static System.DateOnly The19th { get; } - public static System.DateOnly The1st { get; } - public static System.DateOnly The20th { get; } - public static System.DateOnly The21st { get; } - public static System.DateOnly The22nd { get; } - public static System.DateOnly The23rd { get; } - public static System.DateOnly The24th { get; } - public static System.DateOnly The25th { get; } - public static System.DateOnly The26th { get; } - public static System.DateOnly The27th { get; } - public static System.DateOnly The28th { get; } - public static System.DateOnly The29th { get; } - public static System.DateOnly The2nd { get; } - public static System.DateOnly The30th { get; } - public static System.DateOnly The31st { get; } - public static System.DateOnly The3rd { get; } - public static System.DateOnly The4th { get; } - public static System.DateOnly The5th { get; } - public static System.DateOnly The6th { get; } - public static System.DateOnly The7th { get; } - public static System.DateOnly The8th { get; } - public static System.DateOnly The9th { get; } - public static System.DateOnly The(int dayNumber) { } - } - public class December - { - public December() { } - public static System.DateOnly The10th { get; } - public static System.DateOnly The11th { get; } - public static System.DateOnly The12th { get; } - public static System.DateOnly The13th { get; } - public static System.DateOnly The14th { get; } - public static System.DateOnly The15th { get; } - public static System.DateOnly The16th { get; } - public static System.DateOnly The17th { get; } - public static System.DateOnly The18th { get; } - public static System.DateOnly The19th { get; } - public static System.DateOnly The1st { get; } - public static System.DateOnly The20th { get; } - public static System.DateOnly The21st { get; } - public static System.DateOnly The22nd { get; } - public static System.DateOnly The23rd { get; } - public static System.DateOnly The24th { get; } - public static System.DateOnly The25th { get; } - public static System.DateOnly The26th { get; } - public static System.DateOnly The27th { get; } - public static System.DateOnly The28th { get; } - public static System.DateOnly The29th { get; } - public static System.DateOnly The2nd { get; } - public static System.DateOnly The30th { get; } - public static System.DateOnly The31st { get; } - public static System.DateOnly The3rd { get; } - public static System.DateOnly The4th { get; } - public static System.DateOnly The5th { get; } - public static System.DateOnly The6th { get; } - public static System.DateOnly The7th { get; } - public static System.DateOnly The8th { get; } - public static System.DateOnly The9th { get; } - public static System.DateOnly The(int dayNumber) { } - } - public class February - { - public February() { } - public static System.DateOnly The10th { get; } - public static System.DateOnly The11th { get; } - public static System.DateOnly The12th { get; } - public static System.DateOnly The13th { get; } - public static System.DateOnly The14th { get; } - public static System.DateOnly The15th { get; } - public static System.DateOnly The16th { get; } - public static System.DateOnly The17th { get; } - public static System.DateOnly The18th { get; } - public static System.DateOnly The19th { get; } - public static System.DateOnly The1st { get; } - public static System.DateOnly The20th { get; } - public static System.DateOnly The21st { get; } - public static System.DateOnly The22nd { get; } - public static System.DateOnly The23rd { get; } - public static System.DateOnly The24th { get; } - public static System.DateOnly The25th { get; } - public static System.DateOnly The26th { get; } - public static System.DateOnly The27th { get; } - public static System.DateOnly The28th { get; } - public static System.DateOnly The29th { get; } - public static System.DateOnly The2nd { get; } - public static System.DateOnly The3rd { get; } - public static System.DateOnly The4th { get; } - public static System.DateOnly The5th { get; } - public static System.DateOnly The6th { get; } - public static System.DateOnly The7th { get; } - public static System.DateOnly The8th { get; } - public static System.DateOnly The9th { get; } - public static System.DateOnly The(int dayNumber) { } - } - public class January - { - public January() { } - public static System.DateOnly The10th { get; } - public static System.DateOnly The11th { get; } - public static System.DateOnly The12th { get; } - public static System.DateOnly The13th { get; } - public static System.DateOnly The14th { get; } - public static System.DateOnly The15th { get; } - public static System.DateOnly The16th { get; } - public static System.DateOnly The17th { get; } - public static System.DateOnly The18th { get; } - public static System.DateOnly The19th { get; } - public static System.DateOnly The1st { get; } - public static System.DateOnly The20th { get; } - public static System.DateOnly The21st { get; } - public static System.DateOnly The22nd { get; } - public static System.DateOnly The23rd { get; } - public static System.DateOnly The24th { get; } - public static System.DateOnly The25th { get; } - public static System.DateOnly The26th { get; } - public static System.DateOnly The27th { get; } - public static System.DateOnly The28th { get; } - public static System.DateOnly The29th { get; } - public static System.DateOnly The2nd { get; } - public static System.DateOnly The30th { get; } - public static System.DateOnly The31st { get; } - public static System.DateOnly The3rd { get; } - public static System.DateOnly The4th { get; } - public static System.DateOnly The5th { get; } - public static System.DateOnly The6th { get; } - public static System.DateOnly The7th { get; } - public static System.DateOnly The8th { get; } - public static System.DateOnly The9th { get; } - public static System.DateOnly The(int dayNumber) { } - } - public class July - { - public July() { } - public static System.DateOnly The10th { get; } - public static System.DateOnly The11th { get; } - public static System.DateOnly The12th { get; } - public static System.DateOnly The13th { get; } - public static System.DateOnly The14th { get; } - public static System.DateOnly The15th { get; } - public static System.DateOnly The16th { get; } - public static System.DateOnly The17th { get; } - public static System.DateOnly The18th { get; } - public static System.DateOnly The19th { get; } - public static System.DateOnly The1st { get; } - public static System.DateOnly The20th { get; } - public static System.DateOnly The21st { get; } - public static System.DateOnly The22nd { get; } - public static System.DateOnly The23rd { get; } - public static System.DateOnly The24th { get; } - public static System.DateOnly The25th { get; } - public static System.DateOnly The26th { get; } - public static System.DateOnly The27th { get; } - public static System.DateOnly The28th { get; } - public static System.DateOnly The29th { get; } - public static System.DateOnly The2nd { get; } - public static System.DateOnly The30th { get; } - public static System.DateOnly The31st { get; } - public static System.DateOnly The3rd { get; } - public static System.DateOnly The4th { get; } - public static System.DateOnly The5th { get; } - public static System.DateOnly The6th { get; } - public static System.DateOnly The7th { get; } - public static System.DateOnly The8th { get; } - public static System.DateOnly The9th { get; } - public static System.DateOnly The(int dayNumber) { } - } - public class June - { - public June() { } - public static System.DateOnly The10th { get; } - public static System.DateOnly The11th { get; } - public static System.DateOnly The12th { get; } - public static System.DateOnly The13th { get; } - public static System.DateOnly The14th { get; } - public static System.DateOnly The15th { get; } - public static System.DateOnly The16th { get; } - public static System.DateOnly The17th { get; } - public static System.DateOnly The18th { get; } - public static System.DateOnly The19th { get; } - public static System.DateOnly The1st { get; } - public static System.DateOnly The20th { get; } - public static System.DateOnly The21st { get; } - public static System.DateOnly The22nd { get; } - public static System.DateOnly The23rd { get; } - public static System.DateOnly The24th { get; } - public static System.DateOnly The25th { get; } - public static System.DateOnly The26th { get; } - public static System.DateOnly The27th { get; } - public static System.DateOnly The28th { get; } - public static System.DateOnly The29th { get; } - public static System.DateOnly The2nd { get; } - public static System.DateOnly The30th { get; } - public static System.DateOnly The3rd { get; } - public static System.DateOnly The4th { get; } - public static System.DateOnly The5th { get; } - public static System.DateOnly The6th { get; } - public static System.DateOnly The7th { get; } - public static System.DateOnly The8th { get; } - public static System.DateOnly The9th { get; } - public static System.DateOnly The(int dayNumber) { } - } - public class March - { - public March() { } - public static System.DateOnly The10th { get; } - public static System.DateOnly The11th { get; } - public static System.DateOnly The12th { get; } - public static System.DateOnly The13th { get; } - public static System.DateOnly The14th { get; } - public static System.DateOnly The15th { get; } - public static System.DateOnly The16th { get; } - public static System.DateOnly The17th { get; } - public static System.DateOnly The18th { get; } - public static System.DateOnly The19th { get; } - public static System.DateOnly The1st { get; } - public static System.DateOnly The20th { get; } - public static System.DateOnly The21st { get; } - public static System.DateOnly The22nd { get; } - public static System.DateOnly The23rd { get; } - public static System.DateOnly The24th { get; } - public static System.DateOnly The25th { get; } - public static System.DateOnly The26th { get; } - public static System.DateOnly The27th { get; } - public static System.DateOnly The28th { get; } - public static System.DateOnly The29th { get; } - public static System.DateOnly The2nd { get; } - public static System.DateOnly The30th { get; } - public static System.DateOnly The31st { get; } - public static System.DateOnly The3rd { get; } - public static System.DateOnly The4th { get; } - public static System.DateOnly The5th { get; } - public static System.DateOnly The6th { get; } - public static System.DateOnly The7th { get; } - public static System.DateOnly The8th { get; } - public static System.DateOnly The9th { get; } - public static System.DateOnly The(int dayNumber) { } - } - public class May - { - public May() { } - public static System.DateOnly The10th { get; } - public static System.DateOnly The11th { get; } - public static System.DateOnly The12th { get; } - public static System.DateOnly The13th { get; } - public static System.DateOnly The14th { get; } - public static System.DateOnly The15th { get; } - public static System.DateOnly The16th { get; } - public static System.DateOnly The17th { get; } - public static System.DateOnly The18th { get; } - public static System.DateOnly The19th { get; } - public static System.DateOnly The1st { get; } - public static System.DateOnly The20th { get; } - public static System.DateOnly The21st { get; } - public static System.DateOnly The22nd { get; } - public static System.DateOnly The23rd { get; } - public static System.DateOnly The24th { get; } - public static System.DateOnly The25th { get; } - public static System.DateOnly The26th { get; } - public static System.DateOnly The27th { get; } - public static System.DateOnly The28th { get; } - public static System.DateOnly The29th { get; } - public static System.DateOnly The2nd { get; } - public static System.DateOnly The30th { get; } - public static System.DateOnly The31st { get; } - public static System.DateOnly The3rd { get; } - public static System.DateOnly The4th { get; } - public static System.DateOnly The5th { get; } - public static System.DateOnly The6th { get; } - public static System.DateOnly The7th { get; } - public static System.DateOnly The8th { get; } - public static System.DateOnly The9th { get; } - public static System.DateOnly The(int dayNumber) { } - } - public class November - { - public November() { } - public static System.DateOnly The10th { get; } - public static System.DateOnly The11th { get; } - public static System.DateOnly The12th { get; } - public static System.DateOnly The13th { get; } - public static System.DateOnly The14th { get; } - public static System.DateOnly The15th { get; } - public static System.DateOnly The16th { get; } - public static System.DateOnly The17th { get; } - public static System.DateOnly The18th { get; } - public static System.DateOnly The19th { get; } - public static System.DateOnly The1st { get; } - public static System.DateOnly The20th { get; } - public static System.DateOnly The21st { get; } - public static System.DateOnly The22nd { get; } - public static System.DateOnly The23rd { get; } - public static System.DateOnly The24th { get; } - public static System.DateOnly The25th { get; } - public static System.DateOnly The26th { get; } - public static System.DateOnly The27th { get; } - public static System.DateOnly The28th { get; } - public static System.DateOnly The29th { get; } - public static System.DateOnly The2nd { get; } - public static System.DateOnly The30th { get; } - public static System.DateOnly The3rd { get; } - public static System.DateOnly The4th { get; } - public static System.DateOnly The5th { get; } - public static System.DateOnly The6th { get; } - public static System.DateOnly The7th { get; } - public static System.DateOnly The8th { get; } - public static System.DateOnly The9th { get; } - public static System.DateOnly The(int dayNumber) { } - } - public class October - { - public October() { } - public static System.DateOnly The10th { get; } - public static System.DateOnly The11th { get; } - public static System.DateOnly The12th { get; } - public static System.DateOnly The13th { get; } - public static System.DateOnly The14th { get; } - public static System.DateOnly The15th { get; } - public static System.DateOnly The16th { get; } - public static System.DateOnly The17th { get; } - public static System.DateOnly The18th { get; } - public static System.DateOnly The19th { get; } - public static System.DateOnly The1st { get; } - public static System.DateOnly The20th { get; } - public static System.DateOnly The21st { get; } - public static System.DateOnly The22nd { get; } - public static System.DateOnly The23rd { get; } - public static System.DateOnly The24th { get; } - public static System.DateOnly The25th { get; } - public static System.DateOnly The26th { get; } - public static System.DateOnly The27th { get; } - public static System.DateOnly The28th { get; } - public static System.DateOnly The29th { get; } - public static System.DateOnly The2nd { get; } - public static System.DateOnly The30th { get; } - public static System.DateOnly The31st { get; } - public static System.DateOnly The3rd { get; } - public static System.DateOnly The4th { get; } - public static System.DateOnly The5th { get; } - public static System.DateOnly The6th { get; } - public static System.DateOnly The7th { get; } - public static System.DateOnly The8th { get; } - public static System.DateOnly The9th { get; } - public static System.DateOnly The(int dayNumber) { } - } - public class September - { - public September() { } - public static System.DateOnly The10th { get; } - public static System.DateOnly The11th { get; } - public static System.DateOnly The12th { get; } - public static System.DateOnly The13th { get; } - public static System.DateOnly The14th { get; } - public static System.DateOnly The15th { get; } - public static System.DateOnly The16th { get; } - public static System.DateOnly The17th { get; } - public static System.DateOnly The18th { get; } - public static System.DateOnly The19th { get; } - public static System.DateOnly The1st { get; } - public static System.DateOnly The20th { get; } - public static System.DateOnly The21st { get; } - public static System.DateOnly The22nd { get; } - public static System.DateOnly The23rd { get; } - public static System.DateOnly The24th { get; } - public static System.DateOnly The25th { get; } - public static System.DateOnly The26th { get; } - public static System.DateOnly The27th { get; } - public static System.DateOnly The28th { get; } - public static System.DateOnly The29th { get; } - public static System.DateOnly The2nd { get; } - public static System.DateOnly The30th { get; } - public static System.DateOnly The3rd { get; } - public static System.DateOnly The4th { get; } - public static System.DateOnly The5th { get; } - public static System.DateOnly The6th { get; } - public static System.DateOnly The7th { get; } - public static System.DateOnly The8th { get; } - public static System.DateOnly The9th { get; } - public static System.DateOnly The(int dayNumber) { } - } - } - public enum OnNoMatch - { - ThrowsException = 0, - ReturnsNull = 1, - } - public class static OrdinalizeExtensions - { - public static string Ordinalize(this string numberString) { } - public static string Ordinalize(this string numberString, System.Globalization.CultureInfo culture) { } - public static string Ordinalize(this string numberString, Humanizer.GrammaticalGender gender) { } - public static string Ordinalize(this string numberString, Humanizer.GrammaticalGender gender, System.Globalization.CultureInfo culture) { } - public static string Ordinalize(this int number) { } - public static string Ordinalize(this int number, System.Globalization.CultureInfo culture) { } - public static string Ordinalize(this int number, Humanizer.GrammaticalGender gender) { } - public static string Ordinalize(this int number, Humanizer.GrammaticalGender gender, System.Globalization.CultureInfo culture) { } - } - public enum Plurality - { - Singular = 0, - Plural = 1, - CouldBeEither = 2, - } - public class static PrepositionsExtensions - { - public static System.DateTime At(this System.DateTime date, int hour, int min = 0, int second = 0, int millisecond = 0) { } - public static System.DateTime AtMidnight(this System.DateTime date) { } - public static System.DateTime AtNoon(this System.DateTime date) { } - public static System.DateTime In(this System.DateTime date, int year) { } - } - public class static RomanNumeralExtensions - { - public static int FromRoman(this string input) { } - public static string ToRoman(this int input) { } - } - public enum ShowQuantityAs - { - None = 0, - Numeric = 1, - Words = 2, - } - public class static StringDehumanizeExtensions - { - public static string Dehumanize(this string input) { } - } - public class static StringExtensions - { - public static string FormatWith(this string format, params object[] args) { } - public static string FormatWith(this string format, System.IFormatProvider provider, params object[] args) { } - } - public class static StringHumanizeExtensions - { - public static string Humanize(this string input) { } - public static string Humanize(this string input, Humanizer.LetterCasing casing) { } - } - public class static TimeOnlyToClockNotationExtensions - { - public static string ToClockNotation(this System.TimeOnly input) { } - } - public class static TimeSpanHumanizeExtensions - { - public static string Humanize(this System.TimeSpan timeSpan, int precision = 1, System.Globalization.CultureInfo culture = null, Humanizer.Localisation.TimeUnit maxUnit = 5, Humanizer.Localisation.TimeUnit minUnit = 0, string collectionSeparator = ", ", bool toWords = False) { } - public static string Humanize(this System.TimeSpan timeSpan, int precision, bool countEmptyUnits, System.Globalization.CultureInfo culture = null, Humanizer.Localisation.TimeUnit maxUnit = 5, Humanizer.Localisation.TimeUnit minUnit = 0, string collectionSeparator = ", ", bool toWords = False) { } - } - public class static To - { - public static Humanizer.ICulturedStringTransformer LowerCase { get; } - public static Humanizer.ICulturedStringTransformer SentenceCase { get; } - public static Humanizer.ICulturedStringTransformer TitleCase { get; } - public static Humanizer.ICulturedStringTransformer UpperCase { get; } - public static string Transform(this string input, params Humanizer.IStringTransformer[] transformers) { } - public static string Transform(this string input, System.Globalization.CultureInfo culture, params Humanizer.ICulturedStringTransformer[] transformers) { } - } - public class static ToQuantityExtensions - { - public static string ToQuantity(this string input, int quantity, Humanizer.ShowQuantityAs showQuantityAs = 1) { } - public static string ToQuantity(this string input, int quantity, string format, System.IFormatProvider formatProvider = null) { } - public static string ToQuantity(this string input, long quantity, Humanizer.ShowQuantityAs showQuantityAs = 1) { } - public static string ToQuantity(this string input, long quantity, string format, System.IFormatProvider formatProvider = null) { } - public static string ToQuantity(this string input, double quantity, string format = null, System.IFormatProvider formatProvider = null) { } - public static string ToQuantity(this string input, double quantity) { } - } - public class static TruncateExtensions - { - public static string Truncate(this string input, int length) { } - public static string Truncate(this string input, int length, Humanizer.ITruncator truncator, Humanizer.TruncateFrom from = 1) { } - public static string Truncate(this string input, int length, string truncationString, Humanizer.TruncateFrom from = 1) { } - public static string Truncate(this string input, int length, string truncationString, Humanizer.ITruncator truncator, Humanizer.TruncateFrom from = 1) { } - } - public enum TruncateFrom - { - Left = 0, - Right = 1, - } - public class static Truncator - { - public static Humanizer.ITruncator FixedLength { get; } - public static Humanizer.ITruncator FixedNumberOfCharacters { get; } - public static Humanizer.ITruncator FixedNumberOfWords { get; } - } - public class static TupleizeExtensions - { - public static string Tupleize(this int input) { } - } -} -namespace Humanizer.Bytes -{ - public class ByteRate - { - public ByteRate(Humanizer.Bytes.ByteSize size, System.TimeSpan interval) { } - public System.TimeSpan Interval { get; } - public Humanizer.Bytes.ByteSize Size { get; } - public string Humanize(Humanizer.Localisation.TimeUnit timeUnit = 1) { } - public string Humanize(string format, Humanizer.Localisation.TimeUnit timeUnit = 1) { } - } - public struct ByteSize : System.IComparable, System.IComparable, System.IEquatable, System.IFormattable - { - public const string Bit = "bit"; - public const string BitSymbol = "b"; - public const long BitsInByte = 8; - public const string Byte = "byte"; - public const string ByteSymbol = "B"; - public const long BytesInGigabyte = 1073741824; - public const long BytesInKilobyte = 1024; - public const long BytesInMegabyte = 1048576; - public const long BytesInTerabyte = 1099511627776; - public const string Gigabyte = "gigabyte"; - public const string GigabyteSymbol = "GB"; - public const string Kilobyte = "kilobyte"; - public const string KilobyteSymbol = "KB"; - public static readonly Humanizer.Bytes.ByteSize MaxValue; - public const string Megabyte = "megabyte"; - public const string MegabyteSymbol = "MB"; - public static readonly Humanizer.Bytes.ByteSize MinValue; - public const string Terabyte = "terabyte"; - public const string TerabyteSymbol = "TB"; - public ByteSize(double byteSize) { } - [get: System.Runtime.CompilerServices.IsReadOnlyAttribute()] - public long Bits { get; } - [get: System.Runtime.CompilerServices.IsReadOnlyAttribute()] - public double Bytes { get; } - [get: System.Runtime.CompilerServices.IsReadOnlyAttribute()] - public double Gigabytes { get; } - [get: System.Runtime.CompilerServices.IsReadOnlyAttribute()] - public double Kilobytes { get; } - public string LargestWholeNumberFullWord { get; } - public string LargestWholeNumberSymbol { get; } - public double LargestWholeNumberValue { get; } - [get: System.Runtime.CompilerServices.IsReadOnlyAttribute()] - public double Megabytes { get; } - [get: System.Runtime.CompilerServices.IsReadOnlyAttribute()] - public double Terabytes { get; } - public Humanizer.Bytes.ByteSize Add(Humanizer.Bytes.ByteSize bs) { } - public Humanizer.Bytes.ByteSize AddBits(long value) { } - public Humanizer.Bytes.ByteSize AddBytes(double value) { } - public Humanizer.Bytes.ByteSize AddGigabytes(double value) { } - public Humanizer.Bytes.ByteSize AddKilobytes(double value) { } - public Humanizer.Bytes.ByteSize AddMegabytes(double value) { } - public Humanizer.Bytes.ByteSize AddTerabytes(double value) { } - public int CompareTo(object obj) { } - public int CompareTo(Humanizer.Bytes.ByteSize other) { } - public override bool Equals(object value) { } - public bool Equals(Humanizer.Bytes.ByteSize value) { } - public static Humanizer.Bytes.ByteSize FromBits(long value) { } - public static Humanizer.Bytes.ByteSize FromBytes(double value) { } - public static Humanizer.Bytes.ByteSize FromGigabytes(double value) { } - public static Humanizer.Bytes.ByteSize FromKilobytes(double value) { } - public static Humanizer.Bytes.ByteSize FromMegabytes(double value) { } - public static Humanizer.Bytes.ByteSize FromTerabytes(double value) { } - public override int GetHashCode() { } - public string GetLargestWholeNumberFullWord(System.IFormatProvider provider = null) { } - public string GetLargestWholeNumberSymbol(System.IFormatProvider provider = null) { } - public static Humanizer.Bytes.ByteSize Parse(string s) { } - public static Humanizer.Bytes.ByteSize Parse(string s, System.IFormatProvider formatProvider) { } - public Humanizer.Bytes.ByteSize Subtract(Humanizer.Bytes.ByteSize bs) { } - public string ToFullWords(string format = null, System.IFormatProvider provider = null) { } - public override string ToString() { } - public string ToString(System.IFormatProvider provider) { } - public string ToString(string format) { } - public string ToString(string format, System.IFormatProvider provider) { } - public static bool TryParse(string s, out Humanizer.Bytes.ByteSize result) { } - public static bool TryParse(string s, System.IFormatProvider formatProvider, out Humanizer.Bytes.ByteSize result) { } - public static Humanizer.Bytes.ByteSize +(Humanizer.Bytes.ByteSize b1, Humanizer.Bytes.ByteSize b2) { } - public static Humanizer.Bytes.ByteSize --(Humanizer.Bytes.ByteSize b) { } - public static bool ==(Humanizer.Bytes.ByteSize b1, Humanizer.Bytes.ByteSize b2) { } - public static bool >(Humanizer.Bytes.ByteSize b1, Humanizer.Bytes.ByteSize b2) { } - public static bool >=(Humanizer.Bytes.ByteSize b1, Humanizer.Bytes.ByteSize b2) { } - public static Humanizer.Bytes.ByteSize ++(Humanizer.Bytes.ByteSize b) { } - public static bool !=(Humanizer.Bytes.ByteSize b1, Humanizer.Bytes.ByteSize b2) { } - public static bool <(Humanizer.Bytes.ByteSize b1, Humanizer.Bytes.ByteSize b2) { } - public static bool <=(Humanizer.Bytes.ByteSize b1, Humanizer.Bytes.ByteSize b2) { } - public static Humanizer.Bytes.ByteSize -(Humanizer.Bytes.ByteSize b1, Humanizer.Bytes.ByteSize b2) { } - public static Humanizer.Bytes.ByteSize -(Humanizer.Bytes.ByteSize b) { } - } -} -namespace Humanizer.Configuration -{ - public class static Configurator - { - public static Humanizer.Configuration.LocaliserRegistry CollectionFormatters { get; } - public static Humanizer.DateTimeHumanizeStrategy.IDateOnlyHumanizeStrategy DateOnlyHumanizeStrategy { get; set; } - public static Humanizer.Configuration.LocaliserRegistry DateOnlyToOrdinalWordsConverters { get; } - public static Humanizer.DateTimeHumanizeStrategy.IDateTimeHumanizeStrategy DateTimeHumanizeStrategy { get; set; } - public static Humanizer.DateTimeHumanizeStrategy.IDateTimeOffsetHumanizeStrategy DateTimeOffsetHumanizeStrategy { get; set; } - public static Humanizer.Configuration.LocaliserRegistry DateToOrdinalWordsConverters { get; } - public static System.Func EnumDescriptionPropertyLocator { get; set; } - public static Humanizer.Configuration.LocaliserRegistry Formatters { get; } - public static Humanizer.Configuration.LocaliserRegistry NumberToWordsConverters { get; } - public static Humanizer.Configuration.LocaliserRegistry Ordinalizers { get; } - public static Humanizer.DateTimeHumanizeStrategy.ITimeOnlyHumanizeStrategy TimeOnlyHumanizeStrategy { get; set; } - public static Humanizer.Configuration.LocaliserRegistry TimeOnlyToClockNotationConverters { get; } - } - public class LocaliserRegistry - where TLocaliser : class - { - public LocaliserRegistry(TLocaliser defaultLocaliser) { } - public LocaliserRegistry(System.Func defaultLocaliser) { } - public void Register(string localeCode, TLocaliser localiser) { } - public void Register(string localeCode, System.Func localiser) { } - public TLocaliser ResolveForCulture(System.Globalization.CultureInfo culture) { } - public TLocaliser ResolveForUiCulture() { } - } -} -namespace Humanizer.DateTimeHumanizeStrategy -{ - public class DefaultDateOnlyHumanizeStrategy : Humanizer.DateTimeHumanizeStrategy.IDateOnlyHumanizeStrategy - { - public DefaultDateOnlyHumanizeStrategy() { } - public string Humanize(System.DateOnly input, System.DateOnly comparisonBase, System.Globalization.CultureInfo culture) { } - } - public class DefaultDateTimeHumanizeStrategy : Humanizer.DateTimeHumanizeStrategy.IDateTimeHumanizeStrategy - { - public DefaultDateTimeHumanizeStrategy() { } - public string Humanize(System.DateTime input, System.DateTime comparisonBase, System.Globalization.CultureInfo culture) { } - } - public class DefaultDateTimeOffsetHumanizeStrategy : Humanizer.DateTimeHumanizeStrategy.IDateTimeOffsetHumanizeStrategy - { - public DefaultDateTimeOffsetHumanizeStrategy() { } - public string Humanize(System.DateTimeOffset input, System.DateTimeOffset comparisonBase, System.Globalization.CultureInfo culture) { } - } - public class DefaultTimeOnlyHumanizeStrategy : Humanizer.DateTimeHumanizeStrategy.ITimeOnlyHumanizeStrategy - { - public DefaultTimeOnlyHumanizeStrategy() { } - public string Humanize(System.TimeOnly input, System.TimeOnly comparisonBase, System.Globalization.CultureInfo culture) { } - } - public interface IDateOnlyHumanizeStrategy - { - string Humanize(System.DateOnly input, System.DateOnly comparisonBase, System.Globalization.CultureInfo culture); - } - public interface IDateTimeHumanizeStrategy - { - string Humanize(System.DateTime input, System.DateTime comparisonBase, System.Globalization.CultureInfo culture); - } - public interface IDateTimeOffsetHumanizeStrategy - { - string Humanize(System.DateTimeOffset input, System.DateTimeOffset comparisonBase, System.Globalization.CultureInfo culture); - } - public interface ITimeOnlyHumanizeStrategy - { - string Humanize(System.TimeOnly input, System.TimeOnly comparisonBase, System.Globalization.CultureInfo culture); - } - public class PrecisionDateOnlyHumanizeStrategy : Humanizer.DateTimeHumanizeStrategy.IDateOnlyHumanizeStrategy - { - public PrecisionDateOnlyHumanizeStrategy(double precision = 0.75) { } - public string Humanize(System.DateOnly input, System.DateOnly comparisonBase, System.Globalization.CultureInfo culture) { } - } - public class PrecisionDateTimeHumanizeStrategy : Humanizer.DateTimeHumanizeStrategy.IDateTimeHumanizeStrategy - { - public PrecisionDateTimeHumanizeStrategy(double precision = 0.75) { } - public string Humanize(System.DateTime input, System.DateTime comparisonBase, System.Globalization.CultureInfo culture) { } - } - public class PrecisionDateTimeOffsetHumanizeStrategy : Humanizer.DateTimeHumanizeStrategy.IDateTimeOffsetHumanizeStrategy - { - public PrecisionDateTimeOffsetHumanizeStrategy(double precision = 0.75) { } - public string Humanize(System.DateTimeOffset input, System.DateTimeOffset comparisonBase, System.Globalization.CultureInfo culture) { } - } - public class PrecisionTimeOnlyHumanizeStrategy : Humanizer.DateTimeHumanizeStrategy.ITimeOnlyHumanizeStrategy - { - public PrecisionTimeOnlyHumanizeStrategy(double precision = 0.75) { } - public string Humanize(System.TimeOnly input, System.TimeOnly comparisonBase, System.Globalization.CultureInfo culture) { } - } -} -namespace Humanizer.Inflections -{ - public class static Vocabularies - { - public static Humanizer.Inflections.Vocabulary Default { get; } - } - public class Vocabulary - { - public void AddIrregular(string singular, string plural, bool matchEnding = True) { } - public void AddPlural(string rule, string replacement) { } - public void AddSingular(string rule, string replacement) { } - public void AddUncountable(string word) { } - public string Pluralize(string word, bool inputIsKnownToBeSingular = True) { } - public string Singularize(string word, bool inputIsKnownToBePlural = True, bool skipSimpleWords = False) { } - } -} -namespace Humanizer.Localisation.CollectionFormatters -{ - public interface ICollectionFormatter - { - string Humanize(System.Collections.Generic.IEnumerable collection); - string Humanize(System.Collections.Generic.IEnumerable collection, System.Func objectFormatter); - string Humanize(System.Collections.Generic.IEnumerable collection, System.Func objectFormatter); - string Humanize(System.Collections.Generic.IEnumerable collection, string separator); - string Humanize(System.Collections.Generic.IEnumerable collection, System.Func objectFormatter, string separator); - string Humanize(System.Collections.Generic.IEnumerable collection, System.Func objectFormatter, string separator); - } -} -namespace Humanizer.Localisation -{ - public enum DataUnit - { - Bit = 0, - Byte = 1, - Kilobyte = 2, - Megabyte = 3, - Gigabyte = 4, - Terabyte = 5, - } - public class ResourceKeys - { - public ResourceKeys() { } - public class static DateHumanize - { - public const string Never = "DateHumanize_Never"; - public const string Now = "DateHumanize_Now"; - public static string GetResourceKey(Humanizer.Localisation.TimeUnit timeUnit, Humanizer.Localisation.Tense timeUnitTense, int count = 1) { } - } - public class static TimeSpanHumanize - { - public static string GetResourceKey(Humanizer.Localisation.TimeUnit unit, int count = 1, bool toWords = False) { } - } - } - public class static Resources - { - public static string GetResource(string resourceKey, System.Globalization.CultureInfo culture = null) { } - } - public enum Tense - { - Future = 0, - Past = 1, - } - public enum TimeUnit - { - Millisecond = 0, - Second = 1, - Minute = 2, - Hour = 3, - Day = 4, - Week = 5, - Month = 6, - Year = 7, - } -} -namespace Humanizer.Localisation.DateToOrdinalWords -{ - public interface IDateOnlyToOrdinalWordConverter - { - string Convert(System.DateOnly date); - string Convert(System.DateOnly date, Humanizer.GrammaticalCase grammaticalCase); - } - public interface IDateToOrdinalWordConverter - { - string Convert(System.DateTime date); - string Convert(System.DateTime date, Humanizer.GrammaticalCase grammaticalCase); - } -} -namespace Humanizer.Localisation.Formatters -{ - public class DefaultFormatter : Humanizer.Localisation.Formatters.IFormatter - { - public DefaultFormatter(string localeCode) { } - public virtual string DataUnitHumanize(Humanizer.Localisation.DataUnit dataUnit, double count, bool toSymbol = True) { } - public virtual string DateHumanize(Humanizer.Localisation.TimeUnit timeUnit, Humanizer.Localisation.Tense timeUnitTense, int unit) { } - public virtual string DateHumanize_Never() { } - public virtual string DateHumanize_Now() { } - protected virtual string Format(string resourceKey) { } - protected virtual string Format(string resourceKey, int number, bool toWords = False) { } - protected virtual string GetResourceKey(string resourceKey, int number) { } - protected virtual string GetResourceKey(string resourceKey) { } - public virtual string TimeSpanHumanize(Humanizer.Localisation.TimeUnit timeUnit, int unit, bool toWords = False) { } - public virtual string TimeSpanHumanize_Zero() { } - } - public interface IFormatter - { - string DataUnitHumanize(Humanizer.Localisation.DataUnit dataUnit, double count, bool toSymbol = True); - string DateHumanize(Humanizer.Localisation.TimeUnit timeUnit, Humanizer.Localisation.Tense timeUnitTense, int unit); - string DateHumanize_Never(); - string DateHumanize_Now(); - string TimeSpanHumanize(Humanizer.Localisation.TimeUnit timeUnit, int unit, bool toWords = False); - string TimeSpanHumanize_Zero(); - } -} -namespace Humanizer.Localisation.NumberToWords -{ - public interface INumberToWordsConverter - { - string Convert(long number); - string Convert(long number, bool addAnd); - string Convert(long number, Humanizer.GrammaticalGender gender, bool addAnd = True); - string ConvertToOrdinal(int number); - string ConvertToOrdinal(int number, Humanizer.GrammaticalGender gender); - string ConvertToTuple(int number); - } -} -namespace Humanizer.Localisation.Ordinalizers -{ - public interface IOrdinalizer - { - string Convert(int number, string numberString); - string Convert(int number, string numberString, Humanizer.GrammaticalGender gender); - } -} -namespace Humanizer.Localisation.TimeToClockNotation -{ - public interface ITimeOnlyToClockNotationConverter - { - string Convert(System.TimeOnly time); - } - public class TimeOnlyToClockNotationConverter : Humanizer.Localisation.TimeToClockNotation.ITimeOnlyToClockNotationConverter - { - public TimeOnlyToClockNotationConverter() { } - public virtual string Convert(System.TimeOnly time) { } - } -} \ No newline at end of file diff --git a/src/Humanizer.Tests/ApiApprover/PublicApiApprovalTest.approve_public_api.approved.txt b/src/Humanizer.Tests/ApiApprover/PublicApiApprovalTest.approve_public_api.approved.txt index d7201d209..c9d8f7bd5 100644 --- a/src/Humanizer.Tests/ApiApprover/PublicApiApprovalTest.approve_public_api.approved.txt +++ b/src/Humanizer.Tests/ApiApprover/PublicApiApprovalTest.approve_public_api.approved.txt @@ -1953,6 +1953,11 @@ namespace Humanizer.Localisation.Ordinalizers } namespace Humanizer.Localisation.TimeToClockNotation { + public class BrazilianPortugueseTimeOnlyToClockNotationConverter : Humanizer.Localisation.TimeToClockNotation.ITimeOnlyToClockNotationConverter + { + public BrazilianPortugueseTimeOnlyToClockNotationConverter() { } + public virtual string Convert(System.TimeOnly time) { } + } public class DefaultTimeOnlyToClockNotationConverter : Humanizer.Localisation.TimeToClockNotation.ITimeOnlyToClockNotationConverter { public DefaultTimeOnlyToClockNotationConverter() { } @@ -1962,9 +1967,4 @@ namespace Humanizer.Localisation.TimeToClockNotation { string Convert(System.TimeOnly time); } - public class PtBrTimeOnlyToClockNotationConverter : Humanizer.Localisation.TimeToClockNotation.ITimeOnlyToClockNotationConverter - { - public PtBrTimeOnlyToClockNotationConverter() { } - public virtual string Convert(System.TimeOnly time) { } - } } \ No newline at end of file diff --git a/src/Humanizer/Configuration/TimeOnlyToClockNotationConvertersRegistry.cs b/src/Humanizer/Configuration/TimeOnlyToClockNotationConvertersRegistry.cs index 37aceea14..9e965d5f1 100644 --- a/src/Humanizer/Configuration/TimeOnlyToClockNotationConvertersRegistry.cs +++ b/src/Humanizer/Configuration/TimeOnlyToClockNotationConvertersRegistry.cs @@ -11,7 +11,7 @@ public TimeOnlyToClockNotationConvertersRegistry() : base(new DefaultTimeOnlyToC Register("en-US", new DefaultTimeOnlyToClockNotationConverter()); Register("en-UK", new DefaultTimeOnlyToClockNotationConverter()); Register("de", new DefaultTimeOnlyToClockNotationConverter()); - Register("pt-BR", new PtBrTimeOnlyToClockNotationConverter()); + Register("pt-BR", new BrazilianPortugueseTimeOnlyToClockNotationConverter()); } } } diff --git a/src/Humanizer/Localisation/TimeToClockNotation/PtBrTimeOnlyToClockNotationConverter.cs b/src/Humanizer/Localisation/TimeToClockNotation/BrazilianPortugueseTimeOnlyToClockNotationConverter.cs similarity index 91% rename from src/Humanizer/Localisation/TimeToClockNotation/PtBrTimeOnlyToClockNotationConverter.cs rename to src/Humanizer/Localisation/TimeToClockNotation/BrazilianPortugueseTimeOnlyToClockNotationConverter.cs index 6d372e9a7..9d5e7cc49 100644 --- a/src/Humanizer/Localisation/TimeToClockNotation/PtBrTimeOnlyToClockNotationConverter.cs +++ b/src/Humanizer/Localisation/TimeToClockNotation/BrazilianPortugueseTimeOnlyToClockNotationConverter.cs @@ -4,7 +4,7 @@ namespace Humanizer.Localisation.TimeToClockNotation { - public class PtBrTimeOnlyToClockNotationConverter : ITimeOnlyToClockNotationConverter + public class BrazilianPortugueseTimeOnlyToClockNotationConverter : ITimeOnlyToClockNotationConverter { public virtual string Convert(TimeOnly time) {