Fix edge case 200 b.c. in NodaSplitTime

This commit is contained in:
2024-07-08 01:27:03 +02:00
parent 27528c9cf7
commit 58d3569718
4 changed files with 47 additions and 11 deletions

View File

@ -11,7 +11,7 @@ declare(strict_types = 1);
*/
final class NodaTimeSplitter {
const MONTH_NAMES_GERMAN = [
private const MONTH_NAMES_GERMAN = [
"01" => ['Januar', 'Jan.'],
"02" => ['Februar', 'Feb'],
"03" => ['März', 'Mrz.'],
@ -26,7 +26,7 @@ final class NodaTimeSplitter {
"12" => ['Dezember', 'Dez.'],
];
const MONTH_NAMES_ENGLISH = [
private const MONTH_NAMES_ENGLISH = [
"01" => ['January', 'Jan.'],
"02" => ['February', 'Feb'],
"03" => ['March', 'Mar.'],
@ -41,7 +41,7 @@ final class NodaTimeSplitter {
"12" => ['December', 'Dec.'],
];
const MONTH_NAMES_HUNGARIAN = [
private const MONTH_NAMES_HUNGARIAN = [
"01" => ['január', 'januar', 'jan'],
"02" => ['február', 'feb'],
"03" => ['március', 'mar.', 'már.'],
@ -56,7 +56,7 @@ final class NodaTimeSplitter {
"12" => ['december', 'dec.'],
];
const STRINGS_TO_CLEAN = [
private const STRINGS_TO_CLEAN = [
"között" => "",
" рр." => "",
" рр" => "",
@ -79,7 +79,7 @@ final class NodaTimeSplitter {
" до н. е." => "v. Chr.",
];
const STRINGS_TO_CLEAN_START = [
private const STRINGS_TO_CLEAN_START = [
"V. " => "5. ",
"IV. " => "4. ",
"III. " => "3. ",
@ -87,7 +87,7 @@ final class NodaTimeSplitter {
"I. " => "1. ",
];
const STOP_STRINGS_GERMAN = [
private const STOP_STRINGS_GERMAN = [
"-",
",",
";",
@ -108,7 +108,7 @@ final class NodaTimeSplitter {
"ende ",
];
const STOP_STRINGS_HUNGARIAN = [
private const STOP_STRINGS_HUNGARIAN = [
"-",
",",
";",