fix substr description - graphemes, not chars

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@258068 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Stanislav Malyshev 2008-04-21 16:52:31 +00:00
parent 5e2323ba75
commit 4bc2c67738

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 1.2 $ -->
<!-- $Revision: 1.3 $ -->
<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>
@ -36,9 +36,9 @@
<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 character from the
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>
@ -48,11 +48,11 @@
<listitem>
<para>
Length in grapheme units.
If $length is given and is positive, the string returned will contain
at most $length characters beginning from $start (depending on the
length of string). If $string is less than or equal to $start characters
long, FALSE will be returned. If $length is given and is negative, then
that many characters will be omitted from the end of string (after the
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>