reference/strings/functions/nl-langinfo.xml
61374bbe228e8e9c55a24aba59a1e2bb2a871148
...
...
@@ -1,6 +1,6 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.nl-langinfo">
3
+
<refentry xml:id="function.nl-langinfo" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
5
5
<refname>nl_langinfo</refname>
6
6
<refpurpose>Query language and locale information</refpurpose>
...
...
@@ -9,7 +9,7 @@
9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
-
<type>string</type><methodname>nl_langinfo</methodname>
12
+
<type class="union"><type>string</type><type>false</type></type><methodname>nl_langinfo</methodname>
13
13
<methodparam><type>int</type><parameter>item</parameter></methodparam>
14
14
</methodsynopsis>
15
15
<para>
...
...
@@ -36,8 +36,8 @@
36
36
<table>
37
37
<title>nl_langinfo Constants</title>
38
38
<tgroup cols="2">
39
-
<colspec colname="c1" />
40
-
<colspec colname="c2" />
39
+
<colspec colname="c1"/>
40
+
<colspec colname="c2"/>
41
41
<thead>
42
42
<row>
43
43
<entry>Constant</entry>
...
...
@@ -46,7 +46,7 @@
46
46
</thead>
47
47
<tbody>
48
48
<row>
49
-
<entry namest="c1" nameend="c2" align="center"><emphasis>LC_TIME Category Constants</emphasis></entry>
49
+
<entry namest="c1" nameend="c2" align="center"><emphasis><constant>LC_TIME</constant> Category Constants</emphasis></entry>
50
50
</row>
51
51
<row>
52
52
<entry><constant>ABDAY_(1-7)</constant></entry>
...
...
@@ -109,7 +109,7 @@
109
109
<entry>Time in alternate era format (string can be used in <function>strftime</function>).</entry>
110
110
</row>
111
111
<row>
112
-
<entry namest="c1" nameend="c2" align="center"><emphasis>LC_MONETARY Category Constants</emphasis></entry>
112
+
<entry namest="c1" nameend="c2" align="center"><emphasis><constant>LC_MONETARY</constant> Category Constants</emphasis></entry>
113
113
</row>
114
114
<row>
115
115
<entry><constant>INT_CURR_SYMBOL</constant></entry>
...
...
@@ -203,7 +203,7 @@
203
203
<entry><constant>N_SIGN_POSN</constant></entry>
204
204
</row>
205
205
<row>
206
-
<entry namest="c1" nameend="c2" align="center"><emphasis>LC_NUMERIC Category Constants</emphasis></entry>
206
+
<entry namest="c1" nameend="c2" align="center"><emphasis><constant>LC_NUMERIC</constant> Category Constants</emphasis></entry>
207
207
</row>
208
208
<row>
209
209
<entry><constant>DECIMAL_POINT</constant></entry>
...
...
@@ -223,10 +223,10 @@
223
223
</row>
224
224
<row>
225
225
<entry><constant>GROUPING</constant></entry>
226
-
<entry></entry>
226
+
<entry/>
227
227
</row>
228
228
<row>
229
-
<entry namest="c1" nameend="c2" align="center"><emphasis>LC_MESSAGES Category Constants</emphasis></entry>
229
+
<entry namest="c1" nameend="c2" align="center"><emphasis><constant>LC_MESSAGES</constant> Category Constants</emphasis></entry>
230
230
</row>
231
231
<row>
232
232
<entry><constant>YESEXPR</constant></entry>
...
...
@@ -245,7 +245,7 @@
245
245
<entry>Output string for <literal>"no"</literal>.</entry>
246
246
</row>
247
247
<row>
248
-
<entry namest="c1" nameend="c2" align="center"><emphasis>LC_CTYPE Category Constants</emphasis></entry>
248
+
<entry namest="c1" nameend="c2" align="center"><emphasis><constant>LC_CTYPE</constant> Category Constants</emphasis></entry>
249
249
</row>
250
250
<row>
251
251
<entry><constant>CODESET</constant></entry>
...
...
@@ -269,6 +269,31 @@
269
269
</para>
270
270
</refsect1>
271
271

272
+
<refsect1 role="examples">
273
+
&reftitle.examples;
274
+
<para>
275
+
<example>
276
+
<title><function>nl_langinfo</function> example</title>
277
+
<programlisting role="php">
278
+
<![CDATA[
279
+
<?php
280
+

281
+
var_dump(nl_langinfo(CODESET));
282
+
var_dump(nl_langinfo(YESEXPR));
283
+
?>
284
+
]]>
285
+
</programlisting>
286
+
&example.outputs.similar;
287
+
<screen>
288
+
<![CDATA[
289
+
string(14) "ANSI_X3.4-1968"
290
+
string(5) "^[yY]"
291
+
]]>
292
+
</screen>
293
+
</example>
294
+
</para>
295
+
</refsect1>
296
+

272
297
<refsect1 role="notes">
273
298
&reftitle.notes;
274
299
&note.no-windows;
...
...
@@ -285,7 +310,6 @@
285
310
</refsect1>
286
311

287
312
</refentry>
288
-

289
313
<!-- Keep this comment at the end of the file
290
314
Local variables:
291
315
mode: sgml
292
316