RE: [PHP] Internationalisation and MB strings

2008-08-01 Thread Boyd, Todd M.
> -Original Message- > From: Andrew Ballard [mailto:[EMAIL PROTECTED] > Sent: Friday, August 01, 2008 2:06 PM > To: PHP General list > Subject: Re: [PHP] Internationalisation and MB strings ---8<--- > > I didn't see the multiplication by 1000 and the above

Re: [PHP] Internationalisation and MB strings

2008-08-01 Thread Andrew Ballard
. wrote: >> >> > -Original Message- >> >> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Yeti >> >> > Sent: Friday, August 01, 2008 10:58 AM >> >> > To: Andrew Ballard >> >> > Cc: PHP General list >

Re: [PHP] Internationalisation and MB strings

2008-08-01 Thread Robert Cummings
[mailto:[EMAIL PROTECTED] On Behalf Of Yeti > >> > Sent: Friday, August 01, 2008 10:58 AM > >> > To: Andrew Ballard > >> > Cc: PHP General list > >> > Subject: Re: [PHP] Internationalisation and MB strings > >> > > >> > Oh

Re: [PHP] Internationalisation and MB strings

2008-08-01 Thread Andrew Ballard
st 01, 2008 10:58 AM >> > To: Andrew Ballard >> > Cc: PHP General list >> > Subject: Re: [PHP] Internationalisation and MB strings >> > >> > Oh right. Doing 1 measurement only is not even worth a theory. >> > >> > Well, I'm wo

RE: [PHP] Internationalisation and MB strings

2008-08-01 Thread Robert Cummings
On Fri, 2008-08-01 at 11:12 -0500, Boyd, Todd M. wrote: > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Yeti > > Sent: Friday, August 01, 2008 10:58 AM > > To: Andrew Ballard > > Cc: PHP General list > > Subject

RE: [PHP] Internationalisation and MB strings

2008-08-01 Thread Boyd, Todd M.
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Yeti > Sent: Friday, August 01, 2008 10:58 AM > To: Andrew Ballard > Cc: PHP General list > Subject: Re: [PHP] Internationalisation and MB strings > > Oh right. Doing 1 measuremen

Re: [PHP] Internationalisation and MB strings

2008-08-01 Thread Bernhard Kohl
/* snippetty */ foreach ($mb_array as $mb_string) { strlen('œŸŒ‡Ņ'); } /* snip */ Oh, this is supposed to be a *strlen($mb_string)*; of course >

Re: [PHP] Internationalisation and MB strings

2008-08-01 Thread Yeti
Oh right. Doing 1 measurement only is not even worth a theory. Well, I'm wondering how much PHP can speed that result up, since we are calling the same function with the same parameter 1 times. Wouldn't it be even more realistic if we called it with changing strings? MB_STRLEN took : '.(($e_t

Re: [PHP] Internationalisation and MB strings

2008-08-01 Thread Andrew Ballard
On Fri, Aug 1, 2008 at 9:50 AM, Yeti <[EMAIL PROTECTED]> wrote: > *# Hello Community > # Internationalisation, a topic discussed more than enough and YES, I am > looking forward to PHP6. > # But in reality I still have to develop for PHP4 and that's where the dog > is burried ^^ > # We have a cust

[PHP] Internationalisation and MB strings

2008-08-01 Thread Yeti
2048) { /* snip */ } // do something } /* snip */ // do something *#this works fine as long as the user only submits single byte charachters, but with UTF-8 the whole thing changes ..* ?> http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml";> test You subm