summaryrefslogtreecommitdiff
path: root/embed.fnc
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2018-07-01 16:00:41 -0600
committerKarl Williamson <khw@cpan.org>2018-07-05 14:47:19 -0600
commitc5bfbb64f98c2c7e8055565dd018e0a2a8565c10 (patch)
tree480e811b72524783daf394b67ec17dc426538540 /embed.fnc
parent67049a5ffa8b7757041edb8f972a0a74fbe5d63d (diff)
downloadperl-c5bfbb64f98c2c7e8055565dd018e0a2a8565c10.tar.gz
Make isC9_STRICT_UTF8_CHAR() an inline dfa
This replaces a complicated trie with a dfa. This should cut down the number of conditionals encountered in parsing many code points.
Diffstat (limited to 'embed.fnc')
-rw-r--r--embed.fnc2
1 files changed, 2 insertions, 0 deletions
diff --git a/embed.fnc b/embed.fnc
index a63f2e56b6..0897effde2 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -829,6 +829,8 @@ AnidR |Size_t |isUTF8_CHAR|NN const U8 * const s0 \
|NN const U8 * const e
AnidR |Size_t |isSTRICT_UTF8_CHAR |NN const U8 * const s0 \
|NN const U8 * const e
+AnidR |Size_t |isC9_STRICT_UTF8_CHAR |NN const U8 * const s0 \
+ |NN const U8 * const e
AnmdpR |bool |is_utf8_string |NN const U8 *s|STRLEN len
AnidR |bool |is_utf8_string_flags \
|NN const U8 *s|STRLEN len|const U32 flags