core.sys.posix.locale

D header file for POSIX's <locale.h>.

Members

Aliases

locale_t
alias locale_t = _xlocale*
locale_t
alias locale_t = __locale_struct*

Enums

LC_ALL
anonymousenum LC_ALL
LC_ALL
anonymousenum LC_ALL
LC_ALL_MASK
anonymousenum LC_ALL_MASK
LC_COLLATE_MASK
anonymousenum LC_COLLATE_MASK

Functions

duplocale
locale_t duplocale(locale_t locale)

Duplicate existing locale

freelocale
void freelocale(locale_t locale)

Free an allocated locale

localeconv
lconv* localeconv()

Natural language formatting for C

newlocale
locale_t newlocale(int mask, const char* locale, locale_t base)

Create a new locale

setlocale
char* setlocale(int category, const char* locale)

Set the C library's notion of natural language formatting style

uselocale
locale_t uselocale(locale_t locale)

Set the per-thread locale

Manifest constants

LC_GLOBAL_LOCALE
enum LC_GLOBAL_LOCALE;
LC_GLOBAL_LOCALE
enum LC_GLOBAL_LOCALE;

Structs

lconv
struct lconv

See Also

Meta

Standards

The Open Group Base Specifications Issue 7, 2018 edition

Authors

Mathias 'Geod24' Lang

Suggestion Box / Bug Report