reference/intl/numberformatter/parse-currency.xml
1976eae0d815797af97a1e16c5cd90ffc2868395
...
...
@@ -12,27 +12,24 @@
12
12
<para>
13
13
&style.oop;
14
14
</para>
15
-
<methodsynopsis>
16
-
<modifier>public</modifier>
17
-
<type>float</type>
18
-
<methodname>NumberFormatter::parseCurrency</methodname>
19
-
<methodparam><type>string</type><parameter>value</parameter></methodparam>
15
+
<methodsynopsis role="NumberFormatter">
16
+
<modifier>public</modifier> <type class="union"><type>float</type><type>false</type></type><methodname>NumberFormatter::parseCurrency</methodname>
17
+
<methodparam><type>string</type><parameter>string</parameter></methodparam>
20
18
<methodparam><type>string</type><parameter role="reference">currency</parameter></methodparam>
21
-
<methodparam choice="opt"><type>int</type><parameter role="reference">position</parameter></methodparam>
19
+
<methodparam choice="opt"><type>int</type><parameter role="reference">offset</parameter><initializer>&null;</initializer></methodparam>
22
20
</methodsynopsis>
23
21
<para>
24
22
&style.procedural;
25
23
</para>
26
24
<methodsynopsis>
27
-
<type>float</type>
28
-
<methodname>numfmt_parse_currency</methodname>
29
-
<methodparam><type>NumberFormatter</type><parameter>fmt</parameter></methodparam>
30
-
<methodparam><type>string</type><parameter>value</parameter></methodparam>
25
+
<type class="union"><type>float</type><type>false</type></type><methodname>numfmt_parse_currency</methodname>
26
+
<methodparam><type>NumberFormatter</type><parameter>formatter</parameter></methodparam>
27
+
<methodparam><type>string</type><parameter>string</parameter></methodparam>
31
28
<methodparam><type>string</type><parameter role="reference">currency</parameter></methodparam>
32
-
<methodparam choice="opt"><type>int</type><parameter role="reference">position</parameter></methodparam>
29
+
<methodparam choice="opt"><type>int</type><parameter role="reference">offset</parameter><initializer>&null;</initializer></methodparam>
33
30
</methodsynopsis>
34
31
<para>
35
-
Parse a string into a double and a currency using the current formatter.
32
+
Parse a string into a float and a currency using the current formatter.
36
33
</para>
37
34
</refsect1>
38
35

...
...
@@ -41,7 +38,7 @@
41
38
<para>
42
39
<variablelist>
43
40
<varlistentry>
44
-
<term><parameter>fmt</parameter></term>
41
+
<term><parameter>formatter</parameter></term>
45
42
<listitem>
46
43
<para>
47
44
<classname>NumberFormatter</classname> object.
...
...
@@ -58,7 +55,7 @@
58
55
</listitem>
59
56
</varlistentry>
60
57
<varlistentry>
61
-
<term><parameter>position</parameter></term>
58
+
<term><parameter>offset</parameter></term>
62
59
<listitem>
63
60
<para>
64
61
Offset in the string at which to begin parsing. On return, this value
...
...
@@ -123,7 +120,6 @@ We have 1234567.89 in USD
123
120
</para>
124
121
</refsect1>
125
122
</refentry>
126
-

127
123
<!-- Keep this comment at the end of the file
128
124
Local variables:
129
125
mode: sgml
130
126