RE: [PHP] Checking how many letters are in a string.

2008-03-20 Thread Edward Kay
> -Original Message- > From: tedd > Chapter 4 is all about l16n, L10n, and Unicode. Makes a good read. What's l16n? Did you mean i18n (internationasation)? (I'm not being a pedant; just wondered if I was missing something) :) Edward -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] Checking how many letters are in a string.

2008-03-20 Thread tedd
At 9:10 AM +0200 3/20/08, Dotan Cohen wrote: On 20/03/2008, tedd <[EMAIL PROTECTED]> wrote: > At least, that's my understanding. Cheers, tedd Thank you Tedd, that was very helpful. After reading your mail from yesterday I went to wikipedia to learn what graphemes and ligatures are. Yo

Re: [PHP] Checking how many letters are in a string.

2008-03-20 Thread Dotan Cohen
On 20/03/2008, tedd <[EMAIL PROTECTED]> wrote: > At 9:29 PM +0200 3/19/08, Dotan Cohen wrote: > >I am asking the second question: how many Hebrew characters in a > >string that _very_likely_ contains other characters as well. The array > >suggestion sounds about what I am doing: checking if each

Re: [PHP] Checking how many letters are in a string.

2008-03-19 Thread tedd
At 9:29 PM +0200 3/19/08, Dotan Cohen wrote: I am asking the second question: how many Hebrew characters in a string that _very_likely_ contains other characters as well. The array suggestion sounds about what I am doing: checking if each letter is a Hebrew character. I will also look into the m

Re: [PHP] Checking how many letters are in a string.

2008-03-19 Thread Dotan Cohen
On 19/03/2008, TG <[EMAIL PROTECTED]> wrote: > > Is the question: > > "How do I tell how many characters are in a string that may contain Hebrew > characters?" > > or is the question... > > "How do I tell how many Hebrew characters are in a string that may contain > Hebrew and non-Hebrew char

Re: [PHP] Checking how many letters are in a string.

2008-03-19 Thread TG
Is the question: "How do I tell how many characters are in a string that may contain Hebrew characters?" or is the question... "How do I tell how many Hebrew characters are in a string that may contain Hebrew and non-Hebrew characters.. but I only want a count of the Hebrew characters?" or

Re: [PHP] Checking how many letters are in a string.

2008-03-19 Thread tedd
At 6:39 PM +0200 3/19/08, Dotan Cohen wrote: I need to count how many Hebrew characters a given string has. I have been checking, character by character, if the given character is a [ý‚™] and if so I simply ++ the counting variable. It turns out that this is rather resouce intensive, and I may ne

Re: [PHP] Checking how many letters are in a string.

2008-03-19 Thread Richard Heyes
I need to count how many Hebrew characters a given string has. I have been checking, character by character, if the given character is a [א-ת] and if so I simply ++ the counting variable. It turns out that this is rather resouce intensive, and I may need a better way of doing this. I have looked a