mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
- Fixed WS and examples (< ?php)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@264322 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
4f2d3a7704
commit
b053b36586
9 changed files with 153 additions and 153 deletions
|
@ -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 @@ print urlencode(grapheme_extract( $char_a_ring_nfd . $char_o_diaeresis_nfd, 1, G
|
|||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
</programlisting>
|
||||
</example>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
o%CC%88
|
||||
]]>
|
||||
</screen>
|
||||
</screen>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="seealso">
|
||||
|
|
|
@ -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 @@ print grapheme_stripos( $char_a_ring_nfd . $char_a_ring_nfd . $char_o_diaeresis_
|
|||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
</programlisting>
|
||||
</example>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
2
|
||||
]]>
|
||||
</screen>
|
||||
</screen>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="seealso">
|
||||
|
|
|
@ -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 @@ print urlencode(grapheme_stristr( $char_a_ring_nfd . $char_o_diaeresis_nfd . $ch
|
|||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
</programlisting>
|
||||
</example>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
o%CC%88a%CC%8A
|
||||
]]>
|
||||
</screen>
|
||||
</screen>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="seealso">
|
||||
|
|
|
@ -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 @@ print grapheme_strlen( 'abc' . $char_a_ring_nfd . $char_o_diaeresis_nfd . $char_
|
|||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
</programlisting>
|
||||
</example>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
6
|
||||
]]>
|
||||
</screen>
|
||||
</screen>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="seealso">
|
||||
|
|
|
@ -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 @@ print grapheme_strpos( $char_a_ring_nfd . $char_a_ring_nfd . $char_o_diaeresis_n
|
|||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
</programlisting>
|
||||
</example>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
2
|
||||
]]>
|
||||
</screen>
|
||||
</screen>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="seealso">
|
||||
|
|
|
@ -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 @@ print grapheme_strripos( $char_a_ring_nfd . $char_o_diaeresis_nfd . $char_o_diae
|
|||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
</programlisting>
|
||||
</example>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
2
|
||||
]]>
|
||||
</screen>
|
||||
</screen>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="seealso">
|
||||
|
|
|
@ -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 @@ print grapheme_strrpos( $char_a_ring_nfd . $char_o_diaeresis_nfd . $char_o_diaer
|
|||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
</programlisting>
|
||||
</example>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
2
|
||||
]]>
|
||||
</screen>
|
||||
</screen>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="seealso">
|
||||
|
|
|
@ -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 @@ print urlencode(grapheme_stristr( $char_a_ring_nfd . $char_o_diaeresis_nfd . $ch
|
|||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
</programlisting>
|
||||
</example>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
o%CC%88a%CC%8A
|
||||
]]>
|
||||
</screen>
|
||||
</screen>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="seealso">
|
||||
|
|
|
@ -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 @@ $char_o_diaeresis_nfd = "o\xCC\x88"; // 'LATIN SMALL LETTER O WITH DIAERESIS' (U
|
|||
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">
|
||||
|
|
Loading…
Reference in a new issue