RE: [PHP-DEV] RE: str_pad clarification - Re: [PHP-DEV] PHP Unicode strings impl proposal
| From: | Tex Texin | Date: | Mon, 29 Aug 2005 20:45:04 +0000 |
| Subject: | RE: [PHP-DEV] 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-18536@lists.php.net to get a copy of this message | ||
One at a time.
Fundamentally, I am speculating that combining charaacters will not appear
in pad characters with any frequency, and therefore we shouldn't worry about
the distinction of combining and non-combining, in this SPECIAL instance.
Anyone that has that need, can write a specific function to do what they
need.
Tex Texin
Internationalization Architect, Yahoo! Inc.
> -----Original Message-----
> From: Andrei Zmievski [mailto:andrei@gravitonic.com]
> Sent: Monday, August 29, 2005 1:16 PM
> To: Tex Texin
> Cc: 'Rolland Santimano'; 'internals'
> Subject: Re: [PHP-DEV] RE: str_pad clarification - Re:
> [PHP-DEV] PHP Unicode strings impl proposal
>
>
> Does this mean that if the padding string is base character + two
> combining characters, we can trim just one of the combining
> ones or do
> we trim all the way back to the base one?
>
> -Andrei
>
> On Aug 29, 2005, at 5:50 AM, Tex Texin wrote:
>
> > 4) 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 limit is met. (So a
> > combining
> > character is one character for this purpose.)
>
>
>