summaryrefslogtreecommitdiff
path: root/embed.fnc
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2018-06-27 22:01:53 -0600
committerKarl Williamson <khw@cpan.org>2018-07-05 14:47:19 -0600
commit67049a5ffa8b7757041edb8f972a0a74fbe5d63d (patch)
tree7427d4c3d7a9b99d58a33e86647478916343871d /embed.fnc
parente6a4ffc3f7aa69cbf3e5e83518e40e529a34b75b (diff)
downloadperl-67049a5ffa8b7757041edb8f972a0a74fbe5d63d.tar.gz
Make isSTRICT_UTF8_CHAR() an inline function
It was a macro that used a trie. This changes to use the dfa constructed in previous commits. I didn't bother with taking measurements. A dfa should have fewer conditionals for 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 1e1c629386..a63f2e56b6 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -827,6 +827,8 @@ AbnpdD |STRLEN |is_utf8_char |NN const U8 *s
Abmnpd |STRLEN |is_utf8_char_buf|NN const U8 *buf|NN const U8 *buf_end
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
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