nicobn Mon Aug 20 04:29:02 2007 UTC
Modified files:
/phpdoc/en/reference/unicode/functions unicode-set-error-mode.xml
Log:
- Added note that STOP is the default mode
- Small corrections
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/unicode/functions/unicode-set-error-mode.xml?r1=1.2&r2=1.3&diff_format=u
Index: phpdoc/en/reference/unicode/functions/unicode-set-error-mode.xml
diff -u phpdoc/en/reference/unicode/functions/unicode-set-error-mode.xml:1.2
phpdoc/en/reference/unicode/functions/unicode-set-error-mode.xml:1.3
--- phpdoc/en/reference/unicode/functions/unicode-set-error-mode.xml:1.2
Sun Aug 19 23:52:34 2007
+++ phpdoc/en/reference/unicode/functions/unicode-set-error-mode.xml Mon Aug
20 04:29:02 2007
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<refentry xmlns="http://docbook.org/ns/docbook"
xml:id="function.unicode-set-error-mode">
<refnamediv>
<refname>unicode_set_error_mode</refname>
- <refpurpose>Set the error mode for Unicode conversions</refpurpose>
+ <refpurpose>Set the error mode for strings conversions</refpurpose>
</refnamediv>
<refsect1 role="description">
@@ -14,9 +14,10 @@
<methodparam><type>int</type><parameter>mode</parameter></methodparam>
</methodsynopsis>
<para>
- This function sets the error mode for string conversions. An error can occur
- during conversion when an illegal character is encountered or if a character
- cannot be represented into the new encoding.
+ This function sets the error mode for string conversions between different
+ encodings. An error can occur during conversion when an illegal character
+ is encountered or if a character cannot be represented into the new
encoding.
+ By default, when an error is encountered, the conversion stops.
</para>
</refsect1>
@@ -30,11 +31,10 @@
<para>
The <parameter>direction</parameter> sets the conversion direction to
which the error mode will apply. This can either be
- <constant>FROM_UNICODE</constant>, which will set
- the error mode for conversions from a <type>unicode</type> string to a
- binary string in another encoding or <constant>TO_UNICODE</constant>,
- which will set the error mode for conversions from a binary string to
an
- <type>unicode</type> string.
+ <constant>FROM_UNICODE</constant>, which will set the error mode for
+ conversions from a <type>unicode</type> string to a binary string
+ or <constant>TO_UNICODE</constant>, which will set the error mode
+ for conversions from a binary string to a <type>unicode</type> string.
</para>
</listitem>
</varlistentry>
@@ -61,7 +61,7 @@
<constant>U_CONV_ERROR_STOP</constant>
</entry>
<entry>
- Stop the conversion.
+ Stop the conversion. This is the default mode.
</entry>
</row>
<row>