IK>> First of all, I have wrote my perfect, or almost perfect, flipping
IK>> script in PHP, including numbers, english and wrapping. It's quite slow.
No wonder - true Uicode algorithm requires 3 passes, IIRC...
IK>> But that's not the point - Zeev Suraski already did the work for
IK>> us, though didn't document it anywhere. hebrev(), a built-in function
IK>> reverses hebrew flawlessly. Just print hebrev($string). Much faster
IK>> than any PHP-only function doing the same, ofcourse.
In fact, there's two of them, as I see now - hebrev and hebrevc. The
second one is the first "with newline conversion". Also, in fact both
functions have 2 parameters:
string hebrev(string str [, int max_chars_per_line])
That's all in functions/string.c, so source-readers among us can look and
see what it does and how.
--
[EMAIL PROTECTED] \/ There shall be counsels taken
Stanislav Malyshev /\ Stronger than Morgul-spells
phone +972-3-9316425 /\ JRRT LotR.
http://sharat.co.il/frodo/ whois:!SM8333
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]