williamr@2
|
1 |
/*
|
williamr@2
|
2 |
* © Portions copyright (c) 2006 Nokia Corporation. All rights reserved.
|
williamr@2
|
3 |
*
|
williamr@2
|
4 |
* Copyright (c) 1991, 1993
|
williamr@2
|
5 |
* The Regents of the University of California. All rights reserved.
|
williamr@2
|
6 |
*
|
williamr@2
|
7 |
* Redistribution and use in source and binary forms, with or without
|
williamr@2
|
8 |
* modification, are permitted provided that the following conditions
|
williamr@2
|
9 |
* are met:
|
williamr@2
|
10 |
* 1. Redistributions of source code must retain the above copyright
|
williamr@2
|
11 |
* notice, this list of conditions and the following disclaimer.
|
williamr@2
|
12 |
* 2. Redistributions in binary form must reproduce the above copyright
|
williamr@2
|
13 |
* notice, this list of conditions and the following disclaimer in the
|
williamr@2
|
14 |
* documentation and/or other materials provided with the distribution.
|
williamr@2
|
15 |
* 4. Neither the name of the University nor the names of its contributors
|
williamr@2
|
16 |
* may be used to endorse or promote products derived from this software
|
williamr@2
|
17 |
* without specific prior written permission.
|
williamr@2
|
18 |
*
|
williamr@2
|
19 |
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
williamr@2
|
20 |
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
williamr@2
|
21 |
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
williamr@2
|
22 |
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
williamr@2
|
23 |
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
williamr@2
|
24 |
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
williamr@2
|
25 |
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
williamr@2
|
26 |
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
williamr@2
|
27 |
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
williamr@2
|
28 |
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
williamr@2
|
29 |
* SUCH DAMAGE.
|
williamr@2
|
30 |
*
|
williamr@2
|
31 |
* @(#)locale.h 8.1 (Berkeley) 6/2/93
|
williamr@2
|
32 |
* $FreeBSD: src/include/locale.h,v 1.8 2003/12/07 21:10:06 marcel Exp $
|
williamr@2
|
33 |
*/
|
williamr@2
|
34 |
|
williamr@2
|
35 |
|
williamr@2
|
36 |
#ifndef _LOCALE_H_
|
williamr@2
|
37 |
#define _LOCALE_H_
|
williamr@2
|
38 |
|
williamr@2
|
39 |
#include <sys/_null.h>
|
williamr@2
|
40 |
#include <sys/cdefs.h>
|
williamr@2
|
41 |
#ifdef __SYMBIAN32__
|
williamr@2
|
42 |
#include <_ansi.h>
|
williamr@2
|
43 |
#endif
|
williamr@2
|
44 |
|
williamr@2
|
45 |
struct lconv {
|
williamr@2
|
46 |
char *decimal_point;
|
williamr@2
|
47 |
char *thousands_sep;
|
williamr@2
|
48 |
char *grouping;
|
williamr@2
|
49 |
char *int_curr_symbol;
|
williamr@2
|
50 |
char *currency_symbol;
|
williamr@2
|
51 |
char *mon_decimal_point;
|
williamr@2
|
52 |
char *mon_thousands_sep;
|
williamr@2
|
53 |
char *mon_grouping;
|
williamr@2
|
54 |
char *positive_sign;
|
williamr@2
|
55 |
char *negative_sign;
|
williamr@2
|
56 |
char int_frac_digits;
|
williamr@2
|
57 |
char frac_digits;
|
williamr@2
|
58 |
char p_cs_precedes;
|
williamr@2
|
59 |
char p_sep_by_space;
|
williamr@2
|
60 |
char n_cs_precedes;
|
williamr@2
|
61 |
char n_sep_by_space;
|
williamr@2
|
62 |
char p_sign_posn;
|
williamr@2
|
63 |
char n_sign_posn;
|
williamr@2
|
64 |
char int_p_cs_precedes;
|
williamr@2
|
65 |
char int_n_cs_precedes;
|
williamr@2
|
66 |
char int_p_sep_by_space;
|
williamr@2
|
67 |
char int_n_sep_by_space;
|
williamr@2
|
68 |
char int_p_sign_posn;
|
williamr@2
|
69 |
char int_n_sign_posn;
|
williamr@2
|
70 |
};
|
williamr@2
|
71 |
|
williamr@2
|
72 |
#define LC_ALL 0
|
williamr@2
|
73 |
#define LC_COLLATE 1
|
williamr@2
|
74 |
#define LC_CTYPE 2
|
williamr@2
|
75 |
#define LC_MONETARY 3
|
williamr@2
|
76 |
#define LC_NUMERIC 4
|
williamr@2
|
77 |
#define LC_TIME 5
|
williamr@2
|
78 |
#define LC_MESSAGES 6
|
williamr@2
|
79 |
|
williamr@2
|
80 |
#define _LC_LAST 7 /* marks end */
|
williamr@2
|
81 |
|
williamr@2
|
82 |
__BEGIN_DECLS
|
williamr@2
|
83 |
IMPORT_C struct lconv *localeconv(void);
|
williamr@2
|
84 |
IMPORT_C char *setlocale(int, const char *);
|
williamr@2
|
85 |
__END_DECLS
|
williamr@2
|
86 |
|
williamr@2
|
87 |
#endif /* _LOCALE_H_ */
|