reference/intl/constants.xml
e3ed93fa21c429ec9dfbd207dde6a41835749005
...
...
@@ -1,14 +1,24 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-
<appendix xml:id="intl.constants" xmlns="http://docbook.org/ns/docbook"
4
-
xmlns:xlink="http://www.w3.org/1999/xlink">
3
+
<appendix xml:id="intl.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
&reftitle.constants;
6
5
<para>
7
6
<variablelist>
7
+
<varlistentry xml:id="constant.intl-icu-version">
8
+
<term>
9
+
<constant>INTL_ICU_VERSION</constant>
10
+
(<type>string</type>)
11
+
</term>
12
+
<listitem>
13
+
<simpara>
14
+
The current ICU library version as a dotted-decimal string.
15
+
</simpara>
16
+
</listitem>
17
+
</varlistentry>
8
18
<varlistentry xml:id="constant.intl-max-locale-len">
9
19
<term>
10
20
<constant>INTL_MAX_LOCALE_LEN</constant>
11
-
(<type>integer</type>)
21
+
(<type>int</type>)
12
22
</term>
13
23
<listitem>
14
24
<simpara>
...
...
@@ -20,7 +30,7 @@
20
30
<varlistentry xml:id="constant.idna-default">
21
31
<term>
22
32
<constant>IDNA_DEFAULT</constant>
23
-
(<type>integer</type>)
33
+
(<type>int</type>)
24
34
</term>
25
35
<listitem>
26
36
<simpara>
...
...
@@ -32,7 +42,7 @@
32
42
<varlistentry xml:id="constant.idna-allow-unassigned">
33
43
<term>
34
44
<constant>IDNA_ALLOW_UNASSIGNED</constant>
35
-
(<type>integer</type>)
45
+
(<type>int</type>)
36
46
</term>
37
47
<listitem>
38
48
<simpara>
...
...
@@ -43,7 +53,7 @@
43
53
<varlistentry xml:id="constant.idna-use-std3-rules">
44
54
<term>
45
55
<constant>IDNA_USE_STD3_RULES</constant>
46
-
(<type>integer</type>)
56
+
(<type>int</type>)
47
57
</term>
48
58
<listitem>
49
59
<simpara>
...
...
@@ -54,7 +64,7 @@
54
64
<varlistentry xml:id="constant.idna-check-bidi">
55
65
<term>
56
66
<constant>IDNA_CHECK_BIDI</constant>
57
-
(<type>integer</type>)
67
+
(<type>int</type>)
58
68
</term>
59
69
<listitem>
60
70
<simpara>
...
...
@@ -66,7 +76,7 @@
66
76
<varlistentry xml:id="constant.idna-check-contextj">
67
77
<term>
68
78
<constant>IDNA_CHECK_CONTEXTJ</constant>
69
-
(<type>integer</type>)
79
+
(<type>int</type>)
70
80
</term>
71
81
<listitem>
72
82
<simpara>
...
...
@@ -78,7 +88,7 @@
78
88
<varlistentry xml:id="constant.idna-nontransitional-to-ascii">
79
89
<term>
80
90
<constant>IDNA_NONTRANSITIONAL_TO_ASCII</constant>
81
-
(<type>integer</type>)
91
+
(<type>int</type>)
82
92
</term>
83
93
<listitem>
84
94
<simpara>
...
...
@@ -91,7 +101,7 @@
91
101
<varlistentry xml:id="constant.idna-nontransitional-to-unicode">
92
102
<term>
93
103
<constant>IDNA_NONTRANSITIONAL_TO_UNICODE</constant>
94
-
(<type>integer</type>)
104
+
(<type>int</type>)
95
105
</term>
96
106
<listitem>
97
107
<simpara>
...
...
@@ -104,80 +114,168 @@
104
114
<varlistentry xml:id="constant.intl-idna-variant-2003">
105
115
<term>
106
116
<constant>INTL_IDNA_VARIANT_2003</constant>
107
-
(<type>integer</type>)
117
+
(<type>int</type>)
108
118
</term>
109
119
<listitem>
110
120
<simpara>
111
121
Use IDNA 2003 algorithm in <function>idn_to_utf8</function> and
112
122
<function>idn_to_ascii</function>. This is the default.
123
+
This constant and using the default has been deprecated as of PHP 7.2.0.
113
124
</simpara>
114
125
</listitem>
115
126
</varlistentry>
116
127
<varlistentry xml:id="constant.intl-idna-variant-uts46">
117
128
<term>
118
129
<constant>INTL_IDNA_VARIANT_UTS46</constant>
119
-
(<type>integer</type>)
130
+
(<type>int</type>)
120
131
</term>
121
132
<listitem>
122
133
<simpara>
123
134
Use UTS #46 algorithm in <function>idn_to_utf8</function> and
124
135
<function>idn_to_ascii</function>.
136
+
Available as of ICU 4.6.
125
137
</simpara>
126
138
</listitem>
127
139
</varlistentry>
140
+
</variablelist>
141
+
<variablelist xml:id="constant.idna-errors">
142
+
<para>
143
+
The following errors are part of a bitmask returned by the UTS #46 algorithm in
144
+
<function>idn_to_utf8</function> and <function>idn_to_ascii</function>.
145
+
</para>
128
146
<varlistentry xml:id="constant.idna-error-empty-label">
129
147
<term>
130
-
<constant>IDNA_ERROR_EMPTY_LABEL</constant> (<type>integer</type>)
148
+
<constant>IDNA_ERROR_EMPTY_LABEL</constant>
149
+
(<type>int</type>)
131
150
</term>
151
+
<listitem>
152
+
<simpara>
153
+
</simpara>
154
+
</listitem>
155
+
</varlistentry>
156
+
<varlistentry xml:id="constant.idna-error-label-too-long">
132
157
<term>
133
-
<constant>IDNA_ERROR_LABEL_TOO_LONG</constant> (<type>integer</type>)
158
+
<constant>IDNA_ERROR_LABEL_TOO_LONG</constant>
159
+
(<type>int</type>)
134
160
</term>
161
+
<listitem>
162
+
<simpara>
163
+
</simpara>
164
+
</listitem>
165
+
</varlistentry>
166
+
<varlistentry xml:id="constant.idna-error-domain-name-too-long">
135
167
<term>
136
-
<constant>IDNA_ERROR_DOMAIN_NAME_TOO_LONG</constant> (<type>integer</type>)
168
+
<constant>IDNA_ERROR_DOMAIN_NAME_TOO_LONG</constant>
169
+
(<type>int</type>)
137
170
</term>
171
+
<listitem>
172
+
<simpara>
173
+
</simpara>
174
+
</listitem>
175
+
</varlistentry>
176
+
<varlistentry xml:id="constant.idna-error-leading-hyphen">
138
177
<term>
139
-
<constant>IDNA_ERROR_LEADING_HYPHEN</constant> (<type>integer</type>)
178
+
<constant>IDNA_ERROR_LEADING_HYPHEN</constant>
179
+
(<type>int</type>)
140
180
</term>
181
+
<listitem>
182
+
<simpara>
183
+
</simpara>
184
+
</listitem>
185
+
</varlistentry>
186
+
<varlistentry xml:id="constant.idna-error-trailing-hyphen">
141
187
<term>
142
-
<constant>IDNA_ERROR_TRAILING_HYPHEN</constant> (<type>integer</type>)
188
+
<constant>IDNA_ERROR_TRAILING_HYPHEN</constant>
189
+
(<type>int</type>)
143
190
</term>
191
+
<listitem>
192
+
<simpara>
193
+
</simpara>
194
+
</listitem>
195
+
</varlistentry>
196
+
<varlistentry xml:id="constant.idna-error-hyphen-3-4">
144
197
<term>
145
-
<constant>IDNA_ERROR_HYPHEN_3_4</constant> (<type>integer</type>)
198
+
<constant>IDNA_ERROR_HYPHEN_3_4</constant>
199
+
(<type>int</type>)
146
200
</term>
201
+
<listitem>
202
+
<simpara>
203
+
</simpara>
204
+
</listitem>
205
+
</varlistentry>
206
+
<varlistentry xml:id="constant.idna-error-leading-combining-mark">
147
207
<term>
148
208
<constant>IDNA_ERROR_LEADING_COMBINING_MARK</constant>
149
-
(<type>integer</type>)
209
+
(<type>int</type>)
150
210
</term>
211
+
<listitem>
212
+
<simpara>
213
+
</simpara>
214
+
</listitem>
215
+
</varlistentry>
216
+
<varlistentry xml:id="constant.idna-error-disallowed">
151
217
<term>
152
-
<constant>IDNA_ERROR_DISALLOWED</constant> (<type>integer</type>)
218
+
<constant>IDNA_ERROR_DISALLOWED</constant>
219
+
(<type>int</type>)
153
220
</term>
221
+
<listitem>
222
+
<simpara>
223
+
</simpara>
224
+
</listitem>
225
+
</varlistentry>
226
+
<varlistentry xml:id="constant.idna-error-punycode">
154
227
<term>
155
-
<constant>IDNA_ERROR_PUNYCODE</constant> (<type>integer</type>)
228
+
<constant>IDNA_ERROR_PUNYCODE</constant>
229
+
(<type>int</type>)
156
230
</term>
231
+
<listitem>
232
+
<simpara>
233
+
</simpara>
234
+
</listitem>
235
+
</varlistentry>
236
+
<varlistentry xml:id="constant.idna-error-label-has-dot">
157
237
<term>
158
-
<constant>IDNA_ERROR_LABEL_HAS_DOT</constant> (<type>integer</type>)
238
+
<constant>IDNA_ERROR_LABEL_HAS_DOT</constant>
239
+
(<type>int</type>)
159
240
</term>
241
+
<listitem>
242
+
<simpara>
243
+
</simpara>
244
+
</listitem>
245
+
</varlistentry>
246
+
<varlistentry xml:id="constant.idna-error-invalid-ace-label">
160
247
<term>
161
-
<constant>IDNA_ERROR_INVALID_ACE_LABEL</constant> (<type>integer</type>)
248
+
<constant>IDNA_ERROR_INVALID_ACE_LABEL</constant>
249
+
(<type>int</type>)
162
250
</term>
251
+
<listitem>
252
+
<simpara>
253
+
</simpara>
254
+
</listitem>
255
+
</varlistentry>
256
+
<varlistentry xml:id="constant.idna-error-bidi">
163
257
<term>
164
-
<constant>IDNA_ERROR_BIDI</constant> (<type>integer</type>)
258
+
<constant>IDNA_ERROR_BIDI</constant>
259
+
(<type>int</type>)
165
260
</term>
261
+
<listitem>
262
+
<simpara>
263
+
</simpara>
264
+
</listitem>
265
+
</varlistentry>
266
+
<varlistentry xml:id="constant.idna-error-contextj">
166
267
<term>
167
-
<constant>IDNA_ERROR_CONTEXTJ</constant> (<type>integer</type>)
268
+
<constant>IDNA_ERROR_CONTEXTJ</constant>
269
+
(<type>int</type>)
168
270
</term>
169
271
<listitem>
170
272
<simpara>
171
-
Errors reported in a bitset returned by the UTS #46 algorithm in
172
-
<function>idn_to_utf8</function> and
173
-
<function>idn_to_ascii</function>.
174
273
</simpara>
175
274
</listitem>
176
275
</varlistentry>
177
276
</variablelist>
178
277
</para>
179
278
</appendix>
180
-

181
279
<!-- Keep this comment at the end of the file
182
280
Local variables:
183
281
mode: sgml
184
282