⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
userver
C++ Async Framework v2.0
Documentation
API Groups
Namespaces
Reference
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
w
y
Variables
k
n
r
u
w
Typedefs
c
d
h
m
n
o
p
s
t
u
v
Enumerations
a
b
c
d
f
h
i
l
o
p
r
s
t
u
v
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
~
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
Enumerations
Enumerator
Related Symbols
File List
File Members
All
e
i
l
r
t
u
Functions
Macros
e
i
l
r
t
u
Examples
Toggle main menu visibility
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Concepts
Loading...
Searching...
No Matches
All results
format_options.hpp
Go to the documentation of this file.
1
#
pragma
once
2
3
/// @file userver/decimal64/format_options.hpp
4
/// @brief Structure storing format options for decimal
5
/// @ingroup userver_universal
6
7
#
include
<
optional
>
8
#
include
<
string
>
9
10
USERVER_NAMESPACE_BEGIN
11
12
namespace
decimal64
{
13
14
/// @brief Parameters for flexible decimal formatting
15
struct
FormatOptions
{
16
/// separator of fractional and integer parts
17
std::string
decimal_point
=
"."
;
18
19
/// separator of groups in the integer part
20
std::string
thousands_sep
;
21
22
/// rule of grouping in the integer part
23
/// https://en.cppreference.com/w/cpp/locale/numpunct/grouping
24
std::string
grouping
;
25
26
/// for negative numbers, the specified string will be inserted at beginning
27
std::string
negative_sign
=
"-"
;
28
29
/// for non-negative(>=0) numbers will be inserted at beginning
30
std::string
positive_sign
;
31
32
/// maximum number of digits in the fractional part
33
/// if `nullopt`, then the value is taken from the template argument
34
std::optional<
int
>
precision
;
35
36
/// if true, then the fractional part will have the maximum number of digits
37
bool
is_fixed
=
false
;
38
};
39
40
}
// namespace decimal64
41
42
USERVER_NAMESPACE_END
Docs version:
v1.0
,
v2.0
,
trunk/develop
userver
decimal64
format_options.hpp
Generated on Wed May 15 2024 22:32:05 for userver by
Doxygen
1.10.0