comparison druntime/import/core/stdc/locale.d @ 1458:e0b2d67cfe7c

Added druntime (this should be removed once it works).
author Robert Clipsham <robert@octarineparrot.com>
date Tue, 02 Jun 2009 17:43:06 +0100
parents
children
comparison
equal deleted inserted replaced
1456:7b218ec1044f 1458:e0b2d67cfe7c
1 /**
2 * D header file for C99.
3 *
4 * Copyright: Copyright Sean Kelly 2005 - 2009.
5 * License: <a href="http://www.boost.org/LICENSE_1_0.txt>Boost License 1.0</a>.
6 * Authors: Sean Kelly
7 * Standards: ISO/IEC 9899:1999 (E)
8 *
9 * Copyright Sean Kelly 2005 - 2009.
10 * Distributed under the Boost Software License, Version 1.0.
11 * (See accompanying file LICENSE_1_0.txt or copy at
12 * http://www.boost.org/LICENSE_1_0.txt)
13 */
14 module core.stdc.locale;
15
16 extern (C):
17
18 struct lconv
19 {
20 char* decimal_point;
21 char* thousands_sep;
22 char* grouping;
23 char* int_curr_symbol;
24 char* currency_symbol;
25 char* mon_decimal_point;
26 char* mon_thousands_sep;
27 char* mon_grouping;
28 char* positive_sign;
29 char* negative_sign;
30 byte int_frac_digits;
31 byte frac_digits;
32 byte p_cs_precedes;
33 byte p_sep_by_space;
34 byte n_cs_precedes;
35 byte n_sep_by_space;
36 byte p_sign_posn;
37 byte n_sign_posn;
38 byte int_p_cs_precedes;
39 byte int_p_sep_by_space;
40 byte int_n_cs_precedes;
41 byte int_n_sep_by_space;
42 byte int_p_sign_posn;
43 byte int_n_sign_posn;
44 }
45
46 enum LC_CTYPE = 0;
47 enum LC_NUMERIC = 1;
48 enum LC_TIME = 2;
49 enum LC_COLLATE = 3;
50 enum LC_MONETARY = 4;
51 enum LC_ALL = 6;
52 enum LC_PAPER = 7; // non-standard
53 enum LC_NAME = 8; // non-standard
54 enum LC_ADDRESS = 9; // non-standard
55 enum LC_TELEPHONE = 10; // non-standard
56 enum LC_MEASUREMENT = 11; // non-standard
57 enum LC_IDENTIFICATION = 12; // non-standard
58
59 char* setlocale(int category, in char* locale);
60 lconv* localeconv();