qxLib
Functions
locale.inl File Reference

Go to the source code of this file.

Functions

void qx::set_locale (const std::locale &locale)
 Set the locale used by string converters by default. More...
 
const std::locale & qx::get_locale ()
 Get the default locale used by string converters. More...
 
const std::ctype< wchar_t > & qx::get_locale_facet ()
 Get the cached character conversion facet for the default locale. More...
 

Detailed Description

Author
Khrapov
Date
07.11.2026

Definition in file locale.inl.

Function Documentation

◆ get_locale()

const std::locale & qx::get_locale ( )
inline

Get the default locale used by string converters.

Returns
- locale retained until the next call to set_locale

Definition at line 77 of file locale.inl.

◆ get_locale_facet()

const std::ctype< wchar_t > & qx::get_locale_facet ( )
inline

Get the cached character conversion facet for the default locale.

Returns
- facet retained until the next call to set_locale

Definition at line 82 of file locale.inl.

◆ set_locale()

void qx::set_locale ( const std::locale &  locale)
inline

Set the locale used by string converters by default.

Call only when no other thread is accessing the locale or its facet.

Parameters
locale- locale whose character facet is used for conversion

Definition at line 72 of file locale.inl.