reference/intl/numberformatter/create.xml
1976eae0d815797af97a1e16c5cd90ffc2868395
...
...
@@ -13,35 +13,30 @@
13
13
<para>
14
14
&style.oop; (method)
15
15
</para>
16
-
<methodsynopsis>
17
-
<modifier>public</modifier>
18
-
<modifier>static</modifier>
19
-
<type>NumberFormatter</type>
20
-
<methodname>NumberFormatter::create</methodname>
16
+
<methodsynopsis role="NumberFormatter">
17
+
<modifier>public</modifier> <modifier>static</modifier> <type class="union"><type>NumberFormatter</type><type>null</type></type><methodname>NumberFormatter::create</methodname>
21
18
<methodparam><type>string</type><parameter>locale</parameter></methodparam>
22
19
<methodparam><type>int</type><parameter>style</parameter></methodparam>
23
-
<methodparam choice="opt"><type>string</type><parameter>pattern</parameter></methodparam>
20
+
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>pattern</parameter><initializer>&null;</initializer></methodparam>
24
21
</methodsynopsis>
25
22
<para>
26
23
&style.procedural;
27
24
</para>
28
25
<methodsynopsis>
29
-
<type>NumberFormatter</type>
30
-
<methodname>numfmt_create</methodname>
26
+
<type class="union"><type>NumberFormatter</type><type>null</type></type><methodname>numfmt_create</methodname>
31
27
<methodparam><type>string</type><parameter>locale</parameter></methodparam>
32
28
<methodparam><type>int</type><parameter>style</parameter></methodparam>
33
-
<methodparam choice="opt"><type>string</type><parameter>pattern</parameter></methodparam>
29
+
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>pattern</parameter><initializer>&null;</initializer></methodparam>
34
30
</methodsynopsis>
35
31
<para>
36
32
&style.oop; (constructor):
37
33
</para>
38
-
<constructorsynopsis>
39
-
<modifier>public</modifier>
40
-
<methodname>NumberFormatter::__construct</methodname>
41
-
<methodparam><type>string</type><parameter>locale</parameter></methodparam>
42
-
<methodparam><type>int</type><parameter>style</parameter></methodparam>
43
-
<methodparam choice="opt"><type>string</type><parameter>pattern</parameter></methodparam>
44
-
</constructorsynopsis>
34
+
<constructorsynopsis role="NumberFormatter">
35
+
<modifier>public</modifier> <methodname>NumberFormatter::__construct</methodname>
36
+
<methodparam><type>string</type><parameter>locale</parameter></methodparam>
37
+
<methodparam><type>int</type><parameter>style</parameter></methodparam>
38
+
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>pattern</parameter><initializer>&null;</initializer></methodparam>
39
+
</constructorsynopsis>
45
40
<para>
46
41
Creates a number formatter.
47
42
</para>
...
...
@@ -93,10 +88,32 @@
93
88
<refsect1 role="returnvalues">
94
89
&reftitle.returnvalues;
95
90
<para>
96
-
Returns <classname>NumberFormatter</classname> object or &false; on error.
91
+
Returns <classname>NumberFormatter</classname> object or &null; on error.
97
92
</para>
98
93
</refsect1>
99
94

95
+
<refsect1 role="changelog">
96
+
&reftitle.changelog;
97
+
<informaltable>
98
+
<tgroup cols="2">
99
+
<thead>
100
+
<row>
101
+
<entry>&Version;</entry>
102
+
<entry>&Description;</entry>
103
+
</row>
104
+
</thead>
105
+
<tbody>
106
+
<row>
107
+
<entry>8.0.0</entry>
108
+
<entry>
109
+
<parameter>pattern</parameter> is nullable now.
110
+
</entry>
111
+
</row>
112
+
</tbody>
113
+
</tgroup>
114
+
</informaltable>
115
+
</refsect1>
116
+

100
117
<refsect1 role="examples">
101
118
&reftitle.examples;
102
119
<example>
...
...
@@ -144,7 +161,6 @@ millicentoquarantadue
144
161
</para>
145
162
</refsect1>
146
163
</refentry>
147
-

148
164
<!-- Keep this comment at the end of the file
149
165
Local variables:
150
166
mode: sgml
151
167