~ubuntu-branches/ubuntu/trusty/musl/trusty-proposed

« back to all changes in this revision

Viewing changes to include/locale.h

  • Committer: Package Import Robot
  • Author(s): Kevin Bortis
  • Date: 2013-09-20 20:54:14 UTC
  • Revision ID: package-import@ubuntu.com-20130920205414-5b61trtmma18w58o
Tags: upstream-0.9.13
ImportĀ upstreamĀ versionĀ 0.9.13

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _LOCALE_H
 
2
#define _LOCALE_H
 
3
 
 
4
#ifdef __cplusplus
 
5
extern "C" {
 
6
#endif
 
7
 
 
8
#include <features.h>
 
9
 
 
10
#define NULL 0L
 
11
 
 
12
#define LC_CTYPE    0
 
13
#define LC_NUMERIC  1
 
14
#define LC_TIME     2
 
15
#define LC_COLLATE  3
 
16
#define LC_MONETARY 4
 
17
#define LC_MESSAGES 5
 
18
#define LC_ALL      6
 
19
 
 
20
struct lconv {
 
21
        char *decimal_point;
 
22
        char *thousands_sep;
 
23
        char *grouping;
 
24
 
 
25
        char *int_curr_symbol;
 
26
        char *currency_symbol;
 
27
        char *mon_decimal_point;
 
28
        char *mon_thousands_sep;
 
29
        char *mon_grouping;
 
30
        char *positive_sign;
 
31
        char *negative_sign;
 
32
        char int_frac_digits;
 
33
        char frac_digits;
 
34
        char p_cs_precedes;
 
35
        char p_sep_by_space;
 
36
        char n_cs_precedes;
 
37
        char n_sep_by_space;
 
38
        char p_sign_posn;
 
39
        char n_sign_posn;
 
40
        char int_p_cs_precedes;
 
41
        char int_p_sep_by_space;
 
42
        char int_n_cs_precedes;
 
43
        char int_n_sep_by_space;
 
44
        char int_p_sign_posn;
 
45
        char int_n_sign_posn;
 
46
};
 
47
 
 
48
 
 
49
char *setlocale (int, const char *);
 
50
struct lconv *localeconv(void);
 
51
 
 
52
 
 
53
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
 
54
 || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
 
55
 
 
56
#define __NEED_locale_t
 
57
 
 
58
#include <bits/alltypes.h>
 
59
 
 
60
#define LC_GLOBAL_LOCALE ((locale_t)-1)
 
61
 
 
62
#define LC_CTYPE_MASK    (1<<LC_CTYPE)
 
63
#define LC_NUMERIC_MASK  (1<<LC_NUMERIC)
 
64
#define LC_TIME_MASK     (1<<LC_TIME)
 
65
#define LC_COLLATE_MASK  (1<<LC_COLLATE)
 
66
#define LC_MONETARY_MASK (1<<LC_MONETARY)
 
67
#define LC_MESSAGES_MASK (1<<LC_MESSAGES)
 
68
#define LC_ALL_MASK      0x7fffffff
 
69
 
 
70
locale_t duplocale(locale_t);
 
71
void freelocale(locale_t);
 
72
locale_t newlocale(int, const char *, locale_t);
 
73
locale_t uselocale(locale_t);
 
74
 
 
75
#endif
 
76
 
 
77
 
 
78
#ifdef __cplusplus
 
79
}
 
80
#endif
 
81
 
 
82
#endif