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:[EMAIL PROTECTED] 
> 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.)
> 
> 
> 

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to