cvs: phpdoc /en/reference/intl/functions grapheme-extract.xml grapheme-stripos.xml grapheme-stristr.xml grapheme-strlen.xml grapheme-strpos.xml
grapheme-strripos.xml grapheme-strrpos.xml grapheme-strstr.xml grapheme-substr.xml
| From: | Felipe Pena | Date: | Wed, 06 Aug 2008 18:05:59 +0000 |
| Subject: | cvs: phpdoc /en/reference/intl/functions grapheme-extract.xml grapheme-stripos.xml grapheme-stristr.xml grapheme-strlen.xml grapheme-strpos.xml grapheme-strripos.xml grapheme-strrpos.xml grapheme-strstr.xml grapheme-substr.xml |
||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-1993@lists.php.net to get a copy of this message | ||
felipe Wed Aug 6 18:05:59 2008 UTC
Modified files:
/phpdoc/en/reference/intl/functions grapheme-extract.xml
grapheme-stripos.xml
grapheme-stristr.xml
grapheme-strlen.xml
grapheme-strpos.xml
grapheme-strripos.xml
grapheme-strrpos.xml
grapheme-strstr.xml
grapheme-substr.xml
Log:
- Fixed WS and examples (< ?php)
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/functions/grapheme-extract.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc/en/reference/intl/functions/grapheme-extract.xml diff -u phpdoc/en/reference/intl/functions/grapheme-extract.xml:1.4 phpdoc/en/reference/intl/functions/grapheme-extract.xml:1.5 --- phpdoc/en/reference/intl/functions/grapheme-extract.xml:1.4 Tue May 20 01:31:37 2008 +++ phpdoc/en/reference/intl/functions/grapheme-extract.xml Wed Aug 6 18:05:59 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry xml:id="function.grapheme-extract" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>grapheme_extract</refname> @@ -29,7 +29,7 @@ <term><parameter>haystack</parameter></term> <listitem> <para> - String to search. + String to search. </para> </listitem> </varlistentry> @@ -37,7 +37,7 @@ <term><parameter>size</parameter></term> <listitem> <para> - Maximum number items - based on the $extract_type - to return. + Maximum number items - based on the $extract_type - to return. </para> </listitem> </varlistentry> @@ -63,10 +63,10 @@ <term><parameter>start</parameter></term> <listitem> <para> - Starting position in $haystack in bytes - if given, it must be zero or a - positive value that is less than or equal to the length of $haystack in - bytes. The default is zero. If $start does not point to the first byte of a UTF-8 - character, the start position is moved to the next character boundary. + Starting position in $haystack in bytes - if given, it must be zero or a + positive value that is less than or equal to the length of $haystack in + bytes. The default is zero. If $start does not point to the first byte of a UTF-8 + character, the start position is moved to the next character boundary. </para> </listitem> </varlistentry> @@ -74,8 +74,8 @@ <term><parameter>next</parameter></term> <listitem> <para> - Reference to a value that will be set to the next starting position. - When the call returns, this may point to the first byte position past the end of the string. + Reference to a value that will be set to the next starting position. + When the call returns, this may point to the first byte position past the end of the string. </para> </listitem> </varlistentry> @@ -95,11 +95,11 @@ <refsect1 role="examples"> &reftitle.examples; - <example> - <title><function>grapheme_extract</function> example</title> - <programlisting role="php"> + <example> + <title><function>grapheme_extract</function> example</title> + <programlisting role="php"> <![CDATA[ -< ?php +<?php $char_a_ring_nfd = "a\xCC\x8A"; // 'LATIN SMALL LETTER A WITH RING ABOVE' (U+00E5) normalization form "D" $char_o_diaeresis_nfd = "o\xCC\x88"; // 'LATIN SMALL LETTER O WITH DIAERESIS' (U+00F6) normalization form "D" @@ -108,14 +108,14 @@ ?> ]]> - </programlisting> - </example> - &example.outputs; - <screen> - <![CDATA[ + </programlisting> + </example> + &example.outputs; + <screen> +<![CDATA[ o%CC%88 ]]> - </screen> + </screen> </refsect1> <refsect1 role="seealso"> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/functions/grapheme-stripos.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/intl/functions/grapheme-stripos.xml diff -u phpdoc/en/reference/intl/functions/grapheme-stripos.xml:1.2 phpdoc/en/reference/intl/functions/grapheme-stripos.xml:1.3 --- phpdoc/en/reference/intl/functions/grapheme-stripos.xml:1.2 Fri Apr 18 17:04:49 2008 +++ phpdoc/en/reference/intl/functions/grapheme-stripos.xml Wed Aug 6 18:05:59 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry xml:id="function.grapheme-stripos" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>grapheme_stripos</refname> @@ -27,7 +27,7 @@ <term><parameter>haystack</parameter></term> <listitem> <para> - The string to look in. Must be valid UTF-8. + The string to look in. Must be valid UTF-8. </para> </listitem> </varlistentry> @@ -35,7 +35,7 @@ <term><parameter>needle</parameter></term> <listitem> <para> - The string to look for. Must be valid UTF-8. + The string to look for. Must be valid UTF-8. </para> </listitem> </varlistentry> @@ -43,10 +43,10 @@ <term><parameter>offset</parameter></term> <listitem> <para> - The optional $offset parameter allows you to specify where in haystack to - start searching as an offset in grapheme units (not bytes or characters). If not given, the default is zero. - The position returned is still relative to the beginning of haystack - regardless of the value of $offset. + The optional $offset parameter allows you to specify where in haystack to + start searching as an offset in grapheme units (not bytes or characters). If not given, the default is zero. + The position returned is still relative to the beginning of haystack + regardless of the value of $offset. </para> </listitem> </varlistentry> @@ -64,11 +64,11 @@ <refsect1 role="examples"> &reftitle.examples; - <example> - <title><function>grapheme_stripos</function> example</title> - <programlisting role="php"> + <example> + <title><function>grapheme_stripos</function> example</title> + <programlisting role="php"> <![CDATA[ -< ?php +<?php $char_a_ring_nfd = "a\xCC\x8A"; // 'LATIN SMALL LETTER A WITH RING ABOVE' (U+00E5) normalization form "D" $char_o_diaeresis_nfd = "o\xCC\x88"; // 'LATIN SMALL LETTER O WITH DIAERESIS' (U+00F6) normalization form "D" @@ -78,14 +78,14 @@ ?> ]]> - </programlisting> - </example> - &example.outputs; - <screen> - <![CDATA[ + </programlisting> + </example> + &example.outputs; + <screen> +<![CDATA[ 2 ]]> - </screen> + </screen> </refsect1> <refsect1 role="seealso"> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/functions/grapheme-stristr.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/intl/functions/grapheme-stristr.xml diff -u phpdoc/en/reference/intl/functions/grapheme-stristr.xml:1.2 phpdoc/en/reference/intl/functions/grapheme-stristr.xml:1.3 --- phpdoc/en/reference/intl/functions/grapheme-stristr.xml:1.2 Fri Apr 18 17:04:49 2008 +++ phpdoc/en/reference/intl/functions/grapheme-stristr.xml Wed Aug 6 18:05:59 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry xml:id="function.grapheme-stristr" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>grapheme_stristr</refname> @@ -27,7 +27,7 @@ <term><parameter>haystack</parameter></term> <listitem> <para> - The input string. Must be valid UTF-8. + The input string. Must be valid UTF-8. </para> </listitem> </varlistentry> @@ -35,7 +35,7 @@ <term><parameter>needle</parameter></term> <listitem> <para> - The string to look for. Must be valid UTF-8. + The string to look for. Must be valid UTF-8. </para> </listitem> </varlistentry> @@ -43,8 +43,8 @@ <term><parameter>before_needle</parameter></term> <listitem> <para> - If TRUE (the default is FALSE), grapheme_strstr() returns the part of the - haystack before the first occurence of the needle. + If TRUE (the default is FALSE), grapheme_strstr() returns the part of the + haystack before the first occurence of the needle. </para> </listitem> </varlistentry> @@ -62,11 +62,11 @@ <refsect1 role="examples"> &reftitle.examples; - <example> - <title><function>grapheme_stristr</function> example</title> - <programlisting role="php"> + <example> + <title><function>grapheme_stristr</function> example</title> + <programlisting role="php"> <![CDATA[ -< ?php +<?php $char_a_ring_nfd = "a\xCC\x8A"; // 'LATIN SMALL LETTER A WITH RING ABOVE' (U+00E5) normalization form "D" $char_o_diaeresis_nfd = "o\xCC\x88"; // 'LATIN SMALL LETTER O WITH DIAERESIS' (U+00F6) normalization form "D" @@ -76,14 +76,14 @@ ?> ]]> - </programlisting> - </example> - &example.outputs; - <screen> - <![CDATA[ + </programlisting> + </example> + &example.outputs; + <screen> +<![CDATA[ o%CC%88a%CC%8A ]]> - </screen> + </screen> </refsect1> <refsect1 role="seealso"> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/functions/grapheme-strlen.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/intl/functions/grapheme-strlen.xml diff -u phpdoc/en/reference/intl/functions/grapheme-strlen.xml:1.2 phpdoc/en/reference/intl/functions/grapheme-strlen.xml:1.3 --- phpdoc/en/reference/intl/functions/grapheme-strlen.xml:1.2 Fri Apr 18 17:04:49 2008 +++ phpdoc/en/reference/intl/functions/grapheme-strlen.xml Wed Aug 6 18:05:59 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry xml:id="function.grapheme-strlen" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>grapheme_strlen</refname> @@ -25,7 +25,7 @@ <term><parameter>input</parameter></term> <listitem> <para> - The string being measured for length. It must be a valid UTF-8 string. + The string being measured for length. It must be a valid UTF-8 string. </para> </listitem> </varlistentry> @@ -43,11 +43,11 @@ <refsect1 role="examples"> &reftitle.examples; - <example> - <title><function>grapheme_strlen</function> example</title> - <programlisting role="php"> + <example> + <title><function>grapheme_strlen</function> example</title> + <programlisting role="php"> <![CDATA[ -< ?php +<?php $char_a_ring_nfd = "a\xCC\x8A"; // 'LATIN SMALL LETTER A WITH RING ABOVE' (U+00E5) normalization form "D" $char_o_diaeresis_nfd = "o\xCC\x88"; // 'LATIN SMALL LETTER O WITH DIAERESIS' (U+00F6) normalization form "D" @@ -56,14 +56,14 @@ ?> ]]> - </programlisting> - </example> - &example.outputs; - <screen> - <![CDATA[ + </programlisting> + </example> + &example.outputs; + <screen> +<![CDATA[ 6 ]]> - </screen> + </screen> </refsect1> <refsect1 role="seealso"> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/functions/grapheme-strpos.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/intl/functions/grapheme-strpos.xml diff -u phpdoc/en/reference/intl/functions/grapheme-strpos.xml:1.2 phpdoc/en/reference/intl/functions/grapheme-strpos.xml:1.3 --- phpdoc/en/reference/intl/functions/grapheme-strpos.xml:1.2 Fri Apr 18 17:04:49 2008 +++ phpdoc/en/reference/intl/functions/grapheme-strpos.xml Wed Aug 6 18:05:59 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry xml:id="function.grapheme-strpos" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>grapheme_strpos</refname> @@ -27,7 +27,7 @@ <term><parameter>haystack</parameter></term> <listitem> <para> - The string to look in. Must be valid UTF-8. + The string to look in. Must be valid UTF-8. </para> </listitem> </varlistentry> @@ -35,7 +35,7 @@ <term><parameter>needle</parameter></term> <listitem> <para> - The string to look for. Must be valid UTF-8. + The string to look for. Must be valid UTF-8. </para> </listitem> </varlistentry> @@ -43,10 +43,10 @@ <term><parameter>offset</parameter></term> <listitem> <para> - The optional $offset parameter allows you to specify where in $haystack to - start searching as an offset in grapheme units (not bytes or characters). If not given, the default is zero. - The position returned is still relative to the beginning of haystack - regardless of the value of $offset. + The optional $offset parameter allows you to specify where in $haystack to + start searching as an offset in grapheme units (not bytes or characters). If not given, the default is zero. + The position returned is still relative to the beginning of haystack + regardless of the value of $offset. </para> </listitem> </varlistentry> @@ -64,11 +64,11 @@ <refsect1 role="examples"> &reftitle.examples; - <example> - <title><function>grapheme_strpos</function> example</title> - <programlisting role="php"> + <example> + <title><function>grapheme_strpos</function> example</title> + <programlisting role="php"> <![CDATA[ -< ?php +<?php $char_a_ring_nfd = "a\xCC\x8A"; // 'LATIN SMALL LETTER A WITH RING ABOVE' (U+00E5) normalization form "D" $char_o_diaeresis_nfd = "o\xCC\x88"; // 'LATIN SMALL LETTER O WITH DIAERESIS' (U+00F6) normalization form "D" @@ -77,14 +77,14 @@ ?> ]]> - </programlisting> - </example> - &example.outputs; - <screen> - <![CDATA[ + </programlisting> + </example> + &example.outputs; + <screen> +<![CDATA[ 2 ]]> - </screen> + </screen> </refsect1> <refsect1 role="seealso"> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/functions/grapheme-strripos.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/intl/functions/grapheme-strripos.xml diff -u phpdoc/en/reference/intl/functions/grapheme-strripos.xml:1.2 phpdoc/en/reference/intl/functions/grapheme-strripos.xml:1.3 --- phpdoc/en/reference/intl/functions/grapheme-strripos.xml:1.2 Fri Apr 18 17:04:49 2008 +++ phpdoc/en/reference/intl/functions/grapheme-strripos.xml Wed Aug 6 18:05:59 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry xml:id="function.grapheme-strripos" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>grapheme_strripos</refname> @@ -27,7 +27,7 @@ <term><parameter>haystack</parameter></term> <listitem> <para> - The string to look in. Must be valid UTF-8. + The string to look in. Must be valid UTF-8. </para> </listitem> </varlistentry> @@ -35,7 +35,7 @@ <term><parameter>needle</parameter></term> <listitem> <para> - The string to look for. Must be valid UTF-8. + The string to look for. Must be valid UTF-8. </para> </listitem> </varlistentry> @@ -43,10 +43,10 @@ <term><parameter>offset</parameter></term> <listitem> <para> - The optional $offset parameter allows you to specify where in $haystack to - start searching as an offset in grapheme units (not bytes or characters). If not given, the default is zero. - The position returned is still relative to the beginning of haystack - regardless of the value of $offset. + The optional $offset parameter allows you to specify where in $haystack to + start searching as an offset in grapheme units (not bytes or characters). If not given, the default is zero. + The position returned is still relative to the beginning of haystack + regardless of the value of $offset. </para> </listitem> </varlistentry> @@ -64,11 +64,11 @@ <refsect1 role="examples"> &reftitle.examples; - <example> - <title><function>grapheme_strripos</function> example</title> - <programlisting role="php"> + <example> + <title><function>grapheme_strripos</function> example</title> + <programlisting role="php"> <![CDATA[ -< ?php +<?php $char_a_ring_nfd = "a\xCC\x8A"; // 'LATIN SMALL LETTER A WITH RING ABOVE' (U+00E5) normalization form "D" $char_o_diaeresis_nfd = "o\xCC\x88"; // 'LATIN SMALL LETTER O WITH DIAERESIS' (U+00F6) normalization form "D" @@ -78,14 +78,14 @@ ?> ]]> - </programlisting> - </example> - &example.outputs; - <screen> - <![CDATA[ + </programlisting> + </example> + &example.outputs; + <screen> +<![CDATA[ 2 ]]> - </screen> + </screen> </refsect1> <refsect1 role="seealso"> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/functions/grapheme-strrpos.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/intl/functions/grapheme-strrpos.xml diff -u phpdoc/en/reference/intl/functions/grapheme-strrpos.xml:1.2 phpdoc/en/reference/intl/functions/grapheme-strrpos.xml:1.3 --- phpdoc/en/reference/intl/functions/grapheme-strrpos.xml:1.2 Fri Apr 18 17:04:49 2008 +++ phpdoc/en/reference/intl/functions/grapheme-strrpos.xml Wed Aug 6 18:05:59 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry xml:id="function.grapheme-strrpos" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>grapheme_strrpos</refname> @@ -27,7 +27,7 @@ <term><parameter>haystack</parameter></term> <listitem> <para> - The string to look in. Must be valid UTF-8. + The string to look in. Must be valid UTF-8. </para> </listitem> </varlistentry> @@ -35,7 +35,7 @@ <term><parameter>needle</parameter></term> <listitem> <para> - The string to look for. Must be valid UTF-8. + The string to look for. Must be valid UTF-8. </para> </listitem> </varlistentry> @@ -43,10 +43,10 @@ <term><parameter>offset</parameter></term> <listitem> <para> - The optional $offset parameter allows you to specify where in $haystack to - start searching as an offset in grapheme units (not bytes or characters). If not given, the default is zero. - The position returned is still relative to the beginning of haystack - regardless of the value of $offset. + The optional $offset parameter allows you to specify where in $haystack to + start searching as an offset in grapheme units (not bytes or characters). If not given, the default is zero. + The position returned is still relative to the beginning of haystack + regardless of the value of $offset. </para> </listitem> </varlistentry> @@ -64,9 +64,9 @@ <refsect1 role="examples"> &reftitle.examples; - <example> - <title><function>grapheme_strrpos</function> example</title> - <programlisting role="php"> + <example> + <title><function>grapheme_strrpos</function> example</title> + <programlisting role="php"> <![CDATA[ < ?php @@ -77,14 +77,14 @@ ?> ]]> - </programlisting> - </example> - &example.outputs; - <screen> - <![CDATA[ + </programlisting> + </example> + &example.outputs; + <screen> +<![CDATA[ 2 ]]> - </screen> + </screen> </refsect1> <refsect1 role="seealso"> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/functions/grapheme-strstr.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/intl/functions/grapheme-strstr.xml diff -u phpdoc/en/reference/intl/functions/grapheme-strstr.xml:1.2 phpdoc/en/reference/intl/functions/grapheme-strstr.xml:1.3 --- phpdoc/en/reference/intl/functions/grapheme-strstr.xml:1.2 Fri Apr 18 17:04:49 2008 +++ phpdoc/en/reference/intl/functions/grapheme-strstr.xml Wed Aug 6 18:05:59 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry xml:id="function.grapheme-strstr" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>grapheme_strstr</refname> @@ -27,7 +27,7 @@ <term><parameter>haystack</parameter></term> <listitem> <para> - The input string. Must be valid UTF-8. + The input string. Must be valid UTF-8. </para> </listitem> </varlistentry> @@ -35,7 +35,7 @@ <term><parameter>needle</parameter></term> <listitem> <para> - The string to look for. Must be valid UTF-8. + The string to look for. Must be valid UTF-8. </para> </listitem> </varlistentry> @@ -43,8 +43,8 @@ <term><parameter>before_needle</parameter></term> <listitem> <para> - If TRUE (the default is FALSE), grapheme_strstr() returns the part of the - haystack before the first occurence of the needle. + If TRUE (the default is FALSE), grapheme_strstr() returns the part of the + haystack before the first occurence of the needle. </para> </listitem> </varlistentry> @@ -62,11 +62,11 @@ <refsect1 role="examples"> &reftitle.examples; - <example> - <title><function>grapheme_strstr</function> example</title> - <programlisting role="php"> + <example> + <title><function>grapheme_strstr</function> example</title> + <programlisting role="php"> <![CDATA[ -< ?php +<?php $char_a_ring_nfd = "a\xCC\x8A"; // 'LATIN SMALL LETTER A WITH RING ABOVE' (U+00E5) normalization form "D" $char_o_diaeresis_nfd = "o\xCC\x88"; // 'LATIN SMALL LETTER O WITH DIAERESIS' (U+00F6) normalization form "D" @@ -75,14 +75,14 @@ ?> ]]> - </programlisting> - </example> - &example.outputs; - <screen> - <![CDATA[ + </programlisting> + </example> + &example.outputs; + <screen> +<![CDATA[ o%CC%88a%CC%8A ]]> - </screen> + </screen> </refsect1> <refsect1 role="seealso"> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/functions/grapheme-substr.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc/en/reference/intl/functions/grapheme-substr.xml diff -u phpdoc/en/reference/intl/functions/grapheme-substr.xml:1.3 phpdoc/en/reference/intl/functions/grapheme-substr.xml:1.4 --- phpdoc/en/reference/intl/functions/grapheme-substr.xml:1.3 Mon Apr 21 16:52:31 2008 +++ phpdoc/en/reference/intl/functions/grapheme-substr.xml Wed Aug 6 18:05:59 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry xml:id="function.grapheme-substr" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>grapheme_substr</refname> @@ -27,7 +27,7 @@ <term><parameter>string</parameter></term> <listitem> <para> - The input string. Must be valid UTF-8. + The input string. Must be valid UTF-8. </para> </listitem> </varlistentry> @@ -35,11 +35,11 @@ <term><parameter>start</parameter></term> <listitem> <para> - Start position in default grapheme units. - If $start is non-negative, the returned string will start at the - $start'th position in $string, counting from zero. If $start is negative, - the returned string will start at the $start'th grapheme unit from the - end of string. + Start position in default grapheme units. + If $start is non-negative, the returned string will start at the + $start'th position in $string, counting from zero. If $start is negative, + the returned string will start at the $start'th grapheme unit from the + end of string. </para> </listitem> </varlistentry> @@ -47,14 +47,14 @@ <term><parameter>length</parameter></term> <listitem> <para> - Length in grapheme units. - If $length is given and is positive, the string returned will contain - at most $length grapheme units beginning from $start (depending on the - length of string). If $string is less than or equal to $start grapheme - units long, FALSE will be returned. If $length is given and is negative, then - that many grapheme units will be omitted from the end of string (after the - start position has been calculated when a start is negative). If $start - denotes a position beyond this truncation, an empty string will be returned. + Length in grapheme units. + If $length is given and is positive, the string returned will contain + at most $length grapheme units beginning from $start (depending on the + length of string). If $string is less than or equal to $start grapheme + units long, FALSE will be returned. If $length is given and is negative, then + that many grapheme units will be omitted from the end of string (after the + start position has been calculated when a start is negative). If $start + denotes a position beyond this truncation, an empty string will be returned. </para> </listitem> </varlistentry> @@ -72,11 +72,11 @@ <refsect1 role="examples"> &reftitle.examples; - <example> - <title><function>grapheme_substr</function> example</title> - <programlisting role="php"> + <example> + <title><function>grapheme_substr</function> example</title> + <programlisting role="php"> <![CDATA[ -< ?php +<?php $char_a_ring_nfd = "a\xCC\x8A"; // 'LATIN SMALL LETTER A WITH RING ABOVE' (U+00E5) normalization form "D" $char_o_diaeresis_nfd = "o\xCC\x88"; // 'LATIN SMALL LETTER O WITH DIAERESIS' (U+00F6) normalization form "D" @@ -84,14 +84,14 @@ print urlencode(grapheme_substr( "ao" . $char_a_ring_nfd . "bc" . $char_o_diaeresis_nfd . "O", 2, -1 )); ?> ]]> - </programlisting> - </example> - &example.outputs; - <screen> - <![CDATA[ + </programlisting> + </example> + &example.outputs; + <screen> +<![CDATA[ a%CC%8Abco%CC%88 ]]> - </screen> + </screen> </refsect1> <refsect1 role="seealso">
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/functions/grapheme-extract.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc/en/reference/intl/functions/grapheme-extract.xml diff -u phpdoc/en/reference/intl/functions/grapheme-extract.xml:1.4 phpdoc/en/reference/intl/functions/grapheme-extract.xml:1.5 --- phpdoc/en/reference/intl/functions/grapheme-extract.xml:1.4 Tue May 20 01:31:37 2008 +++ phpdoc/en/reference/intl/functions/grapheme-extract.xml Wed Aug 6 18:05:59 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry xml:id="function.grapheme-extract" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>grapheme_extract</refname> @@ -29,7 +29,7 @@ <term><parameter>haystack</parameter></term> <listitem> <para> - String to search. + String to search. </para> </listitem> </varlistentry> @@ -37,7 +37,7 @@ <term><parameter>size</parameter></term> <listitem> <para> - Maximum number items - based on the $extract_type - to return. + Maximum number items - based on the $extract_type - to return. </para> </listitem> </varlistentry> @@ -63,10 +63,10 @@ <term><parameter>start</parameter></term> <listitem> <para> - Starting position in $haystack in bytes - if given, it must be zero or a - positive value that is less than or equal to the length of $haystack in - bytes. The default is zero. If $start does not point to the first byte of a UTF-8 - character, the start position is moved to the next character boundary. + Starting position in $haystack in bytes - if given, it must be zero or a + positive value that is less than or equal to the length of $haystack in + bytes. The default is zero. If $start does not point to the first byte of a UTF-8 + character, the start position is moved to the next character boundary. </para> </listitem> </varlistentry> @@ -74,8 +74,8 @@ <term><parameter>next</parameter></term> <listitem> <para> - Reference to a value that will be set to the next starting position. - When the call returns, this may point to the first byte position past the end of the string. + Reference to a value that will be set to the next starting position. + When the call returns, this may point to the first byte position past the end of the string. </para> </listitem> </varlistentry> @@ -95,11 +95,11 @@ <refsect1 role="examples"> &reftitle.examples; - <example> - <title><function>grapheme_extract</function> example</title> - <programlisting role="php"> + <example> + <title><function>grapheme_extract</function> example</title> + <programlisting role="php"> <![CDATA[ -< ?php +<?php $char_a_ring_nfd = "a\xCC\x8A"; // 'LATIN SMALL LETTER A WITH RING ABOVE' (U+00E5) normalization form "D" $char_o_diaeresis_nfd = "o\xCC\x88"; // 'LATIN SMALL LETTER O WITH DIAERESIS' (U+00F6) normalization form "D" @@ -108,14 +108,14 @@ ?> ]]> - </programlisting> - </example> - &example.outputs; - <screen> - <![CDATA[ + </programlisting> + </example> + &example.outputs; + <screen> +<![CDATA[ o%CC%88 ]]> - </screen> + </screen> </refsect1> <refsect1 role="seealso"> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/functions/grapheme-stripos.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/intl/functions/grapheme-stripos.xml diff -u phpdoc/en/reference/intl/functions/grapheme-stripos.xml:1.2 phpdoc/en/reference/intl/functions/grapheme-stripos.xml:1.3 --- phpdoc/en/reference/intl/functions/grapheme-stripos.xml:1.2 Fri Apr 18 17:04:49 2008 +++ phpdoc/en/reference/intl/functions/grapheme-stripos.xml Wed Aug 6 18:05:59 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry xml:id="function.grapheme-stripos" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>grapheme_stripos</refname> @@ -27,7 +27,7 @@ <term><parameter>haystack</parameter></term> <listitem> <para> - The string to look in. Must be valid UTF-8. + The string to look in. Must be valid UTF-8. </para> </listitem> </varlistentry> @@ -35,7 +35,7 @@ <term><parameter>needle</parameter></term> <listitem> <para> - The string to look for. Must be valid UTF-8. + The string to look for. Must be valid UTF-8. </para> </listitem> </varlistentry> @@ -43,10 +43,10 @@ <term><parameter>offset</parameter></term> <listitem> <para> - The optional $offset parameter allows you to specify where in haystack to - start searching as an offset in grapheme units (not bytes or characters). If not given, the default is zero. - The position returned is still relative to the beginning of haystack - regardless of the value of $offset. + The optional $offset parameter allows you to specify where in haystack to + start searching as an offset in grapheme units (not bytes or characters). If not given, the default is zero. + The position returned is still relative to the beginning of haystack + regardless of the value of $offset. </para> </listitem> </varlistentry> @@ -64,11 +64,11 @@ <refsect1 role="examples"> &reftitle.examples; - <example> - <title><function>grapheme_stripos</function> example</title> - <programlisting role="php"> + <example> + <title><function>grapheme_stripos</function> example</title> + <programlisting role="php"> <![CDATA[ -< ?php +<?php $char_a_ring_nfd = "a\xCC\x8A"; // 'LATIN SMALL LETTER A WITH RING ABOVE' (U+00E5) normalization form "D" $char_o_diaeresis_nfd = "o\xCC\x88"; // 'LATIN SMALL LETTER O WITH DIAERESIS' (U+00F6) normalization form "D" @@ -78,14 +78,14 @@ ?> ]]> - </programlisting> - </example> - &example.outputs; - <screen> - <![CDATA[ + </programlisting> + </example> + &example.outputs; + <screen> +<![CDATA[ 2 ]]> - </screen> + </screen> </refsect1> <refsect1 role="seealso"> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/functions/grapheme-stristr.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/intl/functions/grapheme-stristr.xml diff -u phpdoc/en/reference/intl/functions/grapheme-stristr.xml:1.2 phpdoc/en/reference/intl/functions/grapheme-stristr.xml:1.3 --- phpdoc/en/reference/intl/functions/grapheme-stristr.xml:1.2 Fri Apr 18 17:04:49 2008 +++ phpdoc/en/reference/intl/functions/grapheme-stristr.xml Wed Aug 6 18:05:59 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry xml:id="function.grapheme-stristr" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>grapheme_stristr</refname> @@ -27,7 +27,7 @@ <term><parameter>haystack</parameter></term> <listitem> <para> - The input string. Must be valid UTF-8. + The input string. Must be valid UTF-8. </para> </listitem> </varlistentry> @@ -35,7 +35,7 @@ <term><parameter>needle</parameter></term> <listitem> <para> - The string to look for. Must be valid UTF-8. + The string to look for. Must be valid UTF-8. </para> </listitem> </varlistentry> @@ -43,8 +43,8 @@ <term><parameter>before_needle</parameter></term> <listitem> <para> - If TRUE (the default is FALSE), grapheme_strstr() returns the part of the - haystack before the first occurence of the needle. + If TRUE (the default is FALSE), grapheme_strstr() returns the part of the + haystack before the first occurence of the needle. </para> </listitem> </varlistentry> @@ -62,11 +62,11 @@ <refsect1 role="examples"> &reftitle.examples; - <example> - <title><function>grapheme_stristr</function> example</title> - <programlisting role="php"> + <example> + <title><function>grapheme_stristr</function> example</title> + <programlisting role="php"> <![CDATA[ -< ?php +<?php $char_a_ring_nfd = "a\xCC\x8A"; // 'LATIN SMALL LETTER A WITH RING ABOVE' (U+00E5) normalization form "D" $char_o_diaeresis_nfd = "o\xCC\x88"; // 'LATIN SMALL LETTER O WITH DIAERESIS' (U+00F6) normalization form "D" @@ -76,14 +76,14 @@ ?> ]]> - </programlisting> - </example> - &example.outputs; - <screen> - <![CDATA[ + </programlisting> + </example> + &example.outputs; + <screen> +<![CDATA[ o%CC%88a%CC%8A ]]> - </screen> + </screen> </refsect1> <refsect1 role="seealso"> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/functions/grapheme-strlen.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/intl/functions/grapheme-strlen.xml diff -u phpdoc/en/reference/intl/functions/grapheme-strlen.xml:1.2 phpdoc/en/reference/intl/functions/grapheme-strlen.xml:1.3 --- phpdoc/en/reference/intl/functions/grapheme-strlen.xml:1.2 Fri Apr 18 17:04:49 2008 +++ phpdoc/en/reference/intl/functions/grapheme-strlen.xml Wed Aug 6 18:05:59 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry xml:id="function.grapheme-strlen" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>grapheme_strlen</refname> @@ -25,7 +25,7 @@ <term><parameter>input</parameter></term> <listitem> <para> - The string being measured for length. It must be a valid UTF-8 string. + The string being measured for length. It must be a valid UTF-8 string. </para> </listitem> </varlistentry> @@ -43,11 +43,11 @@ <refsect1 role="examples"> &reftitle.examples; - <example> - <title><function>grapheme_strlen</function> example</title> - <programlisting role="php"> + <example> + <title><function>grapheme_strlen</function> example</title> + <programlisting role="php"> <![CDATA[ -< ?php +<?php $char_a_ring_nfd = "a\xCC\x8A"; // 'LATIN SMALL LETTER A WITH RING ABOVE' (U+00E5) normalization form "D" $char_o_diaeresis_nfd = "o\xCC\x88"; // 'LATIN SMALL LETTER O WITH DIAERESIS' (U+00F6) normalization form "D" @@ -56,14 +56,14 @@ ?> ]]> - </programlisting> - </example> - &example.outputs; - <screen> - <![CDATA[ + </programlisting> + </example> + &example.outputs; + <screen> +<![CDATA[ 6 ]]> - </screen> + </screen> </refsect1> <refsect1 role="seealso"> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/functions/grapheme-strpos.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/intl/functions/grapheme-strpos.xml diff -u phpdoc/en/reference/intl/functions/grapheme-strpos.xml:1.2 phpdoc/en/reference/intl/functions/grapheme-strpos.xml:1.3 --- phpdoc/en/reference/intl/functions/grapheme-strpos.xml:1.2 Fri Apr 18 17:04:49 2008 +++ phpdoc/en/reference/intl/functions/grapheme-strpos.xml Wed Aug 6 18:05:59 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry xml:id="function.grapheme-strpos" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>grapheme_strpos</refname> @@ -27,7 +27,7 @@ <term><parameter>haystack</parameter></term> <listitem> <para> - The string to look in. Must be valid UTF-8. + The string to look in. Must be valid UTF-8. </para> </listitem> </varlistentry> @@ -35,7 +35,7 @@ <term><parameter>needle</parameter></term> <listitem> <para> - The string to look for. Must be valid UTF-8. + The string to look for. Must be valid UTF-8. </para> </listitem> </varlistentry> @@ -43,10 +43,10 @@ <term><parameter>offset</parameter></term> <listitem> <para> - The optional $offset parameter allows you to specify where in $haystack to - start searching as an offset in grapheme units (not bytes or characters). If not given, the default is zero. - The position returned is still relative to the beginning of haystack - regardless of the value of $offset. + The optional $offset parameter allows you to specify where in $haystack to + start searching as an offset in grapheme units (not bytes or characters). If not given, the default is zero. + The position returned is still relative to the beginning of haystack + regardless of the value of $offset. </para> </listitem> </varlistentry> @@ -64,11 +64,11 @@ <refsect1 role="examples"> &reftitle.examples; - <example> - <title><function>grapheme_strpos</function> example</title> - <programlisting role="php"> + <example> + <title><function>grapheme_strpos</function> example</title> + <programlisting role="php"> <![CDATA[ -< ?php +<?php $char_a_ring_nfd = "a\xCC\x8A"; // 'LATIN SMALL LETTER A WITH RING ABOVE' (U+00E5) normalization form "D" $char_o_diaeresis_nfd = "o\xCC\x88"; // 'LATIN SMALL LETTER O WITH DIAERESIS' (U+00F6) normalization form "D" @@ -77,14 +77,14 @@ ?> ]]> - </programlisting> - </example> - &example.outputs; - <screen> - <![CDATA[ + </programlisting> + </example> + &example.outputs; + <screen> +<![CDATA[ 2 ]]> - </screen> + </screen> </refsect1> <refsect1 role="seealso"> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/functions/grapheme-strripos.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/intl/functions/grapheme-strripos.xml diff -u phpdoc/en/reference/intl/functions/grapheme-strripos.xml:1.2 phpdoc/en/reference/intl/functions/grapheme-strripos.xml:1.3 --- phpdoc/en/reference/intl/functions/grapheme-strripos.xml:1.2 Fri Apr 18 17:04:49 2008 +++ phpdoc/en/reference/intl/functions/grapheme-strripos.xml Wed Aug 6 18:05:59 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry xml:id="function.grapheme-strripos" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>grapheme_strripos</refname> @@ -27,7 +27,7 @@ <term><parameter>haystack</parameter></term> <listitem> <para> - The string to look in. Must be valid UTF-8. + The string to look in. Must be valid UTF-8. </para> </listitem> </varlistentry> @@ -35,7 +35,7 @@ <term><parameter>needle</parameter></term> <listitem> <para> - The string to look for. Must be valid UTF-8. + The string to look for. Must be valid UTF-8. </para> </listitem> </varlistentry> @@ -43,10 +43,10 @@ <term><parameter>offset</parameter></term> <listitem> <para> - The optional $offset parameter allows you to specify where in $haystack to - start searching as an offset in grapheme units (not bytes or characters). If not given, the default is zero. - The position returned is still relative to the beginning of haystack - regardless of the value of $offset. + The optional $offset parameter allows you to specify where in $haystack to + start searching as an offset in grapheme units (not bytes or characters). If not given, the default is zero. + The position returned is still relative to the beginning of haystack + regardless of the value of $offset. </para> </listitem> </varlistentry> @@ -64,11 +64,11 @@ <refsect1 role="examples"> &reftitle.examples; - <example> - <title><function>grapheme_strripos</function> example</title> - <programlisting role="php"> + <example> + <title><function>grapheme_strripos</function> example</title> + <programlisting role="php"> <![CDATA[ -< ?php +<?php $char_a_ring_nfd = "a\xCC\x8A"; // 'LATIN SMALL LETTER A WITH RING ABOVE' (U+00E5) normalization form "D" $char_o_diaeresis_nfd = "o\xCC\x88"; // 'LATIN SMALL LETTER O WITH DIAERESIS' (U+00F6) normalization form "D" @@ -78,14 +78,14 @@ ?> ]]> - </programlisting> - </example> - &example.outputs; - <screen> - <![CDATA[ + </programlisting> + </example> + &example.outputs; + <screen> +<![CDATA[ 2 ]]> - </screen> + </screen> </refsect1> <refsect1 role="seealso"> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/functions/grapheme-strrpos.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/intl/functions/grapheme-strrpos.xml diff -u phpdoc/en/reference/intl/functions/grapheme-strrpos.xml:1.2 phpdoc/en/reference/intl/functions/grapheme-strrpos.xml:1.3 --- phpdoc/en/reference/intl/functions/grapheme-strrpos.xml:1.2 Fri Apr 18 17:04:49 2008 +++ phpdoc/en/reference/intl/functions/grapheme-strrpos.xml Wed Aug 6 18:05:59 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry xml:id="function.grapheme-strrpos" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>grapheme_strrpos</refname> @@ -27,7 +27,7 @@ <term><parameter>haystack</parameter></term> <listitem> <para> - The string to look in. Must be valid UTF-8. + The string to look in. Must be valid UTF-8. </para> </listitem> </varlistentry> @@ -35,7 +35,7 @@ <term><parameter>needle</parameter></term> <listitem> <para> - The string to look for. Must be valid UTF-8. + The string to look for. Must be valid UTF-8. </para> </listitem> </varlistentry> @@ -43,10 +43,10 @@ <term><parameter>offset</parameter></term> <listitem> <para> - The optional $offset parameter allows you to specify where in $haystack to - start searching as an offset in grapheme units (not bytes or characters). If not given, the default is zero. - The position returned is still relative to the beginning of haystack - regardless of the value of $offset. + The optional $offset parameter allows you to specify where in $haystack to + start searching as an offset in grapheme units (not bytes or characters). If not given, the default is zero. + The position returned is still relative to the beginning of haystack + regardless of the value of $offset. </para> </listitem> </varlistentry> @@ -64,9 +64,9 @@ <refsect1 role="examples"> &reftitle.examples; - <example> - <title><function>grapheme_strrpos</function> example</title> - <programlisting role="php"> + <example> + <title><function>grapheme_strrpos</function> example</title> + <programlisting role="php"> <![CDATA[ < ?php @@ -77,14 +77,14 @@ ?> ]]> - </programlisting> - </example> - &example.outputs; - <screen> - <![CDATA[ + </programlisting> + </example> + &example.outputs; + <screen> +<![CDATA[ 2 ]]> - </screen> + </screen> </refsect1> <refsect1 role="seealso"> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/functions/grapheme-strstr.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/intl/functions/grapheme-strstr.xml diff -u phpdoc/en/reference/intl/functions/grapheme-strstr.xml:1.2 phpdoc/en/reference/intl/functions/grapheme-strstr.xml:1.3 --- phpdoc/en/reference/intl/functions/grapheme-strstr.xml:1.2 Fri Apr 18 17:04:49 2008 +++ phpdoc/en/reference/intl/functions/grapheme-strstr.xml Wed Aug 6 18:05:59 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry xml:id="function.grapheme-strstr" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>grapheme_strstr</refname> @@ -27,7 +27,7 @@ <term><parameter>haystack</parameter></term> <listitem> <para> - The input string. Must be valid UTF-8. + The input string. Must be valid UTF-8. </para> </listitem> </varlistentry> @@ -35,7 +35,7 @@ <term><parameter>needle</parameter></term> <listitem> <para> - The string to look for. Must be valid UTF-8. + The string to look for. Must be valid UTF-8. </para> </listitem> </varlistentry> @@ -43,8 +43,8 @@ <term><parameter>before_needle</parameter></term> <listitem> <para> - If TRUE (the default is FALSE), grapheme_strstr() returns the part of the - haystack before the first occurence of the needle. + If TRUE (the default is FALSE), grapheme_strstr() returns the part of the + haystack before the first occurence of the needle. </para> </listitem> </varlistentry> @@ -62,11 +62,11 @@ <refsect1 role="examples"> &reftitle.examples; - <example> - <title><function>grapheme_strstr</function> example</title> - <programlisting role="php"> + <example> + <title><function>grapheme_strstr</function> example</title> + <programlisting role="php"> <![CDATA[ -< ?php +<?php $char_a_ring_nfd = "a\xCC\x8A"; // 'LATIN SMALL LETTER A WITH RING ABOVE' (U+00E5) normalization form "D" $char_o_diaeresis_nfd = "o\xCC\x88"; // 'LATIN SMALL LETTER O WITH DIAERESIS' (U+00F6) normalization form "D" @@ -75,14 +75,14 @@ ?> ]]> - </programlisting> - </example> - &example.outputs; - <screen> - <![CDATA[ + </programlisting> + </example> + &example.outputs; + <screen> +<![CDATA[ o%CC%88a%CC%8A ]]> - </screen> + </screen> </refsect1> <refsect1 role="seealso"> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/functions/grapheme-substr.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc/en/reference/intl/functions/grapheme-substr.xml diff -u phpdoc/en/reference/intl/functions/grapheme-substr.xml:1.3 phpdoc/en/reference/intl/functions/grapheme-substr.xml:1.4 --- phpdoc/en/reference/intl/functions/grapheme-substr.xml:1.3 Mon Apr 21 16:52:31 2008 +++ phpdoc/en/reference/intl/functions/grapheme-substr.xml Wed Aug 6 18:05:59 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry xml:id="function.grapheme-substr" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>grapheme_substr</refname> @@ -27,7 +27,7 @@ <term><parameter>string</parameter></term> <listitem> <para> - The input string. Must be valid UTF-8. + The input string. Must be valid UTF-8. </para> </listitem> </varlistentry> @@ -35,11 +35,11 @@ <term><parameter>start</parameter></term> <listitem> <para> - Start position in default grapheme units. - If $start is non-negative, the returned string will start at the - $start'th position in $string, counting from zero. If $start is negative, - the returned string will start at the $start'th grapheme unit from the - end of string. + Start position in default grapheme units. + If $start is non-negative, the returned string will start at the + $start'th position in $string, counting from zero. If $start is negative, + the returned string will start at the $start'th grapheme unit from the + end of string. </para> </listitem> </varlistentry> @@ -47,14 +47,14 @@ <term><parameter>length</parameter></term> <listitem> <para> - Length in grapheme units. - If $length is given and is positive, the string returned will contain - at most $length grapheme units beginning from $start (depending on the - length of string). If $string is less than or equal to $start grapheme - units long, FALSE will be returned. If $length is given and is negative, then - that many grapheme units will be omitted from the end of string (after the - start position has been calculated when a start is negative). If $start - denotes a position beyond this truncation, an empty string will be returned. + Length in grapheme units. + If $length is given and is positive, the string returned will contain + at most $length grapheme units beginning from $start (depending on the + length of string). If $string is less than or equal to $start grapheme + units long, FALSE will be returned. If $length is given and is negative, then + that many grapheme units will be omitted from the end of string (after the + start position has been calculated when a start is negative). If $start + denotes a position beyond this truncation, an empty string will be returned. </para> </listitem> </varlistentry> @@ -72,11 +72,11 @@ <refsect1 role="examples"> &reftitle.examples; - <example> - <title><function>grapheme_substr</function> example</title> - <programlisting role="php"> + <example> + <title><function>grapheme_substr</function> example</title> + <programlisting role="php"> <![CDATA[ -< ?php +<?php $char_a_ring_nfd = "a\xCC\x8A"; // 'LATIN SMALL LETTER A WITH RING ABOVE' (U+00E5) normalization form "D" $char_o_diaeresis_nfd = "o\xCC\x88"; // 'LATIN SMALL LETTER O WITH DIAERESIS' (U+00F6) normalization form "D" @@ -84,14 +84,14 @@ print urlencode(grapheme_substr( "ao" . $char_a_ring_nfd . "bc" . $char_o_diaeresis_nfd . "O", 2, -1 )); ?> ]]> - </programlisting> - </example> - &example.outputs; - <screen> - <![CDATA[ + </programlisting> + </example> + &example.outputs; + <screen> +<![CDATA[ a%CC%8Abco%CC%88 ]]> - </screen> + </screen> </refsect1> <refsect1 role="seealso">