Re: [RFC] Desire to move RFC add_str_begin_and_end_functions to a vote

From: Date: Sun, 23 Jun 2019 15:48:56 +0000
Subject: Re: [RFC] Desire to move RFC add_str_begin_and_end_functions to a vote
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-106044@lists.php.net to get a copy of this message
On 23/06/2019 16:29, Ben Ramsey wrote:
According to Google, "İyi akşamlar” is the Turkish phrase for “Good evening” (Turkish speakers, please correct me, if this wrong). However, using the existing mb_* functions, I can’t get mb_stripos() to return 0 when trying to see if the string “İYI AKŞAMLAR” begins with “i̇yi.”
Probably mb_string not using the right case-folding routines; as mentioned in another thread, ext/mbstring wasn't written for Unicode, but for older multibyte encodings, particularly those used for Japanese text. grapheme_stripos (from ext/intl) apparently gets it right as of PHP 7.3: https://3v4l.org/0431j A much simpler example, though, is using just the second word of that string: the accented "s" confuses plain stripos but not mb_stripos. Regards, -- Rowan Collins [IMSoP]

« previous php.internals (#106044) next »