epoc32/include/libc/locale.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
child 4 837f303aceeb
     1.1 --- a/epoc32/include/libc/locale.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/libc/locale.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,78 @@
     1.4 -locale.h
     1.5 +/*
     1.6 +* Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.7 +* All rights reserved.
     1.8 +* This component and the accompanying materials are made available
     1.9 +* under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
    1.10 +* which accompanies this distribution, and is available
    1.11 +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.12 +*
    1.13 +* Initial Contributors:
    1.14 +* Nokia Corporation - initial contribution.
    1.15 +*
    1.16 +* Contributors:
    1.17 +*
    1.18 +* Description:
    1.19 +* Values appropriate for the formatting of monetary and other
    1.20 +* numberic quantities.
    1.21 +* 
    1.22 +*
    1.23 +*/
    1.24 +
    1.25 +
    1.26 +
    1.27 +
    1.28 +
    1.29 +
    1.30 +/**
    1.31 + @file
    1.32 + @publishedAll
    1.33 + @released
    1.34 +*/
    1.35 +#ifndef _LOCALE_H_
    1.36 +#define _LOCALE_H_
    1.37 +#ifdef __cplusplus
    1.38 +extern "C" {
    1.39 +#endif
    1.40 +
    1.41 +#include "_ansi.h"
    1.42 +
    1.43 +#ifndef NULL
    1.44 +#define NULL    0L
    1.45 +#endif
    1.46 +
    1.47 +#define LC_ALL	    0
    1.48 +#define LC_COLLATE  1
    1.49 +#define LC_CTYPE    2
    1.50 +#define LC_MONETARY 3
    1.51 +#define LC_NUMERIC  4
    1.52 +#define LC_TIME     5
    1.53 +
    1.54 +struct lconv
    1.55 +{
    1.56 +  char *decimal_point;
    1.57 +  char *thousands_sep;
    1.58 +  char *grouping;
    1.59 +  char *int_curr_symbol;
    1.60 +  char *currency_symbol;
    1.61 +  char *mon_decimal_point;
    1.62 +  char *mon_thousands_sep;
    1.63 +  char *mon_grouping;
    1.64 +  char *positive_sign;
    1.65 +  char *negative_sign;
    1.66 +  char int_frac_digits;
    1.67 +  char frac_digits;
    1.68 +  char p_cs_precedes;
    1.69 +  char p_sep_by_space;
    1.70 +  char n_cs_precedes;
    1.71 +  char n_sep_by_space;
    1.72 +  char p_sign_posn;
    1.73 +  char n_sign_posn;
    1.74 +};
    1.75 +
    1.76 +IMPORT_C char *setlocale(int category, const char *locale);
    1.77 +IMPORT_C struct lconv *localeconv(void);
    1.78 +
    1.79 +#ifdef __cplusplus
    1.80 +}
    1.81 +#endif
    1.82 +#endif /* _LOCALE_H_ */