Localization helper.
This helper class can be used to solve the localization problems, usually related to the textual files reading/writing, namely when floating point values are read / written with API functions. The problem relates to such locale specific settings as decimal point separator, thousands separator, etc.
To use the Localizer class, just create a local variable in the beginning of the code where you need to read / write data from textual file(s). The constructor of the class forces setting "C" locale temporarily. The destructor switches back to the initial locale.
There are two ways to create a localizer. First constructor accepts category and locale value to be forced as parameters. The second constructor does not take parameters, and is just a shortcut to the first one, setting LC_NUMERIC as a category and "C" as a locale to force.
readSomething();
writeSomething();
Localization helper.
Definition: Qtx.h:151