home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / borhead.zip / LOCALE.H < prev    next >
C/C++ Source or Header  |  1994-11-09  |  2KB  |  107 lines

  1. /*  locale.h
  2.  
  3. */
  4.  
  5. /*
  6.  *      C/C++ Run Time Library - Version 1.5
  7.  *
  8.  *      Copyright (c) 1987, 1994 by Borland International
  9.  *      All Rights Reserved.
  10.  *
  11.  */
  12.  
  13. #ifndef __LOCALE_H
  14. #define __LOCALE_H
  15.  
  16. #if !defined(___DEFS_H)
  17. #include <_defs.h>
  18. #endif
  19.  
  20. #ifndef NULL
  21. #include <_null.h>
  22. #endif
  23.  
  24.  
  25. #if !defined(RC_INVOKED)
  26.  
  27. #if defined(__STDC__)
  28. #pragma warn -nak
  29. #endif
  30.  
  31. #endif  /* !RC_INVOKED */
  32.  
  33.  
  34. #ifndef _SIZE_T
  35. #    define _SIZE_T
  36. typedef unsigned size_t;
  37. #endif
  38.  
  39.  
  40. #define LC_ALL      0
  41. #define LC_COLLATE  1
  42. #define LC_CTYPE    2
  43. #define LC_MONETARY 3
  44. #define LC_NUMERIC  4
  45. #define LC_TIME     5
  46. #define LC_MESSAGES 6
  47. #define LC_userdef  7
  48. #define LC_LAST     LC_userdef
  49.  
  50.  
  51. #pragma option -a-
  52.  
  53. struct lconv {
  54.  
  55.    char *decimal_point;
  56.    char *thousands_sep;
  57.    char *grouping;
  58.    char *int_curr_symbol;
  59.    char *currency_symbol;
  60.    char *mon_decimal_point;
  61.    char *mon_thousands_sep;
  62.    char *mon_grouping;
  63.    char *positive_sign;
  64.    char *negative_sign;
  65.    char int_frac_digits;
  66.    char frac_digits;
  67.    char p_cs_precedes;
  68.    char p_sep_by_space;
  69.    char n_cs_precedes;
  70.    char n_sep_by_space;
  71.    char p_sign_posn;
  72.    char n_sign_posn;
  73. };
  74.  
  75. #ifdef __cplusplus
  76. extern "C" {
  77. #endif
  78. char *         _RTLENTRY _EXPFUNC setlocale( int __category, const char _FAR *__locale );
  79. char *         _RTLENTRY _EXPFUNC _lsetlocale( int __category, const char _FAR *__locale );
  80. struct lconv * _RTLENTRY _EXPFUNC localeconv( void );
  81. struct lconv * _RTLENTRY _EXPFUNC _llocaleconv( void );
  82. #ifdef __cplusplus
  83. }
  84. #endif
  85.  
  86. #pragma option -a. /* restore default packing */
  87.  
  88.  
  89.  
  90. #if defined( __USELOCALES__ )
  91. #define setlocale  _lsetlocale
  92. #define localeconv _llocaleconv
  93. #endif
  94.  
  95.  
  96. #if !defined(RC_INVOKED)
  97.  
  98. #if defined(__STDC__)
  99. #pragma warn .nak
  100. #endif
  101.  
  102. #endif  /* !RC_INVOKED */
  103.  
  104.  
  105. #endif  /* __LOCALE_H */
  106.  
  107.