Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
locale.h
Go to the documentation of this file.
1 #ifndef __LOCALE_H_
2 #define __LOCALE_H_
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 // TODO: documnentation
9 
10 #define LC_CTYPE 0
11 #define LC_NUMERIC 1
12 #define LC_TIME 2
13 #define LC_COLLATE 3
14 #define LC_MONETARY 4
15 #define LC_MESSAGES 5
16 #define LC_ALL 6
17 
18 struct lconv
19 {
22  char* grouping;
23 
28  char* mon_grouping;
45 };
46 
47 #ifndef DISABLE_UNIMPLEMENTED_LIBC_APIS
48 char* setlocale(int, const char*);
49 struct lconv* localeconv(void);
50 #endif
51 
52 #ifdef __cplusplus
53 }
54 #endif
55 
56 #endif // __LOCALE_H_
char int_frac_digits
Definition: locale.h:31
char int_n_cs_precedes
Definition: locale.h:41
char * mon_thousands_sep
Definition: locale.h:27
char n_sign_posn
Definition: locale.h:38
char * positive_sign
Definition: locale.h:29
char p_sign_posn
Definition: locale.h:37
char int_p_sep_by_space
Definition: locale.h:40
char * currency_symbol
Definition: locale.h:25
char frac_digits
Definition: locale.h:32
char * mon_grouping
Definition: locale.h:28
char * thousands_sep
Definition: locale.h:21
struct lconv * localeconv(void)
Definition: locale.h:18
char * int_curr_symbol
Definition: locale.h:24
char * grouping
Definition: locale.h:22
char * setlocale(int, const char *)
char int_n_sign_posn
Definition: locale.h:44
char n_cs_precedes
Definition: locale.h:35
char * mon_decimal_point
Definition: locale.h:26
char int_n_sep_by_space
Definition: locale.h:42
char n_sep_by_space
Definition: locale.h:36
char * negative_sign
Definition: locale.h:30
char p_sep_by_space
Definition: locale.h:34
char int_p_cs_precedes
Definition: locale.h:39
char int_p_sign_posn
Definition: locale.h:43
char * decimal_point
Definition: locale.h:20
char p_cs_precedes
Definition: locale.h:33