home *** CD-ROM | disk | FTP | other *** search
- /** LOCALE.H National Language Support OS2 Include File
- *.
- *. (C) COPYRIGHT International Business Machines Corp. 1985, 1990
- *. All Rights Reserved
- *. Licensed Materials - Property of IBM
- *.
- *. US Government Users Restricted Rights - Use, duplication or
- *. disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- *.
- ** Description:
- *
- * The LOCALE.H file is part of the National Language Support
- * system for OS/2 and AIX operating systems. Programmers
- * interested in writing NLS enabled applications would include
- * this file in their source files.
- *
- ** Notes:
- *
- *) For OS/2 development the NLS libraries must precede any C Set/2
- * libraries, in order to supercede C Set/2 obsolete NLS routines.
- *
- *) For AIX development, this file is not needed since NLS is imbedded
- * in all AIX system include files.
- *
- *) Future versions of C Set/2 will support this version of NLS and at
- * that time this include file, and its associated libraries may be removed
- * from the build process (the make file).
- *
- **/
-
- #ifndef _H_LOCALE
- #define _H_LOCALE
-
- /** LCONV SetLocale and LocaleConv Definitions
- *
- ** Notes:
- *
- **/
-
- #define LC_ALL -1 /* name of locale's category name */
- #define LC_COLLATE 0 /* locale's collation data */
- #define LC_CTYPE 1 /* locale's ctype handline */
- #define LC_MONETARY 2 /* locale's monetary handling */
- #define LC_NUMERIC 3 /* locale's decimal handling */
- #define LC_TIME 4 /* locale's time handling */
- #define LC_MESSAGES 5 /* locale's messages handling */
-
- typedef struct lconv {
- char *decimal_point; /* decimal point character */
- char *thousands_sep; /* thousands separator */
- char *grouping; /* digit grouping */
- char *int_curr_symbol; /* international currency symbol */
- char *currency_symbol; /* national currency symbol */
- char *mon_decimal_point; /* currency decimal point */
- char *mon_thousands_sep; /* currency thousands separator */
- char *mon_grouping; /* currency digits grouping */
- char *positive_sign; /* currency plus sign */
- char *negative_sign; /* currency minus sign */
- char int_frac_digits; /* internat currency fractional digits */
- char frac_digits; /* currency fractional digits */
- char p_cs_precedes; /* currency plus location */
- char p_sep_by_space; /* currency plus space ind. */
- char n_cs_precedes; /* currency minus location */
- char n_sep_by_space; /* currency minus space ind. */
- char p_sign_posn; /* currency plus position */
- char n_sign_posn; /* currency minus position */
- char *left_parenthesis; /* negative currency left paren */
- char *right_parenthesis; /* negative currency right paren */
- } lconv;
-
- #ifdef _NO_PROTO
- struct lconv *localeconv();
- char *setlocale();
- #else
- struct lconv *localeconv(void);
- char *setlocale(int, const char *);
- #endif
-
- #endif /* _H_LOCALE */
-