mirror of
https://github.com/php/php-src.git
synced 2024-09-29 13:56:09 +00:00
e4a006cd3e
According to the Unicode specification (at least as of 5.1), CRLF sequences are considered to be a single grapheme. We cater to that special case by letting grapheme_ascii_check() fail. While it would be trivial to fix grapheme_ascii_check() wrt. grapheme_strlen(), grapheme_substr() and grapheme_strrpos() would be much harder to handle, so we accept the slight performance penalty if CRLF is involved. |
||
---|---|---|
.. | ||
grapheme_string.c | ||
grapheme_util.c | ||
grapheme_util.h | ||
grapheme.h |