locale
locale copied to clipboard
Add custom `boost::locale::numpunct`
Rebase of #65 onto develop with current changes incorporated. Hence closes #65
Contains the original commit(s) from @salvoilmiosi of #65 squashed and rebased onto develop to fix the conflicts.
On top some refactoring and documentation additions to suit current state of the library.
Will also contain tests.
Design:
- provide
boost::locale::numpunctfor all backends - add
decimal_point_str&thousands_sep_strto provide possibly encoded variants of the decimal and thousand separators -
decimal_point&thousands_sepreturn best-effort single-chars, by default falling back to the "C" locale - Tests should ensure that a Boost.Locale agnostic library (i.e. reading
facet.thousands_sep()&facet.decimal_point()and doing "regular" streaming usingstd::locale) get the expected results.