author | William Roberts <williamr@symbian.org> |
Wed, 31 Mar 2010 12:33:34 +0100 | |
branch | Symbian3 |
changeset 4 | 837f303aceeb |
parent 2 | 2fe1408b6811 |
permissions | -rw-r--r-- |
williamr@2 | 1 |
/* |
williamr@2 | 2 |
* Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
williamr@2 | 3 |
* All rights reserved. |
williamr@2 | 4 |
* This component and the accompanying materials are made available |
williamr@4 | 5 |
* under the terms of "Eclipse Public License v1.0" |
williamr@2 | 6 |
* which accompanies this distribution, and is available |
williamr@4 | 7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
williamr@2 | 8 |
* |
williamr@2 | 9 |
* Initial Contributors: |
williamr@2 | 10 |
* Nokia Corporation - initial contribution. |
williamr@2 | 11 |
* |
williamr@2 | 12 |
* Contributors: |
williamr@2 | 13 |
* |
williamr@2 | 14 |
* Description: |
williamr@2 | 15 |
* Values appropriate for the formatting of monetary and other |
williamr@2 | 16 |
* numberic quantities. |
williamr@2 | 17 |
* |
williamr@2 | 18 |
* |
williamr@2 | 19 |
*/ |
williamr@2 | 20 |
|
williamr@2 | 21 |
|
williamr@2 | 22 |
|
williamr@2 | 23 |
/** |
williamr@2 | 24 |
@file |
williamr@2 | 25 |
@publishedAll |
williamr@2 | 26 |
@released |
williamr@2 | 27 |
*/ |
williamr@2 | 28 |
#ifndef _LOCALE_H_ |
williamr@2 | 29 |
#define _LOCALE_H_ |
williamr@2 | 30 |
#ifdef __cplusplus |
williamr@2 | 31 |
extern "C" { |
williamr@2 | 32 |
#endif |
williamr@2 | 33 |
|
williamr@2 | 34 |
#include "_ansi.h" |
williamr@2 | 35 |
|
williamr@2 | 36 |
#ifndef NULL |
williamr@2 | 37 |
#define NULL 0L |
williamr@2 | 38 |
#endif |
williamr@2 | 39 |
|
williamr@2 | 40 |
#define LC_ALL 0 |
williamr@2 | 41 |
#define LC_COLLATE 1 |
williamr@2 | 42 |
#define LC_CTYPE 2 |
williamr@2 | 43 |
#define LC_MONETARY 3 |
williamr@2 | 44 |
#define LC_NUMERIC 4 |
williamr@2 | 45 |
#define LC_TIME 5 |
williamr@2 | 46 |
|
williamr@2 | 47 |
struct lconv |
williamr@2 | 48 |
{ |
williamr@2 | 49 |
char *decimal_point; |
williamr@2 | 50 |
char *thousands_sep; |
williamr@2 | 51 |
char *grouping; |
williamr@2 | 52 |
char *int_curr_symbol; |
williamr@2 | 53 |
char *currency_symbol; |
williamr@2 | 54 |
char *mon_decimal_point; |
williamr@2 | 55 |
char *mon_thousands_sep; |
williamr@2 | 56 |
char *mon_grouping; |
williamr@2 | 57 |
char *positive_sign; |
williamr@2 | 58 |
char *negative_sign; |
williamr@2 | 59 |
char int_frac_digits; |
williamr@2 | 60 |
char frac_digits; |
williamr@2 | 61 |
char p_cs_precedes; |
williamr@2 | 62 |
char p_sep_by_space; |
williamr@2 | 63 |
char n_cs_precedes; |
williamr@2 | 64 |
char n_sep_by_space; |
williamr@2 | 65 |
char p_sign_posn; |
williamr@2 | 66 |
char n_sign_posn; |
williamr@2 | 67 |
}; |
williamr@2 | 68 |
|
williamr@2 | 69 |
IMPORT_C char *setlocale(int category, const char *locale); |
williamr@2 | 70 |
IMPORT_C struct lconv *localeconv(void); |
williamr@2 | 71 |
|
williamr@2 | 72 |
#ifdef __cplusplus |
williamr@2 | 73 |
} |
williamr@2 | 74 |
#endif |
williamr@2 | 75 |
#endif /* _LOCALE_H_ */ |