From bb8398e132f30cd4d0b63d2517b8a9a8f0f082f8 Mon Sep 17 00:00:00 2001 From: yakupcemilk Date: Wed, 15 Nov 2023 23:28:12 +0300 Subject: [PATCH] =?UTF-8?q?T=C3=BCrkiye'ye=20Ho=C5=9Fgeldiniz?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/faker-cxx/types/Country.h | 6 +++--- include/faker-cxx/types/PhoneNumberCountryFormat.h | 2 +- src/modules/location/LocationTest.cpp | 2 +- src/modules/location/data/Countries.h | 2 +- src/modules/person/Person.cpp | 4 ++-- src/modules/person/PersonTest.cpp | 6 +++--- .../person/data/{turkey => turkiye}/TurkishFirstNames.h | 0 .../person/data/{turkey => turkiye}/TurkishLastNames.h | 0 .../person/data/{turkey => turkiye}/TurkishPeopleNames.h | 0 .../person/data/{turkey => turkiye}/TurkishPrefixes.h | 0 src/modules/phone/data/PhoneNumbers.h | 2 +- 11 files changed, 12 insertions(+), 12 deletions(-) rename src/modules/person/data/{turkey => turkiye}/TurkishFirstNames.h (100%) rename src/modules/person/data/{turkey => turkiye}/TurkishLastNames.h (100%) rename src/modules/person/data/{turkey => turkiye}/TurkishPeopleNames.h (100%) rename src/modules/person/data/{turkey => turkiye}/TurkishPrefixes.h (100%) diff --git a/include/faker-cxx/types/Country.h b/include/faker-cxx/types/Country.h index a0bdfd91c..7d45f5194 100644 --- a/include/faker-cxx/types/Country.h +++ b/include/faker-cxx/types/Country.h @@ -21,7 +21,7 @@ enum class Country Finland, Nepal, Spain, - Turkey, + Turkiye, Czech, Slovakia, Ukraine, @@ -32,7 +32,7 @@ enum class Country const std::vector countries{ Country::Usa, Country::England, Country::Poland, Country::Italy, Country::France, Country::Germany, Country::Russia, Country::Romania, Country::India, Country::Finland, Country::Nepal, Country::Spain, - Country::Turkey, Country::Czech, Country::Slovakia, Country::Ukraine, Country::Denmark, Country::Sweden}; + Country::Turkiye, Country::Czech, Country::Slovakia, Country::Ukraine, Country::Denmark, Country::Sweden}; inline std::string toString(Country country) { @@ -41,7 +41,7 @@ inline std::string toString(Country country) {Country::Italy, "Italy"}, {Country::France, "France"}, {Country::Germany, "Germany"}, {Country::Russia, "Russia"}, {Country::Romania, "Romania"}, {Country::India, "India"}, {Country::Finland, "Finland"}, {Country::Nepal, "Nepal"}, {Country::Spain, "Spain"}, - {Country::Turkey, "Turkey"}, {Country::Czech, "Czech"}, {Country::Slovakia, "Slovakia"}, + {Country::Turkiye, "Turkiye"}, {Country::Czech, "Czech"}, {Country::Slovakia, "Slovakia"}, {Country::Ukraine, "Ukraine"}, {Country::Denmark, "Denmark"}, {Country::Sweden, "Sweden"}}; return countryToStringMapping.at(country); diff --git a/include/faker-cxx/types/PhoneNumberCountryFormat.h b/include/faker-cxx/types/PhoneNumberCountryFormat.h index f9d28409f..4c7315f0e 100644 --- a/include/faker-cxx/types/PhoneNumberCountryFormat.h +++ b/include/faker-cxx/types/PhoneNumberCountryFormat.h @@ -213,7 +213,7 @@ enum class PhoneNumberCountryFormat Tonga, TrinidadAndTobago, Tunisia, - Turkey, + Turkiye, Turkmenistan, TurksAndCaicosIslands, Tuvalu, diff --git a/src/modules/location/LocationTest.cpp b/src/modules/location/LocationTest.cpp index 6148f2320..1ee7b36c4 100644 --- a/src/modules/location/LocationTest.cpp +++ b/src/modules/location/LocationTest.cpp @@ -315,7 +315,7 @@ TEST_F(LocationTest, shouldGenerateTurkiyeCity) const auto generatedCity = Location::city(Country::Turkiye); ASSERT_TRUE( - std::ranges::any_of(turkeyCities, [generatedCity](const std::string& city) { return city == generatedCity; })); + std::ranges::any_of(turkiyeCities, [generatedCity](const std::string& city) { return city == generatedCity; })); } TEST_F(LocationTest, shouldGenerateTurkiyeZipCode) diff --git a/src/modules/location/data/Countries.h b/src/modules/location/data/Countries.h index 7776a550a..a2cb3b857 100644 --- a/src/modules/location/data/Countries.h +++ b/src/modules/location/data/Countries.h @@ -229,7 +229,7 @@ const std::vector allCountries = {"Afghanistan", "Tonga", "Trinidad and Tobago", "Tunisia", - "Turkey", + "Turkiye", "Turkmenistan", "Turks and Caicos Islands", "Tuvalu", diff --git a/src/modules/person/Person.cpp b/src/modules/person/Person.cpp index b5c7e2b62..e4553d9b3 100644 --- a/src/modules/person/Person.cpp +++ b/src/modules/person/Person.cpp @@ -24,7 +24,7 @@ #include "data/slovakia/SlovakPeopleNames.h" #include "data/spain/SpanishPeopleNames.h" #include "data/sweden/SwedishPeopleNames.h" -#include "data/turkey/TurkishPeopleNames.h" +#include "data/turkiye/TurkishPeopleNames.h" #include "data/ukraine/UkrainianPeopleNames.h" #include "data/usa/UsaPeopleNames.h" #include "data/ZodiacSigns.h" @@ -43,7 +43,7 @@ const std::map countryToPeopleNamesMapping{ {Country::Poland, polishPeopleNames}, {Country::Russia, russianPeopleNames}, {Country::Romania, romanianPeopleNames}, {Country::India, indianPeopleNames}, {Country::Finland, finnishPeopleNames}, {Country::Nepal, nepalesePeopleNames}, - {Country::Spain, spanishPeopleNames}, {Country::Turkey, turkishPeopleNames}, + {Country::Spain, spanishPeopleNames}, {Country::Turkiye, turkishPeopleNames}, {Country::Czech, czechPeopleNames}, {Country::Slovakia, slovakPeopleNames}, {Country::Ukraine, ukrainianPeopleNames}, {Country::Denmark, danishPeopleNames}, {Country::Sweden, swedishPeopleNames}, {Country::Usa, usaPeopleNames}}; diff --git a/src/modules/person/PersonTest.cpp b/src/modules/person/PersonTest.cpp index c3cca5dd4..f3d4cdded 100644 --- a/src/modules/person/PersonTest.cpp +++ b/src/modules/person/PersonTest.cpp @@ -24,7 +24,7 @@ #include "data/slovakia/SlovakPeopleNames.h" #include "data/spain/SpanishPeopleNames.h" #include "data/sweden/SwedishPeopleNames.h" -#include "data/turkey/TurkishPeopleNames.h" +#include "data/turkiye/TurkishPeopleNames.h" #include "data/ukraine/UkrainianPeopleNames.h" #include "data/ZodiacSigns.h" #include "src/modules/person/data/PeopleNames.h" @@ -43,7 +43,7 @@ const std::map countryToPeopleNamesMapping{ {Country::Poland, polishPeopleNames}, {Country::Russia, russianPeopleNames}, {Country::Romania, romanianPeopleNames}, {Country::India, indianPeopleNames}, {Country::Finland, finnishPeopleNames}, {Country::Nepal, nepalesePeopleNames}, - {Country::Spain, spanishPeopleNames}, {Country::Turkey, turkishPeopleNames}, + {Country::Spain, spanishPeopleNames}, {Country::Turkiye, turkishPeopleNames}, {Country::Czech, czechPeopleNames}, {Country::Slovakia, slovakPeopleNames}, {Country::Ukraine, ukrainianPeopleNames}, {Country::Denmark, danishPeopleNames}, {Country::Sweden, swedishPeopleNames}, {Country::Usa, usaPeopleNames}}; @@ -54,7 +54,7 @@ const std::map generatedTestName{ {Country::Poland, "shouldGeneratePolishName"}, {Country::Russia, "shouldGenerateRussianName"}, {Country::Romania, "shouldGenerateRomanianName"}, {Country::India, "shouldGenerateIndianName"}, {Country::Finland, "shouldGenerateFinnishName"}, {Country::Nepal, "shouldGenerateNepaleseName"}, - {Country::Spain, "shouldGenerateSpanishName"}, {Country::Turkey, "shouldGenerateTurkishName"}, + {Country::Spain, "shouldGenerateSpanishName"}, {Country::Turkiye, "shouldGenerateTurkishName"}, {Country::Czech, "shouldGenerateCzechName"}, {Country::Slovakia, "shouldGenerateSlovakName"}, {Country::Ukraine, "shouldGenerateUkrainianName"}, {Country::Denmark, "shouldGenerateDanishName"}, {Country::Sweden, "shouldGenerateSwedishName"}, {Country::Usa, "shouldGenerateAmericanName"}}; diff --git a/src/modules/person/data/turkey/TurkishFirstNames.h b/src/modules/person/data/turkiye/TurkishFirstNames.h similarity index 100% rename from src/modules/person/data/turkey/TurkishFirstNames.h rename to src/modules/person/data/turkiye/TurkishFirstNames.h diff --git a/src/modules/person/data/turkey/TurkishLastNames.h b/src/modules/person/data/turkiye/TurkishLastNames.h similarity index 100% rename from src/modules/person/data/turkey/TurkishLastNames.h rename to src/modules/person/data/turkiye/TurkishLastNames.h diff --git a/src/modules/person/data/turkey/TurkishPeopleNames.h b/src/modules/person/data/turkiye/TurkishPeopleNames.h similarity index 100% rename from src/modules/person/data/turkey/TurkishPeopleNames.h rename to src/modules/person/data/turkiye/TurkishPeopleNames.h diff --git a/src/modules/person/data/turkey/TurkishPrefixes.h b/src/modules/person/data/turkiye/TurkishPrefixes.h similarity index 100% rename from src/modules/person/data/turkey/TurkishPrefixes.h rename to src/modules/person/data/turkiye/TurkishPrefixes.h diff --git a/src/modules/phone/data/PhoneNumbers.h b/src/modules/phone/data/PhoneNumbers.h index ebbf0134c..9f87eb44d 100644 --- a/src/modules/phone/data/PhoneNumbers.h +++ b/src/modules/phone/data/PhoneNumbers.h @@ -215,7 +215,7 @@ const std::vector phoneNumbers = { "+676 (##) ####", // Tonga "+1 (###) ###-####", // Trinidad and Tobago "+216 (##) ###-###", // Tunisia - "+90 (###) ###-####", // Turkey + "+90 (###) ###-####", // Turkiye "+993 (#) ###-####", // Turkmenistan "+1 (###) ###-####", // Turks and Caicos Islands "+688 (###) ####", // Tuvalu