132
|
1 /**
|
|
2 * D header file for C99.
|
|
3 *
|
|
4 * Copyright: Public Domain
|
|
5 * License: Public Domain
|
|
6 * Authors: Sean Kelly
|
|
7 * Standards: ISO/IEC 9899:1999 (E)
|
|
8 */
|
|
9 module tango.stdc.locale;
|
|
10
|
|
11 extern (C):
|
|
12
|
|
13 struct lconv
|
|
14 {
|
|
15 char* decimal_point;
|
|
16 char* thousands_sep;
|
|
17 char* grouping;
|
|
18 char* int_curr_symbol;
|
|
19 char* currency_symbol;
|
|
20 char* mon_decimal_point;
|
|
21 char* mon_thousands_sep;
|
|
22 char* mon_grouping;
|
|
23 char* positive_sign;
|
|
24 char* negative_sign;
|
|
25 byte int_frac_digits;
|
|
26 byte frac_digits;
|
|
27 byte p_cs_precedes;
|
|
28 byte p_sep_by_space;
|
|
29 byte n_cs_precedes;
|
|
30 byte n_sep_by_space;
|
|
31 byte p_sign_posn;
|
|
32 byte n_sign_posn;
|
|
33 byte int_p_cs_precedes;
|
|
34 byte int_p_sep_by_space;
|
|
35 byte int_n_cs_precedes;
|
|
36 byte int_n_sep_by_space;
|
|
37 byte int_p_sign_posn;
|
|
38 byte int_n_sign_posn;
|
|
39 }
|
|
40
|
|
41 const LC_CTYPE = 0;
|
|
42 const LC_NUMERIC = 1;
|
|
43 const LC_TIME = 2;
|
|
44 const LC_COLLATE = 3;
|
|
45 const LC_MONETARY = 4;
|
|
46 const LC_ALL = 6;
|
|
47 const LC_PAPER = 7;
|
|
48 const LC_NAME = 8;
|
|
49 const LC_ADDRESS = 9;
|
|
50 const LC_TELEPHONE = 10;
|
|
51 const LC_MEASUREMENT = 11;
|
|
52 const LC_IDENTIFICATION = 12;
|
|
53
|
|
54 char* setlocale( int category, char* locale );
|
|
55 lconv* localeconv();
|