author | Garrett D'Amore <garrett@dey-sys.com> |
Wed, 04 Sep 2013 14:48:51 -0700 | |
changeset 14186 | 863932c97ce8 |
parent 14184 | 8ae0bbd9e7cc |
permissions | -rw-r--r-- |
13200
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
1 |
%{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
2 |
/* |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
3 |
* This file and its contents are supplied under the terms of the |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
4 |
* Common Development and Distribution License ("CDDL"), version 1.0. |
13222
02526851ba75
357 fix license on strptime.c
Garrett D'Amore <garrett@nexenta.com>
parents:
13200
diff
changeset
|
5 |
* You may only use this file in accordance with the terms of version |
02526851ba75
357 fix license on strptime.c
Garrett D'Amore <garrett@nexenta.com>
parents:
13200
diff
changeset
|
6 |
* 1.0 of the CDDL. |
13200
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
7 |
* |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
8 |
* A full copy of the text of the CDDL should have accompanied this |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
9 |
* source. A copy of the CDDL is also available via the Internet at |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
10 |
* http://www.illumos.org/license/CDDL. |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
11 |
*/ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
12 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
13 |
/* |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
14 |
* Copyright 2010 Nexenta Systems, Inc. All rights reserved. |
14184
8ae0bbd9e7cc
2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents:
13222
diff
changeset
|
15 |
* Copyright 2013 DEY Storage Systems, Inc. |
13200
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
16 |
*/ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
17 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
18 |
/* |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
19 |
* POSIX localedef grammar. |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
20 |
*/ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
21 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
22 |
#include <wchar.h> |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
23 |
#include <stdio.h> |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
24 |
#include <limits.h> |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
25 |
#include "localedef.h" |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
26 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
27 |
%} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
28 |
%union { |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
29 |
int num; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
30 |
wchar_t wc; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
31 |
char *token; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
32 |
collsym_t *collsym; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
33 |
collelem_t *collelem; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
34 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
35 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
36 |
%token T_CODE_SET |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
37 |
%token T_MB_CUR_MAX |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
38 |
%token T_MB_CUR_MIN |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
39 |
%token T_COM_CHAR |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
40 |
%token T_ESC_CHAR |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
41 |
%token T_LT |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
42 |
%token T_GT |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
43 |
%token T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
44 |
%token T_SEMI |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
45 |
%token T_COMMA |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
46 |
%token T_ELLIPSIS |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
47 |
%token T_RPAREN |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
48 |
%token T_LPAREN |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
49 |
%token T_QUOTE |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
50 |
%token T_NULL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
51 |
%token T_WS |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
52 |
%token T_END |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
53 |
%token T_COPY |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
54 |
%token T_CHARMAP |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
55 |
%token T_WIDTH |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
56 |
%token T_CTYPE |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
57 |
%token T_ISUPPER |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
58 |
%token T_ISLOWER |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
59 |
%token T_ISALPHA |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
60 |
%token T_ISDIGIT |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
61 |
%token T_ISPUNCT |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
62 |
%token T_ISXDIGIT |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
63 |
%token T_ISSPACE |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
64 |
%token T_ISPRINT |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
65 |
%token T_ISGRAPH |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
66 |
%token T_ISBLANK |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
67 |
%token T_ISCNTRL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
68 |
%token T_ISALNUM |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
69 |
%token T_ISSPECIAL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
70 |
%token T_ISPHONOGRAM |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
71 |
%token T_ISIDEOGRAM |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
72 |
%token T_ISENGLISH |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
73 |
%token T_ISNUMBER |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
74 |
%token T_TOUPPER |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
75 |
%token T_TOLOWER |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
76 |
%token T_COLLATE |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
77 |
%token T_COLLATING_SYMBOL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
78 |
%token T_COLLATING_ELEMENT |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
79 |
%token T_ORDER_START |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
80 |
%token T_ORDER_END |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
81 |
%token T_FORWARD |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
82 |
%token T_BACKWARD |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
83 |
%token T_POSITION |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
84 |
%token T_FROM |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
85 |
%token T_UNDEFINED |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
86 |
%token T_IGNORE |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
87 |
%token T_MESSAGES |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
88 |
%token T_YESSTR |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
89 |
%token T_NOSTR |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
90 |
%token T_YESEXPR |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
91 |
%token T_NOEXPR |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
92 |
%token T_MONETARY |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
93 |
%token T_INT_CURR_SYMBOL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
94 |
%token T_CURRENCY_SYMBOL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
95 |
%token T_MON_DECIMAL_POINT |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
96 |
%token T_MON_THOUSANDS_SEP |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
97 |
%token T_POSITIVE_SIGN |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
98 |
%token T_NEGATIVE_SIGN |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
99 |
%token T_MON_GROUPING |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
100 |
%token T_INT_FRAC_DIGITS |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
101 |
%token T_FRAC_DIGITS |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
102 |
%token T_P_CS_PRECEDES |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
103 |
%token T_P_SEP_BY_SPACE |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
104 |
%token T_N_CS_PRECEDES |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
105 |
%token T_N_SEP_BY_SPACE |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
106 |
%token T_P_SIGN_POSN |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
107 |
%token T_N_SIGN_POSN |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
108 |
%token T_INT_P_CS_PRECEDES |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
109 |
%token T_INT_N_CS_PRECEDES |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
110 |
%token T_INT_P_SEP_BY_SPACE |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
111 |
%token T_INT_N_SEP_BY_SPACE |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
112 |
%token T_INT_P_SIGN_POSN |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
113 |
%token T_INT_N_SIGN_POSN |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
114 |
%token T_NUMERIC |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
115 |
%token T_DECIMAL_POINT |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
116 |
%token T_THOUSANDS_SEP |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
117 |
%token T_GROUPING |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
118 |
%token T_TIME |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
119 |
%token T_ABDAY |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
120 |
%token T_DAY |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
121 |
%token T_ABMON |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
122 |
%token T_MON |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
123 |
%token T_ERA |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
124 |
%token T_ERA_D_FMT |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
125 |
%token T_ERA_T_FMT |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
126 |
%token T_ERA_D_T_FMT |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
127 |
%token T_ALT_DIGITS |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
128 |
%token T_D_T_FMT |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
129 |
%token T_D_FMT |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
130 |
%token T_T_FMT |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
131 |
%token T_AM_PM |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
132 |
%token T_T_FMT_AMPM |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
133 |
%token T_DATE_FMT |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
134 |
%token <wc> T_CHAR |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
135 |
%token <token> T_NAME |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
136 |
%token <num> T_NUMBER |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
137 |
%token <token> T_SYMBOL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
138 |
%token <collsym> T_COLLSYM |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
139 |
%token <collelem> T_COLLELEM |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
140 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
141 |
%% |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
142 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
143 |
localedef : setting_list categories |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
144 |
| categories |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
145 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
146 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
147 |
string : T_QUOTE charlist T_QUOTE |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
148 |
| T_QUOTE T_QUOTE |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
149 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
150 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
151 |
charlist : charlist T_CHAR |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
152 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
153 |
add_wcs($2); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
154 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
155 |
| T_CHAR |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
156 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
157 |
add_wcs($1); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
158 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
159 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
160 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
161 |
setting_list : setting_list setting |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
162 |
| setting |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
163 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
164 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
165 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
166 |
setting : T_COM_CHAR T_CHAR T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
167 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
168 |
com_char = $2; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
169 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
170 |
| T_ESC_CHAR T_CHAR T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
171 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
172 |
esc_char = $2; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
173 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
174 |
| T_MB_CUR_MAX T_NUMBER T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
175 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
176 |
mb_cur_max = $2; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
177 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
178 |
| T_MB_CUR_MIN T_NUMBER T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
179 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
180 |
mb_cur_min = $2; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
181 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
182 |
| T_CODE_SET string T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
183 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
184 |
wchar_t *w = get_wcs(); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
185 |
set_wide_encoding(to_mb_string(w)); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
186 |
free(w); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
187 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
188 |
| T_CODE_SET T_NAME T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
189 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
190 |
set_wide_encoding($2); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
191 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
192 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
193 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
194 |
copycat : T_COPY T_NAME T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
195 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
196 |
copy_category($2); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
197 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
198 |
| T_COPY string T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
199 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
200 |
wchar_t *w = get_wcs(); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
201 |
copy_category(to_mb_string(w)); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
202 |
free(w); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
203 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
204 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
205 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
206 |
categories : categories category |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
207 |
| category |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
208 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
209 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
210 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
211 |
category : charmap |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
212 |
| messages |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
213 |
| monetary |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
214 |
| ctype |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
215 |
| collate |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
216 |
| numeric |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
217 |
| time |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
218 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
219 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
220 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
221 |
charmap : T_CHARMAP T_NL charmap_list T_END T_CHARMAP T_NL |
14184
8ae0bbd9e7cc
2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents:
13222
diff
changeset
|
222 |
| T_WIDTH T_NL width_list T_END T_WIDTH T_NL |
8ae0bbd9e7cc
2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents:
13222
diff
changeset
|
223 |
; |
13200
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
224 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
225 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
226 |
charmap_list : charmap_list charmap_entry |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
227 |
| charmap_entry |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
228 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
229 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
230 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
231 |
charmap_entry : T_SYMBOL T_CHAR |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
232 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
233 |
add_charmap($1, $2); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
234 |
scan_to_eol(); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
235 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
236 |
| T_SYMBOL T_ELLIPSIS T_SYMBOL T_CHAR |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
237 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
238 |
add_charmap_range($1, $3, $4); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
239 |
scan_to_eol(); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
240 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
241 |
| T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
242 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
243 |
|
14184
8ae0bbd9e7cc
2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents:
13222
diff
changeset
|
244 |
width_list : width_list width_entry |
8ae0bbd9e7cc
2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents:
13222
diff
changeset
|
245 |
| width_entry |
8ae0bbd9e7cc
2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents:
13222
diff
changeset
|
246 |
; |
8ae0bbd9e7cc
2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents:
13222
diff
changeset
|
247 |
|
8ae0bbd9e7cc
2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents:
13222
diff
changeset
|
248 |
width_entry : T_CHAR T_NUMBER T_NL |
8ae0bbd9e7cc
2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents:
13222
diff
changeset
|
249 |
{ |
8ae0bbd9e7cc
2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents:
13222
diff
changeset
|
250 |
add_width($1, $2); |
8ae0bbd9e7cc
2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents:
13222
diff
changeset
|
251 |
} |
8ae0bbd9e7cc
2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents:
13222
diff
changeset
|
252 |
| T_SYMBOL T_NUMBER T_NL |
8ae0bbd9e7cc
2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents:
13222
diff
changeset
|
253 |
{ |
8ae0bbd9e7cc
2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents:
13222
diff
changeset
|
254 |
add_charmap_undefined($1); |
8ae0bbd9e7cc
2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents:
13222
diff
changeset
|
255 |
} |
8ae0bbd9e7cc
2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents:
13222
diff
changeset
|
256 |
| T_CHAR T_ELLIPSIS T_CHAR T_NUMBER T_NL |
8ae0bbd9e7cc
2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents:
13222
diff
changeset
|
257 |
{ |
8ae0bbd9e7cc
2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents:
13222
diff
changeset
|
258 |
add_width_range($1, $3, $4); |
8ae0bbd9e7cc
2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents:
13222
diff
changeset
|
259 |
} |
8ae0bbd9e7cc
2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents:
13222
diff
changeset
|
260 |
| T_SYMBOL T_ELLIPSIS T_SYMBOL T_NUMBER T_NL |
8ae0bbd9e7cc
2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents:
13222
diff
changeset
|
261 |
{ |
8ae0bbd9e7cc
2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents:
13222
diff
changeset
|
262 |
add_charmap_undefined($1); |
8ae0bbd9e7cc
2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents:
13222
diff
changeset
|
263 |
add_charmap_undefined($3); |
8ae0bbd9e7cc
2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents:
13222
diff
changeset
|
264 |
} |
8ae0bbd9e7cc
2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents:
13222
diff
changeset
|
265 |
| T_CHAR T_ELLIPSIS T_SYMBOL T_NUMBER T_NL |
8ae0bbd9e7cc
2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents:
13222
diff
changeset
|
266 |
{ |
8ae0bbd9e7cc
2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents:
13222
diff
changeset
|
267 |
add_width($1, $4); |
8ae0bbd9e7cc
2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents:
13222
diff
changeset
|
268 |
add_charmap_undefined($3); |
8ae0bbd9e7cc
2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents:
13222
diff
changeset
|
269 |
} |
8ae0bbd9e7cc
2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents:
13222
diff
changeset
|
270 |
| T_SYMBOL T_ELLIPSIS T_CHAR T_NUMBER T_NL |
8ae0bbd9e7cc
2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents:
13222
diff
changeset
|
271 |
{ |
8ae0bbd9e7cc
2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents:
13222
diff
changeset
|
272 |
add_width($3, $4); |
8ae0bbd9e7cc
2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents:
13222
diff
changeset
|
273 |
add_charmap_undefined($1); |
8ae0bbd9e7cc
2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents:
13222
diff
changeset
|
274 |
} |
8ae0bbd9e7cc
2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents:
13222
diff
changeset
|
275 |
| T_NL |
8ae0bbd9e7cc
2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents:
13222
diff
changeset
|
276 |
; |
8ae0bbd9e7cc
2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents:
13222
diff
changeset
|
277 |
|
13200
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
278 |
ctype : T_CTYPE T_NL ctype_list T_END T_CTYPE T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
279 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
280 |
dump_ctype(); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
281 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
282 |
| T_CTYPE T_NL copycat T_END T_CTYPE T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
283 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
284 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
285 |
ctype_list : ctype_list ctype_kw |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
286 |
| ctype_kw |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
287 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
288 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
289 |
ctype_kw : T_ISUPPER cc_list T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
290 |
| T_ISLOWER cc_list T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
291 |
| T_ISALPHA cc_list T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
292 |
| T_ISDIGIT cc_list T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
293 |
| T_ISPUNCT cc_list T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
294 |
| T_ISXDIGIT cc_list T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
295 |
| T_ISSPACE cc_list T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
296 |
| T_ISPRINT cc_list T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
297 |
| T_ISGRAPH cc_list T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
298 |
| T_ISBLANK cc_list T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
299 |
| T_ISCNTRL cc_list T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
300 |
| T_ISALNUM cc_list T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
301 |
| T_ISSPECIAL cc_list T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
302 |
| T_ISENGLISH cc_list T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
303 |
| T_ISNUMBER cc_list T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
304 |
| T_ISIDEOGRAM cc_list T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
305 |
| T_ISPHONOGRAM cc_list T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
306 |
| T_TOUPPER conv_list T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
307 |
| T_TOLOWER conv_list T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
308 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
309 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
310 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
311 |
cc_list : cc_list T_SEMI T_CHAR |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
312 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
313 |
add_ctype($3); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
314 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
315 |
| cc_list T_SEMI T_SYMBOL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
316 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
317 |
add_charmap_undefined($3); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
318 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
319 |
| cc_list T_SEMI T_ELLIPSIS T_SEMI T_CHAR |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
320 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
321 |
/* note that the endpoints *must* be characters */ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
322 |
add_ctype_range($5); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
323 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
324 |
| T_CHAR |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
325 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
326 |
add_ctype($1); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
327 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
328 |
| T_SYMBOL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
329 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
330 |
add_charmap_undefined($1); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
331 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
332 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
333 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
334 |
conv_list : conv_list T_SEMI conv_pair |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
335 |
| conv_pair |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
336 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
337 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
338 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
339 |
conv_pair : T_LPAREN T_CHAR T_COMMA T_CHAR T_RPAREN |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
340 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
341 |
add_caseconv($2, $4); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
342 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
343 |
| T_LPAREN T_SYMBOL T_COMMA T_CHAR T_RPAREN |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
344 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
345 |
add_charmap_undefined($2); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
346 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
347 |
| T_LPAREN T_SYMBOL T_COMMA T_SYMBOL T_RPAREN |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
348 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
349 |
add_charmap_undefined($2); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
350 |
add_charmap_undefined($4); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
351 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
352 |
| T_LPAREN T_CHAR T_COMMA T_SYMBOL T_RPAREN |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
353 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
354 |
add_charmap_undefined($4); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
355 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
356 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
357 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
358 |
collate : T_COLLATE T_NL coll_order T_END T_COLLATE T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
359 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
360 |
dump_collate(); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
361 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
362 |
| T_COLLATE T_NL coll_optional coll_order T_END T_COLLATE T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
363 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
364 |
dump_collate(); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
365 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
366 |
| T_COLLATE T_NL copycat T_END T_COLLATE T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
367 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
368 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
369 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
370 |
coll_optional : coll_optional coll_symbols |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
371 |
| coll_optional coll_elements |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
372 |
| coll_symbols |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
373 |
| coll_elements |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
374 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
375 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
376 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
377 |
coll_symbols : T_COLLATING_SYMBOL T_SYMBOL T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
378 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
379 |
define_collsym($2); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
380 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
381 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
382 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
383 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
384 |
coll_elements : T_COLLATING_ELEMENT T_SYMBOL T_FROM string T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
385 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
386 |
define_collelem($2, get_wcs()); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
387 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
388 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
389 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
390 |
coll_order : T_ORDER_START T_NL order_list T_ORDER_END T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
391 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
392 |
/* If no order list supplied default to one forward */ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
393 |
add_order_bit(T_FORWARD); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
394 |
add_order_directive(); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
395 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
396 |
| T_ORDER_START order_args T_NL order_list T_ORDER_END T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
397 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
398 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
399 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
400 |
order_args : order_args T_SEMI order_arg |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
401 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
402 |
add_order_directive(); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
403 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
404 |
| order_arg |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
405 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
406 |
add_order_directive(); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
407 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
408 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
409 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
410 |
order_arg : order_arg T_COMMA order_dir |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
411 |
| order_dir |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
412 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
413 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
414 |
order_dir : T_FORWARD |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
415 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
416 |
add_order_bit(T_FORWARD); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
417 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
418 |
| T_BACKWARD |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
419 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
420 |
add_order_bit(T_BACKWARD); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
421 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
422 |
| T_POSITION |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
423 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
424 |
add_order_bit(T_POSITION); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
425 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
426 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
427 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
428 |
order_list : order_list order_item |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
429 |
| order_item |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
430 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
431 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
432 |
order_item : T_COLLSYM T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
433 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
434 |
end_order_collsym($1); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
435 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
436 |
| order_itemkw T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
437 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
438 |
end_order(); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
439 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
440 |
| order_itemkw order_weights T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
441 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
442 |
end_order(); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
443 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
444 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
445 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
446 |
order_itemkw : T_CHAR |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
447 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
448 |
start_order_char($1); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
449 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
450 |
| T_ELLIPSIS |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
451 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
452 |
start_order_ellipsis(); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
453 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
454 |
| T_COLLELEM |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
455 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
456 |
start_order_collelem($1); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
457 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
458 |
| T_UNDEFINED |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
459 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
460 |
start_order_undefined(); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
461 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
462 |
| T_SYMBOL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
463 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
464 |
start_order_symbol($1); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
465 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
466 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
467 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
468 |
order_weights : order_weights T_SEMI order_weight |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
469 |
| order_weights T_SEMI |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
470 |
| order_weight |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
471 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
472 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
473 |
order_weight : T_COLLELEM |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
474 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
475 |
add_order_collelem($1); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
476 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
477 |
| T_COLLSYM |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
478 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
479 |
add_order_collsym($1); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
480 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
481 |
| T_CHAR |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
482 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
483 |
add_order_char($1); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
484 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
485 |
| T_ELLIPSIS |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
486 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
487 |
add_order_ellipsis(); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
488 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
489 |
| T_IGNORE |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
490 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
491 |
add_order_ignore(); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
492 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
493 |
| T_SYMBOL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
494 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
495 |
add_order_symbol($1); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
496 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
497 |
| T_QUOTE order_str T_QUOTE |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
498 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
499 |
add_order_subst(); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
500 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
501 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
502 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
503 |
order_str : order_str order_stritem |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
504 |
| order_stritem |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
505 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
506 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
507 |
order_stritem : T_CHAR |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
508 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
509 |
add_subst_char($1); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
510 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
511 |
| T_COLLSYM |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
512 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
513 |
add_subst_collsym($1); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
514 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
515 |
| T_COLLELEM |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
516 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
517 |
add_subst_collelem($1); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
518 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
519 |
| T_SYMBOL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
520 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
521 |
add_subst_symbol($1); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
522 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
523 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
524 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
525 |
messages : T_MESSAGES T_NL messages_list T_END T_MESSAGES T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
526 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
527 |
dump_messages(); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
528 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
529 |
| T_MESSAGES T_NL copycat T_END T_MESSAGES T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
530 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
531 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
532 |
messages_list : messages_list messages_item |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
533 |
| messages_item |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
534 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
535 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
536 |
messages_kw : T_YESSTR |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
537 |
| T_NOSTR |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
538 |
| T_YESEXPR |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
539 |
| T_NOEXPR |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
540 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
541 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
542 |
messages_item : messages_kw string T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
543 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
544 |
add_message(get_wcs()); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
545 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
546 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
547 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
548 |
monetary : T_MONETARY T_NL monetary_list T_END T_MONETARY T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
549 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
550 |
dump_monetary(); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
551 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
552 |
| T_MONETARY T_NL copycat T_END T_MONETARY T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
553 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
554 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
555 |
monetary_list : monetary_list monetary_kw |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
556 |
| monetary_kw |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
557 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
558 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
559 |
monetary_strkw : T_INT_CURR_SYMBOL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
560 |
| T_CURRENCY_SYMBOL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
561 |
| T_MON_DECIMAL_POINT |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
562 |
| T_MON_THOUSANDS_SEP |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
563 |
| T_POSITIVE_SIGN |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
564 |
| T_NEGATIVE_SIGN |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
565 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
566 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
567 |
monetary_numkw : T_INT_FRAC_DIGITS |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
568 |
| T_FRAC_DIGITS |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
569 |
| T_P_CS_PRECEDES |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
570 |
| T_P_SEP_BY_SPACE |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
571 |
| T_N_CS_PRECEDES |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
572 |
| T_N_SEP_BY_SPACE |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
573 |
| T_P_SIGN_POSN |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
574 |
| T_N_SIGN_POSN |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
575 |
| T_INT_P_CS_PRECEDES |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
576 |
| T_INT_N_CS_PRECEDES |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
577 |
| T_INT_P_SEP_BY_SPACE |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
578 |
| T_INT_N_SEP_BY_SPACE |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
579 |
| T_INT_P_SIGN_POSN |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
580 |
| T_INT_N_SIGN_POSN |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
581 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
582 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
583 |
monetary_kw : monetary_strkw string T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
584 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
585 |
add_monetary_str(get_wcs()); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
586 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
587 |
| monetary_numkw T_NUMBER T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
588 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
589 |
add_monetary_num($2); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
590 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
591 |
| T_MON_GROUPING mon_group_list T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
592 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
593 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
594 |
mon_group_list : T_NUMBER |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
595 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
596 |
reset_monetary_group(); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
597 |
add_monetary_group($1); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
598 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
599 |
| mon_group_list T_SEMI T_NUMBER |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
600 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
601 |
add_monetary_group($3); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
602 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
603 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
604 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
605 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
606 |
numeric : T_NUMERIC T_NL numeric_list T_END T_NUMERIC T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
607 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
608 |
dump_numeric(); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
609 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
610 |
| T_NUMERIC T_NL copycat T_END T_NUMERIC T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
611 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
612 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
613 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
614 |
numeric_list : numeric_list numeric_item |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
615 |
| numeric_item |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
616 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
617 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
618 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
619 |
numeric_item : numeric_strkw string T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
620 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
621 |
add_numeric_str(get_wcs()); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
622 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
623 |
| T_GROUPING group_list T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
624 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
625 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
626 |
numeric_strkw : T_DECIMAL_POINT |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
627 |
| T_THOUSANDS_SEP |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
628 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
629 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
630 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
631 |
group_list : T_NUMBER |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
632 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
633 |
reset_numeric_group(); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
634 |
add_numeric_group($1); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
635 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
636 |
| group_list T_SEMI T_NUMBER |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
637 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
638 |
add_numeric_group($3); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
639 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
640 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
641 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
642 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
643 |
time : T_TIME T_NL time_kwlist T_END T_TIME T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
644 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
645 |
dump_time(); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
646 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
647 |
| T_TIME T_NL copycat T_END T_NUMERIC T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
648 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
649 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
650 |
time_kwlist : time_kwlist time_kw |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
651 |
| time_kw |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
652 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
653 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
654 |
time_kw : time_strkw string T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
655 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
656 |
add_time_str(get_wcs()); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
657 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
658 |
| time_listkw time_list T_NL |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
659 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
660 |
check_time_list(); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
661 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
662 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
663 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
664 |
time_listkw : T_ABDAY |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
665 |
| T_DAY |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
666 |
| T_ABMON |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
667 |
| T_MON |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
668 |
| T_ERA |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
669 |
| T_ALT_DIGITS |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
670 |
| T_AM_PM |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
671 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
672 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
673 |
time_strkw : T_ERA_D_T_FMT |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
674 |
| T_ERA_T_FMT |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
675 |
| T_ERA_D_FMT |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
676 |
| T_D_T_FMT |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
677 |
| T_D_FMT |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
678 |
| T_T_FMT |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
679 |
| T_T_FMT_AMPM |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
680 |
| T_DATE_FMT |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
681 |
; |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
682 |
|
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
683 |
time_list : time_list T_SEMI string |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
684 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
685 |
add_time_list(get_wcs()); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
686 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
687 |
| string |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
688 |
{ |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
689 |
reset_time_list(); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
690 |
add_time_list(get_wcs()); |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
691 |
} |
e35262a09b82
8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff
changeset
|
692 |
; |