|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
The locale facts both control-edge conversions need, in one designated-initialisable aggregate. More...
#include <locale_format.hpp>
Public Attributes | |
| std::string_view | decimalSeparator = "." |
| std::string_view | groupSeparator |
| std::string_view | negativeSign = "-" |
| std::string_view | positiveSign = "+" |
| std::string_view | zeroDigit = "0" |
The locale facts both control-edge conversions need, in one designated-initialisable aggregate.
Every member is defaulted to its "C"-locale spelling, so a default-constructed NumericLocale is the identity transform in both directions and a caller naming only the members it cares about gets the "C" spelling for the rest.
Definition at line 102 of file locale_format.hpp.
| std::string_view morph::render::NumericLocale::decimalSeparator = "." |
The locale's decimal-point string, e.g. ",". Empty means the locale has no decimal separator (an integer-only entry).
Definition at line 105 of file locale_format.hpp.
| std::string_view morph::render::NumericLocale::groupSeparator |
The locale's digit-grouping string, e.g. "." or U+202F. Empty means the locale does not group.
Definition at line 108 of file locale_format.hpp.
| std::string_view morph::render::NumericLocale::negativeSign = "-" |
The locale's negative-sign string, e.g. "\u2212". Empty is read as the ASCII "-", not as "this entry cannot be negative".
Definition at line 111 of file locale_format.hpp.
| std::string_view morph::render::NumericLocale::positiveSign = "+" |
The locale's positive-sign string, e.g. "\u061c+". Entry-edge only: it is accepted and dropped, never emitted. Empty leaves the ASCII "+" as the only accepted spelling.
Definition at line 115 of file locale_format.hpp.
| std::string_view morph::render::NumericLocale::zeroDigit = "0" |
The locale's DIGIT ZERO, e.g. "\u0660". The ten digits are the ten code points contiguous from it. Empty, or not a well-formed UTF-8 code point, is read as the ASCII "0".
Definition at line 119 of file locale_format.hpp.