Skip to content

Commit 7b98b12

Browse files
committed
Document locale specifier
1 parent ed5b886 commit 7b98b12

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

doc/modules/ROOT/pages/format.adoc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,19 @@ Boost.Decimal supports formatting with both `<format>` (when C++20 and header ar
1515

1616
Format is supported when using C++20 and a compiler with appropriate support: GCC >= 13, Clang >= 18, MSVC >= 19.40
1717

18+
=== Locale Modifier
19+
20+
If a format string begins with "L" the current global locale will be applied.
21+
This can be set as so:
22+
23+
[source, c++]
24+
----
25+
// Locale can be any valid locale that is installed on your system
26+
const char* locale = "de_DE.UTF-8";
27+
const std::locale a(locale);
28+
std::locale::global(a);
29+
----
30+
1831
=== Sign Modifier
1932

2033
|===

0 commit comments

Comments
 (0)