Re: str_pad clarification - Re: [PHP-DEV] PHP Unicode strings impl proposal
| From: | Andrei Zmievski | Date: | Thu, 01 Sep 2005 18:14:10 +0000 |
| Subject: | Re: str_pad clarification - Re: [PHP-DEV] PHP Unicode strings impl proposal | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-18646@lists.php.net to get a copy of this message | ||
On Sep 1, 2005, at 6:32 AM, Rolland Santimano wrote:
Why would you trim it from the left? -Andrei4) The string can be truncated to the user's requested character length. The string will be trimmed from the right one unicode utf-8 character (not grapheme, not byte) at a time until the length limitismet. (So a combining character is one character for this purpose.)Shouldn't characters/codepoints be trimmed at both ends, rather than just at the right end ?