home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / i18nv102.zip / INCLUDE / LOCALE.H < prev    next >
C/C++ Source or Header  |  1995-08-28  |  3KB  |  65 lines

  1. /** LOCALE.H National Language Support OS2 Include File
  2. *.
  3. *.      (C) COPYRIGHT International Business Machines Corp. 1985, 1990
  4. *.      All Rights Reserved
  5. *.      Licensed Materials - Property of IBM
  6. *.
  7. *.      US Government Users Restricted Rights - Use, duplication or
  8. *.      disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  9. *.
  10. ** Description:
  11. **/
  12.  
  13. #ifndef     _H_LOCALE
  14.     #define _H_LOCALE
  15.  
  16. #include <stddef.h>
  17.  
  18. #ifdef __cplusplus
  19.    extern "C" {
  20. #endif
  21.  
  22.  
  23. /** LCONV SetLocale and LocaleConv Definitions
  24. **/
  25.  
  26.     #define LC_ALL     -1        /* name of locale's category name      */
  27.     #define LC_COLLATE  0        /* locale's collation data             */
  28.     #define LC_CTYPE    1        /* locale's ctype handline             */
  29.     #define LC_MONETARY 2        /* locale's monetary handling          */
  30.     #define LC_NUMERIC  3        /* locale's decimal handling           */
  31.     #define LC_TIME     4        /* locale's time handling              */
  32.     #define LC_MESSAGES 5        /* locale's messages handling          */
  33.  
  34.     typedef struct lconv {
  35.         char *decimal_point;      /* decimal point character             */
  36.         char *thousands_sep;      /* thousands separator                 */
  37.         char *grouping;           /* digit grouping                      */
  38.         char *int_curr_symbol;    /* international currency symbol       */
  39.         char *currency_symbol;    /* national currency symbol            */
  40.         char *mon_decimal_point;  /* currency decimal point              */
  41.         char *mon_thousands_sep;  /* currency thousands separator        */
  42.         char *mon_grouping;       /* currency digits grouping            */
  43.         char *positive_sign;      /* currency plus sign                  */
  44.         char *negative_sign;      /* currency minus sign                 */
  45.         char int_frac_digits;     /* internat currency fractional digits */
  46.         char frac_digits;         /* currency fractional digits          */
  47.         char p_cs_precedes;       /* currency plus location              */
  48.         char p_sep_by_space;      /* currency plus space ind.            */
  49.         char n_cs_precedes;       /* currency minus location             */
  50.         char n_sep_by_space;      /* currency minus space ind.           */
  51.         char p_sign_posn;         /* currency plus position              */
  52.         char n_sign_posn;         /* currency minus position             */
  53.         char *left_parenthesis;   /* negative currency left paren        */
  54.         char *right_parenthesis;  /* negative currency right paren       */
  55.         } lconv;
  56.  
  57. struct lconv *localeconv(void);
  58. char   *setlocale(int, const char *);
  59.  
  60. #ifdef __cplusplus
  61.    }
  62. #endif
  63.  
  64. #endif     /* _H_LOCALE */
  65.