mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 13:23:59 +00:00
Format all C++ and Java code via clang-format
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
@@ -15,8 +15,8 @@ std::string AddGroupingSeparators(std::string const & valueString, std::string c
|
||||
std::string out(valueString);
|
||||
|
||||
if (out.size() > 4 && !groupingSeparator.empty())
|
||||
for (int pos = out.size() - 3; pos > 0; pos -= 3)
|
||||
out.insert(pos, groupingSeparator);
|
||||
for (int pos = out.size() - 3; pos > 0; pos -= 3)
|
||||
out.insert(pos, groupingSeparator);
|
||||
|
||||
return out;
|
||||
}
|
||||
@@ -160,13 +160,11 @@ UNIT_TEST(ToStringPrecisionLocale)
|
||||
std::string d1String;
|
||||
};
|
||||
|
||||
TestData testData[] = {
|
||||
// Locale name , Decimal
|
||||
{ "en_US.UTF-8", "9.8"},
|
||||
{ "es_ES.UTF-8", "9,8"},
|
||||
{ "fr_FR.UTF-8", "9,8"},
|
||||
{ "ru_RU.UTF-8", "9,8"}
|
||||
};
|
||||
TestData testData[] = {// Locale name , Decimal
|
||||
{"en_US.UTF-8", "9.8"},
|
||||
{"es_ES.UTF-8", "9,8"},
|
||||
{"fr_FR.UTF-8", "9,8"},
|
||||
{"ru_RU.UTF-8", "9,8"}};
|
||||
|
||||
for (TestData const & data : testData)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user