svn: /phpdoc/en/trunk/reference/haru/harupage/ measuretext.xml

From: Date: Thu, 14 May 2015 07:52:32 +0000
Subject: svn: /phpdoc/en/trunk/reference/haru/harupage/ measuretext.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-13288@lists.php.net to get a copy of this message
salathe Thu, 14 May 2015 07:52:32 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=336761 Log: The description for HaruPage::measureText() was not entirely correct, stating the function returned "number of characters" and not "number of bytes" -- Provided by anonymous 57960 via online editor Changed paths: U phpdoc/en/trunk/reference/haru/harupage/measuretext.xml Modified: phpdoc/en/trunk/reference/haru/harupage/measuretext.xml =================================================================== --- phpdoc/en/trunk/reference/haru/harupage/measuretext.xml 2015-05-14 07:51:07 UTC (rev 336760) +++ phpdoc/en/trunk/reference/haru/harupage/measuretext.xml 2015-05-14 07:52:32 UTC (rev 336761) @@ -3,7 +3,7 @@ <refentry xml:id="harupage.measuretext" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>HaruPage::measureText</refname> - <refpurpose>Calculate the number of characters which can be included within the specified width</refpurpose> + <refpurpose>Calculate the byte length of characters which can be included on one line of the specified width</refpurpose> </refnamediv> <refsect1 role="description"> @@ -15,7 +15,7 @@ <methodparam choice="opt"><type>bool</type><parameter>wordwrap</parameter><initializer>false</initializer></methodparam> </methodsynopsis> <para> - Get the number of characters which can be included within the specified width. + Get the byte length of characters which can be included on one line of the specified width. </para> </refsect1> @@ -35,7 +35,7 @@ <term><parameter>width</parameter></term> <listitem> <para> - The width of the area to put the text to. + The width of the line. </para> </listitem> </varlistentry> @@ -44,8 +44,8 @@ <listitem> <para> When this parameter is set to &true; the function "emulates" word - wrapping and doesn't include the part of the current word if reached - the end of the area. + wrapping by stopping after the last full word (delimited by whitespace) + that can fit on the line. </para> </listitem> </varlistentry> @@ -56,7 +56,9 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - Returns the number of characters which can be included within the specified width. + Returns the byte length of characters which can be included within the specified width. + For single-byte encodings, this is equal to the number of characters. For multi-byte encodings, + this is not necessarily the case. </para> </refsect1>

« previous php.doc.cvs (#13288) next »