home *** CD-ROM | disk | FTP | other *** search
/ H4CK3R 14 / hacker14.iso / programacao / cwin / c.exe / $INSTDIR / include / locale.h < prev    next >
Encoding:
C/C++ Source or Header  |  2003-12-15  |  2.4 KB  |  105 lines

  1. /* 
  2.  * locale.h
  3.  *
  4.  * Functions and types for localization (ie. changing the appearance of
  5.  * output based on the standards of a certain country).
  6.  *
  7.  * This file is part of the Mingw32 package.
  8.  *
  9.  * Contributors:
  10.  *  Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
  11.  *
  12.  *  THIS SOFTWARE IS NOT COPYRIGHTED
  13.  *
  14.  *  This source code is offered for use in the public domain. You may
  15.  *  use, modify or distribute it freely.
  16.  *
  17.  *  This code is distributed in the hope that it will be useful but
  18.  *  WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
  19.  *  DISCLAIMED. This includes but is not limited to warranties of
  20.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  21.  *
  22.  * $Revision: 1.4 $
  23.  * $Author: earnie $
  24.  * $Date: 2003/02/08 14:16:47 $
  25.  *
  26.  */
  27.  
  28. #ifndef    _LOCALE_H_
  29. #define    _LOCALE_H_
  30.  
  31. /* All the headers include this file. */
  32. #include <_mingw.h>
  33.  
  34. /*
  35.  * NOTE: I have tried to test this, but I am limited by my knowledge of
  36.  *       locale issues. The structure does not bomb if you look at the
  37.  *       values, and 'decimal_point' even seems to be correct. But the
  38.  *       rest of the values are, by default, not particularly useful
  39.  *       (read meaningless and not related to the international settings
  40.  *       of the system).
  41.  */
  42.  
  43. #define    LC_ALL        0
  44. #define LC_COLLATE    1
  45. #define LC_CTYPE    2
  46. #define    LC_MONETARY    3
  47. #define    LC_NUMERIC    4
  48. #define    LC_TIME        5
  49. #define    LC_MIN        LC_ALL
  50. #define    LC_MAX        LC_TIME
  51.  
  52. #ifndef RC_INVOKED
  53.  
  54. /* According to C89 std, NULL is defined in locale.h too.  */
  55. #define __need_NULL
  56. #include <stddef.h>
  57.  
  58. /*
  59.  * The structure returned by 'localeconv'.
  60.  */
  61. struct lconv
  62. {
  63.     char*    decimal_point;
  64.     char*    thousands_sep;
  65.     char*    grouping;
  66.     char*    int_curr_symbol;
  67.     char*    currency_symbol;
  68.     char*    mon_decimal_point;
  69.     char*    mon_thousands_sep;
  70.     char*    mon_grouping;
  71.     char*    positive_sign;
  72.     char*    negative_sign;
  73.     char    int_frac_digits;
  74.     char    frac_digits;
  75.     char    p_cs_precedes;
  76.     char    p_sep_by_space;
  77.     char    n_cs_precedes;
  78.     char    n_sep_by_space;
  79.     char    p_sign_posn;
  80.     char    n_sign_posn;
  81. };
  82.  
  83. #ifdef    __cplusplus
  84. extern "C" {
  85. #endif
  86.  
  87. char*        setlocale (int, const char*);
  88. struct lconv*    localeconv (void);
  89.  
  90. #ifndef _WLOCALE_DEFINED  /* also declared in wchar.h */
  91. # define __need_wchar_t
  92. # include <stddef.h>
  93.   wchar_t*     _wsetlocale(int, const wchar_t*);
  94. # define _WLOCALE_DEFINED
  95. #endif /* ndef _WLOCALE_DEFINED */
  96.  
  97. #ifdef    __cplusplus
  98. }
  99. #endif
  100.  
  101. #endif    /* Not RC_INVOKED */
  102.  
  103. #endif    /* Not _LOCALE_H_ */
  104.  
  105.