cvs: phpdoc /en/reference/intl/functions grapheme-substr.xml
| From: | Stanislav Malyshev | Date: | Mon, 21 Apr 2008 16:52:31 +0000 |
| Subject: | cvs: phpdoc /en/reference/intl/functions grapheme-substr.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-1553@lists.php.net to get a copy of this message | ||
stas Mon Apr 21 16:52:31 2008 UTC
Modified files:
/phpdoc/en/reference/intl/functions grapheme-substr.xml
Log:
fix substr description - graphemes, not chars
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/functions/grapheme-substr.xml?r1=1.2&r2=1.3&diff_format=u
Index: phpdoc/en/reference/intl/functions/grapheme-substr.xml
diff -u phpdoc/en/reference/intl/functions/grapheme-substr.xml:1.2
phpdoc/en/reference/intl/functions/grapheme-substr.xml:1.3
--- phpdoc/en/reference/intl/functions/grapheme-substr.xml:1.2 Fri Apr 18 17:04:49 2008
+++ phpdoc/en/reference/intl/functions/grapheme-substr.xml Mon Apr 21 16:52:31 2008
@@ -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>