home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / devtools / xpg4 / include / locale.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-03  |  3.5 KB  |  80 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. *       The LOCALE.H file is part of the National Language Support
  13. *       system for OS/2 and AIX operating systems. Programmers
  14. *       interested in writing NLS enabled applications would include
  15. *       this file in their source files.
  16. *
  17. ** Notes:
  18. *
  19. *) For OS/2 development the NLS libraries must precede any C Set/2
  20. *  libraries, in order to supercede C Set/2 obsolete NLS routines.
  21. *
  22. *) For AIX development, this file is not needed since NLS is imbedded
  23. *  in all AIX system include files.
  24. *
  25. *) Future versions of C Set/2 will support this version of NLS and at
  26. *  that time this include file, and its associated libraries may be removed
  27. *  from the build process (the make file).
  28. *
  29. **/
  30.  
  31. #ifndef     _H_LOCALE
  32.     #define _H_LOCALE
  33.  
  34. /** LCONV SetLocale and LocaleConv Definitions
  35. *
  36. ** Notes:
  37. *
  38. **/
  39.  
  40.     #define LC_ALL     -1        /* name of locale's category name      */
  41.     #define LC_COLLATE  0        /* locale's collation data             */
  42.     #define LC_CTYPE    1        /* locale's ctype handline             */
  43.     #define LC_MONETARY 2        /* locale's monetary handling          */
  44.     #define LC_NUMERIC  3        /* locale's decimal handling           */
  45.     #define LC_TIME     4        /* locale's time handling              */
  46.     #define LC_MESSAGES 5        /* locale's messages handling          */
  47.  
  48.     typedef struct lconv {
  49.         char *decimal_point;      /* decimal point character             */
  50.         char *thousands_sep;      /* thousands separator                 */
  51.         char *grouping;           /* digit grouping                      */
  52.         char *int_curr_symbol;    /* international currency symbol       */
  53.         char *currency_symbol;    /* national currency symbol            */
  54.         char *mon_decimal_point;  /* currency decimal point              */
  55.         char *mon_thousands_sep;  /* currency thousands separator        */
  56.         char *mon_grouping;       /* currency digits grouping            */
  57.         char *positive_sign;      /* currency plus sign                  */
  58.         char *negative_sign;      /* currency minus sign                 */
  59.         char int_frac_digits;     /* internat currency fractional digits */
  60.         char frac_digits;         /* currency fractional digits          */
  61.         char p_cs_precedes;       /* currency plus location              */
  62.         char p_sep_by_space;      /* currency plus space ind.            */
  63.         char n_cs_precedes;       /* currency minus location             */
  64.         char n_sep_by_space;      /* currency minus space ind.           */
  65.         char p_sign_posn;         /* currency plus position              */
  66.         char n_sign_posn;         /* currency minus position             */
  67.         char *left_parenthesis;   /* negative currency left paren        */
  68.         char *right_parenthesis;  /* negative currency right paren       */
  69.         } lconv;
  70.  
  71. #ifdef _NO_PROTO
  72.     struct lconv *localeconv();
  73.     char   *setlocale();
  74. #else
  75.     struct lconv *localeconv(void);
  76.     char   *setlocale(int, const char *);
  77. #endif
  78.  
  79. #endif     /* _H_LOCALE */
  80.