mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-05 05:04:27 +02:00
Fixed indentation
This commit is contained in:
@@ -147,8 +147,8 @@ namespace units {
|
||||
|
||||
// parse L to enable the locale-specific form
|
||||
if (*begin == 'L') {
|
||||
handler.on_locale();
|
||||
++begin;
|
||||
handler.on_locale();
|
||||
++begin;
|
||||
}
|
||||
|
||||
if(begin != end && *begin != '}' && *begin != '%') {
|
||||
|
@@ -1143,14 +1143,14 @@ TEST_CASE("localization with the 'L' specifier", "[text][fmt][localization]")
|
||||
{
|
||||
struct group2 : std::numpunct<char>
|
||||
{
|
||||
char do_thousands_sep() const override { return '_'; }
|
||||
std::string do_grouping() const override { return "\2"; }
|
||||
char do_thousands_sep() const override { return '_'; }
|
||||
std::string do_grouping() const override { return "\2"; }
|
||||
};
|
||||
|
||||
struct group3 : std::numpunct<char>
|
||||
{
|
||||
char do_thousands_sep() const override { return '\''; }
|
||||
std::string do_grouping() const override { return "\3"; }
|
||||
char do_thousands_sep() const override { return '\''; }
|
||||
std::string do_grouping() const override { return "\3"; }
|
||||
};
|
||||
|
||||
std::locale grp2{std::locale::classic(), new group2};
|
||||
|
Reference in New Issue
Block a user