diff options
author | Karl Williamson <khw@cpan.org> | 2021-07-01 18:48:10 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2021-08-14 06:47:43 -0600 |
commit | 1aa501c28abd51b6253fb6da3caeee66320bf274 (patch) | |
tree | 34755745c3dffee562186389cedada7b54c88bc0 /embed.fnc | |
parent | 22f363ffd253b5142b1138438c30f34da9494d4a (diff) | |
download | perl-1aa501c28abd51b6253fb6da3caeee66320bf274.tar.gz |
utf8.c: Refactor is_utf8_char_helper()
Now that the DFA is used by the only callers to this to eliminate the
need to check for e.g., wrong continuation bytes, this function can be
refactored to use a switch statement, which makes it clearer, shorter,
and faster.
The name is changed to indicate its private nature
Diffstat (limited to 'embed.fnc')
-rw-r--r-- | embed.fnc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1115,7 +1115,7 @@ pR |OP* |cmpchain_finish|NN OP* ch ApR |I32 |is_lvalue_sub : Used in cop.h XopR |I32 |was_lvalue_sub -CpRTP |STRLEN |is_utf8_char_helper|NN const U8 * const s|NN const U8 * e|const U32 flags +CpRTP |STRLEN |is_utf8_char_helper_|NN const U8 * const s|NN const U8 * e|const U32 flags CpRTP |Size_t |is_utf8_FF_helper_|NN const U8 * const s0 \ |NN const U8 * const e \ |const bool require_partial |