locale.h

Go to the documentation of this file.
00001 /*
00002  * © Portions copyright (c) 2006 Nokia Corporation.  All rights reserved.
00003  *
00004  * Copyright (c) 1991, 1993
00005  *      The Regents of the University of California.  All rights reserved.
00006  *
00007  * Redistribution and use in source and binary forms, with or without
00008  * modification, are permitted provided that the following conditions
00009  * are met:
00010  * 1. Redistributions of source code must retain the above copyright
00011  *    notice, this list of conditions and the following disclaimer.
00012  * 2. Redistributions in binary form must reproduce the above copyright
00013  *    notice, this list of conditions and the following disclaimer in the
00014  *    documentation and/or other materials provided with the distribution.
00015  * 3. All advertising materials mentioning features or use of this software
00016  *    must display the following acknowledgement:
00017  *      This product includes software developed by the University of
00018  *      California, Berkeley and its contributors.
00019  * 4. Neither the name of the University nor the names of its contributors
00020  *    may be used to endorse or promote products derived from this software
00021  *    without specific prior written permission.
00022  *
00023  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
00024  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00025  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00026  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
00027  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00028  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
00029  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
00030  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
00031  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
00032  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00033  * SUCH DAMAGE.
00034  *
00035  *      @(#)locale.h    8.1 (Berkeley) 6/2/93
00036  * $FreeBSD: src/include/locale.h,v 1.8 2003/12/07 21:10:06 marcel Exp $
00037  */
00038 
00039  
00040 #ifndef _LOCALE_H_
00041 #define _LOCALE_H_
00042 
00043 #include <sys/_null.h>
00044 #include <sys/cdefs.h>
00045 #ifdef __SYMBIAN32__
00046 #include <_ansi.h>
00047 #endif
00048 
00049 struct lconv {
00050         char    *decimal_point;
00051         char    *thousands_sep;
00052         char    *grouping;
00053         char    *int_curr_symbol;
00054         char    *currency_symbol;
00055         char    *mon_decimal_point;
00056         char    *mon_thousands_sep;
00057         char    *mon_grouping;
00058         char    *positive_sign;
00059         char    *negative_sign;
00060         char    int_frac_digits;
00061         char    frac_digits;
00062         char    p_cs_precedes;
00063         char    p_sep_by_space;
00064         char    n_cs_precedes;
00065         char    n_sep_by_space;
00066         char    p_sign_posn;
00067         char    n_sign_posn;
00068         char    int_p_cs_precedes;
00069         char    int_n_cs_precedes;
00070         char    int_p_sep_by_space;
00071         char    int_n_sep_by_space;
00072         char    int_p_sign_posn;
00073         char    int_n_sign_posn;
00074 };
00075 
00076 #define LC_ALL          0
00077 #define LC_COLLATE      1
00078 #define LC_CTYPE        2
00079 #define LC_MONETARY     3
00080 #define LC_NUMERIC      4
00081 #define LC_TIME         5
00082 #define LC_MESSAGES     6
00083 
00084 #define _LC_LAST        7               /* marks end */
00085 
00086 __BEGIN_DECLS
00087 IMPORT_C struct lconv   *localeconv(void);
00088 IMPORT_C char           *setlocale(int, const char *);
00089 __END_DECLS
00090 
00091 #endif /* _LOCALE_H_ */

Copyright © Nokia Corporation 2001-2008
Back to top