From 4bc2c67738ebfc1fa208a523c5f3e0f94a102ac5 Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Mon, 21 Apr 2008 16:52:31 +0000 Subject: [PATCH] fix substr description - graphemes, not chars git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@258068 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/intl/functions/grapheme-substr.xml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/reference/intl/functions/grapheme-substr.xml b/reference/intl/functions/grapheme-substr.xml index ba6d61a7b6..2093cfde95 100644 --- a/reference/intl/functions/grapheme-substr.xml +++ b/reference/intl/functions/grapheme-substr.xml @@ -1,5 +1,5 @@ - + grapheme_substr @@ -36,9 +36,9 @@ 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. @@ -48,11 +48,11 @@ 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.