Class Scine::Utils::ScopedLocale

class ScopedLocale

Introduces a scope to change the locale, the original locale will be set back upon destruction.

Public Functions

ScopedLocale(const std::string &targetLocale)

Explicit constructor to avoid unintentional instances.

ScopedLocale(const ScopedLocale&)

Deleted copy constructor to avoid duplicate instances.

ScopedLocale(ScopedLocale&&)

Move constructor.

~ScopedLocale()

Custom Destructor.

Public Static Functions

static ScopedLocale cLocale()

Scope for the standard C locale.

Return

ScopedLocale