Print this page
2964 need POSIX 2008 locale object support


  26 
  27 /*      Copyright (c) 1988 AT&T     */
  28 /*        All Rights Reserved   */
  29 
  30 
  31 /*
  32  * An application should not include this header directly.  Instead it
  33  * should be included only through the inclusion of other Sun headers.
  34  *
  35  * The contents of this header is limited to identifiers specified in the
  36  * C Standard.  Any new identifiers specified in future amendments to the
  37  * C Standard must be placed in this header.  If these new identifiers
  38  * are required to also be in the C++ Standard "std" namespace, then for
  39  * anything other than macro definitions, corresponding "using" directives
  40  * must also be added to <locale.h>.
  41  */
  42 
  43 #ifndef _ISO_LOCALE_ISO_H
  44 #define _ISO_LOCALE_ISO_H
  45 
  46 #pragma ident   "%Z%%M% %I%     %E% SMI"
  47 
  48 #include <sys/feature_tests.h>
  49 
  50 #ifdef __cplusplus
  51 extern "C" {
  52 #endif
  53 
  54 #if __cplusplus >= 199711L
  55 namespace std {
  56 #endif
  57 
  58 struct lconv {
  59         char *decimal_point;
  60         char *thousands_sep;
  61         char *grouping;
  62         char *int_curr_symbol;
  63         char *currency_symbol;
  64         char *mon_decimal_point;
  65         char *mon_thousands_sep;
  66         char *mon_grouping;
  67         char *positive_sign;


  98 #define LC_MONETARY     4
  99 #define LC_MESSAGES     5
 100 #define LC_ALL          6
 101 
 102 #ifndef NULL
 103 #if defined(_LP64)
 104 #define NULL    0L
 105 #else
 106 #define NULL    0
 107 #endif
 108 #endif
 109 
 110 #if     defined(__STDC__)
 111 extern char     *setlocale(int, const char *);
 112 extern struct lconv *localeconv(void);
 113 #else
 114 extern char   *setlocale();
 115 extern struct lconv     *localeconv();
 116 #endif
 117 






















 118 #if __cplusplus >= 199711L
 119 }
 120 #endif /* end of namespace std */
 121 
 122 #ifdef  __cplusplus
 123 }
 124 #endif
 125 
 126 #endif  /* _ISO_LOCALE_ISO_H */


  26 
  27 /*      Copyright (c) 1988 AT&T     */
  28 /*        All Rights Reserved   */
  29 
  30 
  31 /*
  32  * An application should not include this header directly.  Instead it
  33  * should be included only through the inclusion of other Sun headers.
  34  *
  35  * The contents of this header is limited to identifiers specified in the
  36  * C Standard.  Any new identifiers specified in future amendments to the
  37  * C Standard must be placed in this header.  If these new identifiers
  38  * are required to also be in the C++ Standard "std" namespace, then for
  39  * anything other than macro definitions, corresponding "using" directives
  40  * must also be added to <locale.h>.
  41  */
  42 
  43 #ifndef _ISO_LOCALE_ISO_H
  44 #define _ISO_LOCALE_ISO_H
  45 


  46 #include <sys/feature_tests.h>
  47 
  48 #ifdef __cplusplus
  49 extern "C" {
  50 #endif
  51 
  52 #if __cplusplus >= 199711L
  53 namespace std {
  54 #endif
  55 
  56 struct lconv {
  57         char *decimal_point;
  58         char *thousands_sep;
  59         char *grouping;
  60         char *int_curr_symbol;
  61         char *currency_symbol;
  62         char *mon_decimal_point;
  63         char *mon_thousands_sep;
  64         char *mon_grouping;
  65         char *positive_sign;


  96 #define LC_MONETARY     4
  97 #define LC_MESSAGES     5
  98 #define LC_ALL          6
  99 
 100 #ifndef NULL
 101 #if defined(_LP64)
 102 #define NULL    0L
 103 #else
 104 #define NULL    0
 105 #endif
 106 #endif
 107 
 108 #if     defined(__STDC__)
 109 extern char     *setlocale(int, const char *);
 110 extern struct lconv *localeconv(void);
 111 #else
 112 extern char   *setlocale();
 113 extern struct lconv     *localeconv();
 114 #endif
 115 
 116 #define LC_COLLATE_MASK         (1<<0)
 117 #define LC_CTYPE_MASK           (1<<1)
 118 #define LC_MESSAGES_MASK        (1<<2)
 119 #define LC_MONETARY_MASK        (1<<3)
 120 #define LC_NUMERIC_MASK         (1<<4)
 121 #define LC_TIME_MASK            (1<<5)
 122 #define LC_ALL_MASK             (LC_COLLATE_MASK | LC_CTYPE_MASK | LC_MESSAGES_MASK | \
 123                                  LC_MONETARY_MASK | LC_NUMERIC_MASK | LC_TIME_MASK)
 124 #define LC_GLOBAL_LOCALE        ((locale_t)-1)
 125 
 126 /* XXX */
 127 #ifndef _LOCALE_T_DEFINED
 128 #define _LOCALE_T_DEFINED
 129 typedef struct  _xlocale *locale_t;
 130 #endif
 131 
 132 locale_t        duplocale(locale_t);
 133 int             freelocale(locale_t);
 134 locale_t        newlocale(int, const char *, locale_t);
 135 const char      *querylocale(int, locale_t);
 136 locale_t        uselocale(locale_t);
 137 
 138 #if __cplusplus >= 199711L
 139 }
 140 #endif /* end of namespace std */
 141 
 142 #ifdef  __cplusplus
 143 }
 144 #endif
 145 
 146 #endif  /* _ISO_LOCALE_ISO_H */