Path: blob/main/system/lib/libc/musl/include/locale.h
6172 views
#ifndef _LOCALE_H1#define _LOCALE_H23#ifdef __cplusplus4extern "C" {5#endif67#include <features.h>89#if __cplusplus >= 201103L && !defined(__EMSCRIPTEN__)10#define NULL nullptr11#elif defined(__cplusplus)12#define NULL 0L13#else14#define NULL ((void*)0)15#endif1617#define LC_CTYPE 018#define LC_NUMERIC 119#define LC_TIME 220#define LC_COLLATE 321#define LC_MONETARY 422#define LC_MESSAGES 523#define LC_ALL 62425struct lconv {26char *decimal_point;27char *thousands_sep;28char *grouping;2930char *int_curr_symbol;31char *currency_symbol;32char *mon_decimal_point;33char *mon_thousands_sep;34char *mon_grouping;35char *positive_sign;36char *negative_sign;37char int_frac_digits;38char frac_digits;39char p_cs_precedes;40char p_sep_by_space;41char n_cs_precedes;42char n_sep_by_space;43char p_sign_posn;44char n_sign_posn;45char int_p_cs_precedes;46char int_p_sep_by_space;47char int_n_cs_precedes;48char int_n_sep_by_space;49char int_p_sign_posn;50char int_n_sign_posn;51};525354char *setlocale (int, const char *);55struct lconv *localeconv(void);565758#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \59|| defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)6061#define __NEED_locale_t6263#include <bits/alltypes.h>6465#define LC_GLOBAL_LOCALE ((locale_t)-1)6667#define LC_CTYPE_MASK (1<<LC_CTYPE)68#define LC_NUMERIC_MASK (1<<LC_NUMERIC)69#define LC_TIME_MASK (1<<LC_TIME)70#define LC_COLLATE_MASK (1<<LC_COLLATE)71#define LC_MONETARY_MASK (1<<LC_MONETARY)72#define LC_MESSAGES_MASK (1<<LC_MESSAGES)73#define LC_ALL_MASK 0x7fffffff7475locale_t duplocale(locale_t);76void freelocale(locale_t);77locale_t newlocale(int, const char *, locale_t);78locale_t uselocale(locale_t);7980#endif818283#ifdef __cplusplus84}85#endif8687#endif888990