diff options
author | Karl Williamson <khw@cpan.org> | 2018-06-27 22:01:53 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2018-07-05 14:47:19 -0600 |
commit | 67049a5ffa8b7757041edb8f972a0a74fbe5d63d (patch) | |
tree | 7427d4c3d7a9b99d58a33e86647478916343871d /embed.fnc | |
parent | e6a4ffc3f7aa69cbf3e5e83518e40e529a34b75b (diff) | |
download | perl-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.fnc | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |