#include <kis_context_thread_locale.h>
Definition at line 20 of file kis_context_thread_locale.h.
◆ AutoSetAndRestoreThreadLocale()
| AutoSetAndRestoreThreadLocale::AutoSetAndRestoreThreadLocale |
( |
| ) |
|
|
inline |
Definition at line 23 of file kis_context_thread_locale.h.
24 {
25#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
26
27 previousThreadConfig = _configthreadlocale(_ENABLE_PER_THREAD_LOCALE);
28
29
30 ssaLocale.assign(setlocale(LC_ALL, NULL));
31
32
33 setlocale(LC_ALL, "C");
34#else
35
38#endif
39 }
References currentLocale, and oldLocale.
◆ ~AutoSetAndRestoreThreadLocale()
| AutoSetAndRestoreThreadLocale::~AutoSetAndRestoreThreadLocale |
( |
| ) |
|
|
inline |
Definition at line 41 of file kis_context_thread_locale.h.
42 {
43#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
44
45 setlocale(LC_ALL, ssaLocale.c_str());
46
47
48 _configthreadlocale(previousThreadConfig);
49#else
50
53#endif
54 }
References currentLocale, and oldLocale.
◆ currentLocale
| locale_t AutoSetAndRestoreThreadLocale::currentLocale |
|
private |
◆ oldLocale
| locale_t AutoSetAndRestoreThreadLocale::oldLocale |
|
private |
The documentation for this class was generated from the following file: