1.1 --- a/epoc32/include/stdapis/locale.h Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/stdapis/locale.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,87 @@
1.4 -locale.h
1.5 +/*
1.6 + * © Portions copyright (c) 2006 Nokia Corporation. All rights reserved.
1.7 + *
1.8 + * Copyright (c) 1991, 1993
1.9 + * The Regents of the University of California. All rights reserved.
1.10 + *
1.11 + * Redistribution and use in source and binary forms, with or without
1.12 + * modification, are permitted provided that the following conditions
1.13 + * are met:
1.14 + * 1. Redistributions of source code must retain the above copyright
1.15 + * notice, this list of conditions and the following disclaimer.
1.16 + * 2. Redistributions in binary form must reproduce the above copyright
1.17 + * notice, this list of conditions and the following disclaimer in the
1.18 + * documentation and/or other materials provided with the distribution.
1.19 + * 4. Neither the name of the University nor the names of its contributors
1.20 + * may be used to endorse or promote products derived from this software
1.21 + * without specific prior written permission.
1.22 + *
1.23 + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
1.24 + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1.25 + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1.26 + * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
1.27 + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1.28 + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
1.29 + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
1.30 + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
1.31 + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
1.32 + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
1.33 + * SUCH DAMAGE.
1.34 + *
1.35 + * @(#)locale.h 8.1 (Berkeley) 6/2/93
1.36 + * $FreeBSD: src/include/locale.h,v 1.8 2003/12/07 21:10:06 marcel Exp $
1.37 + */
1.38 +
1.39 +
1.40 +#ifndef _LOCALE_H_
1.41 +#define _LOCALE_H_
1.42 +
1.43 +#include <sys/_null.h>
1.44 +#include <sys/cdefs.h>
1.45 +#ifdef __SYMBIAN32__
1.46 +#include <_ansi.h>
1.47 +#endif
1.48 +
1.49 +struct lconv {
1.50 + char *decimal_point;
1.51 + char *thousands_sep;
1.52 + char *grouping;
1.53 + char *int_curr_symbol;
1.54 + char *currency_symbol;
1.55 + char *mon_decimal_point;
1.56 + char *mon_thousands_sep;
1.57 + char *mon_grouping;
1.58 + char *positive_sign;
1.59 + char *negative_sign;
1.60 + char int_frac_digits;
1.61 + char frac_digits;
1.62 + char p_cs_precedes;
1.63 + char p_sep_by_space;
1.64 + char n_cs_precedes;
1.65 + char n_sep_by_space;
1.66 + char p_sign_posn;
1.67 + char n_sign_posn;
1.68 + char int_p_cs_precedes;
1.69 + char int_n_cs_precedes;
1.70 + char int_p_sep_by_space;
1.71 + char int_n_sep_by_space;
1.72 + char int_p_sign_posn;
1.73 + char int_n_sign_posn;
1.74 +};
1.75 +
1.76 +#define LC_ALL 0
1.77 +#define LC_COLLATE 1
1.78 +#define LC_CTYPE 2
1.79 +#define LC_MONETARY 3
1.80 +#define LC_NUMERIC 4
1.81 +#define LC_TIME 5
1.82 +#define LC_MESSAGES 6
1.83 +
1.84 +#define _LC_LAST 7 /* marks end */
1.85 +
1.86 +__BEGIN_DECLS
1.87 +IMPORT_C struct lconv *localeconv(void);
1.88 +IMPORT_C char *setlocale(int, const char *);
1.89 +__END_DECLS
1.90 +
1.91 +#endif /* _LOCALE_H_ */