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