File: 003.phpt

package info (click to toggle)
php-doc 20250827~git.abe740d%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 71,968 kB
  • sloc: xml: 985,760; php: 25,504; javascript: 671; sh: 177; makefile: 37
file content (292 lines) | stat: -rw-r--r-- 6,586 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
--TEST--
CALS Table rendering#003
--FILE--
<?php
namespace phpdotnet\phd;

require_once __DIR__ . "/../../setup.php";

$xmlFile = __DIR__ . "/data/003.xml";

$config->xmlFile = $xmlFile;

$format = new TestGenericChunkedXHTML($config, $outputHandler);
$render = new TestRender(new Reader($outputHandler), $config, $format);

$render->run();
?>
--EXPECT--
Filename: function.nl-langinfo.html
Content:
<div id="function.nl-langinfo" class="article">
 <table class="doctable table">
  <caption><strong>nl_langinfo Constants</strong></caption>
  
   <col />
   <col />
   <thead>
    <tr>
     <th>Constant</th>
     <th>Description</th>
    </tr>

   </thead>

   <tbody class="tbody">
    <tr>
     <td colspan="2" style="text-align: center;"><em>LC_TIME Category Constants</em></td>
    </tr>

    <tr>
     <td>ABDAY_(1-7)</td>
     <td>Abbreviated name of n-th day of the week.</td>
    </tr>

    <tr>
     <td>DAY_(1-7)</td>
     <td>Name of the n-th day of the week (DAY_1 = Sunday).</td>
    </tr>

    <tr>
     <td>ABMON_(1-12)</td>
     <td>Abbreviated name of the n-th month of the year.</td>
    </tr>

    <tr>
     <td>MON_(1-12)</td>
     <td>Name of the n-th month of the year.</td>
    </tr>

    <tr>
     <td>AM_STR</td>
     <td>String for Ante meridian.</td>
    </tr>

    <tr>
     <td>PM_STR</td>
     <td>String for Post meridian.</td>
    </tr>

    <tr>
     <td>D_T_FMT</td>
     <td>String that can be used as the format string for <span class="function">strftime</span> to represent time and date.</td>
    </tr>

    <tr>
     <td>D_FMT</td>
     <td>String that can be used as the format string for <span class="function">strftime</span> to represent date.</td>
    </tr>

    <tr>
     <td>T_FMT</td>
     <td>String that can be used as the format string for <span class="function">strftime</span> to represent time.</td>
    </tr>

    <tr>
     <td>T_FMT_AMPM</td>
     <td>String that can be used as the format string for <span class="function">strftime</span> to represent time in 12-hour format with ante/post meridian.</td>
    </tr>

    <tr>
     <td>ERA</td>
     <td>Alternate era.</td>
    </tr>

    <tr>
     <td>ERA_YEAR</td>
     <td>Year in alternate era format.</td>
    </tr>

    <tr>
     <td>ERA_D_T_FMT</td>
     <td>Date and time in alternate era format (string can be used in <span class="function">strftime</span>).</td>
    </tr>

    <tr>
     <td>ERA_D_FMT</td>
     <td>Date in alternate era format (string can be used in <span class="function">strftime</span>).</td>
    </tr>

    <tr>
     <td>ERA_T_FMT</td>
     <td>Time in alternate era format (string can be used in <span class="function">strftime</span>).</td>
    </tr>

    <tr>
     <td colspan="2" style="text-align: center;"><em>LC_MONETARY Category Constants</em></td>
    </tr>

    <tr>
     <td>INT_CURR_SYMBOL</td>
     <td>International currency symbol.</td>
    </tr>

    <tr>
     <td>CURRENCY_SYMBOL</td>
     <td>Local currency symbol.</td>
    </tr>

    <tr>
     <td>CRNCYSTR</td>
     <td>Same value as CURRENCY_SYMBOL.</td>
    </tr>

    <tr>
     <td>MON_DECIMAL_POINT</td>
     <td>Decimal point character.</td>
    </tr>

    <tr>
     <td>MON_THOUSANDS_SEP</td>
     <td>Thousands separator (groups of three digits).</td>
    </tr>

    <tr>
     <td>MON_GROUPING</td>
     <td>Like &#039;grouping&#039; element.</td>
    </tr>

    <tr>
     <td>POSITIVE_SIGN</td>
     <td>Sign for positive values.</td>
    </tr>

    <tr>
     <td>NEGATIVE_SIGN</td>
     <td>Sign for negative values.</td>
    </tr>

    <tr>
     <td>INT_FRAC_DIGITS</td>
     <td>International fractional digits.</td>
    </tr>

    <tr>
     <td>FRAC_DIGITS</td>
     <td>Local fractional digits.</td>
    </tr>

    <tr>
     <td>P_CS_PRECEDES</td>
     <td>Returns 1 if CURRENCY_SYMBOL precedes a positive value.</td>
    </tr>

    <tr>
     <td>P_SEP_BY_SPACE</td>
     <td>Returns 1 if a space separates CURRENCY_SYMBOL from a positive value.</td>
    </tr>

    <tr>
     <td>N_CS_PRECEDES</td>
     <td>Returns 1 if CURRENCY_SYMBOL precedes a negative value.</td>
    </tr>

    <tr>
     <td>N_SEP_BY_SPACE</td>
     <td>Returns 1 if a space separates CURRENCY_SYMBOL from a negative value.</td>
    </tr>

    <tr>
     <td>P_SIGN_POSN</td>
     <td rowspan="2" style="vertical-align: middle;">
      <ul class="itemizedlist">
       <li class="listitem">
        <span class="simpara">
          Returns 0 if parentheses surround the quantity and currency_symbol.
        </span>
       </li>
       <li class="listitem">
        <span class="simpara">
         Returns 1 if the sign string precedes the quantity and currency_symbol.
        </span>
       </li>
       <li class="listitem">
        <span class="simpara">
         Returns 2 if the sign string follows the quantity and currency_symbol.
        </span>
       </li>
       <li class="listitem">
        <span class="simpara">
         Returns 3 if the sign string immediately precedes the currency_symbol.
        </span>
       </li>
       <li class="listitem">
        <span class="simpara">
         Returns 4 if the sign string immediately follows the currency_symbol.
        </span>
       </li>
      </ul>
     </td>
    </tr>

    <tr>
     <td>N_SIGN_POSN</td>
    </tr>

    <tr>
     <td colspan="2" style="text-align: center;"><em>LC_NUMERIC Category Constants</em></td>
    </tr>

    <tr>
     <td>DECIMAL_POINT</td>
     <td>Decimal point character.</td>
    </tr>

    <tr>
     <td>RADIXCHAR</td>
     <td>Same value as DECIMAL_POINT.</td>
    </tr>

    <tr>
     <td>THOUSANDS_SEP</td>
     <td>Separator character for thousands (groups of three digits).</td>
    </tr>

    <tr>
     <td>THOUSEP</td>
     <td>Same value as THOUSANDS_SEP.</td>
    </tr>

    <tr>
     <td>GROUPING</td>
     <td></td>
    </tr>

    <tr>
     <td colspan="2" style="text-align: center;"><em>LC_MESSAGES Category Constants</em></td>
    </tr>

    <tr>
     <td>YESEXPR</td>
     <td>Regex string for matching &#039;yes&#039; input.</td>
    </tr>

    <tr>
     <td>NOEXPR</td>
     <td>Regex string for matching &#039;no&#039; input.</td>
    </tr>

    <tr>
     <td>YESSTR</td>
     <td>Output string for &#039;yes&#039;.</td>
    </tr>

    <tr>
     <td>NOSTR</td>
     <td>Output string for &#039;no&#039;.</td>
    </tr>

    <tr>
     <td colspan="2" style="text-align: center;"><em>LC_CTYPE Category Constants</em></td>
    </tr>

    <tr>
     <td>CODESET</td>
     <td>Return a string with the name of the character encoding.</td>
    </tr>

   </tbody>
  
 </table>

</div>