locale.h -> format.h
This commit is contained in:
parent
febdef43f5
commit
f5371a75f4
@ -449,7 +449,7 @@ Using type-specific formatting::
|
|||||||
|
|
||||||
Using the comma as a thousands separator::
|
Using the comma as a thousands separator::
|
||||||
|
|
||||||
#include <fmt/locale.h>
|
#include <fmt/format.h>
|
||||||
|
|
||||||
auto s = fmt::format(std::locale("en_US.UTF-8"), "{:L}", 1234567890);
|
auto s = fmt::format(std::locale("en_US.UTF-8"), "{:L}", 1234567890);
|
||||||
// s == "1,234,567,890"
|
// s == "1,234,567,890"
|
||||||
|
Loading…
Reference in New Issue
Block a user