summaryrefslogtreecommitdiff
path: root/embed.fnc
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2021-07-01 18:48:10 -0600
committerKarl Williamson <khw@cpan.org>2021-08-14 06:47:43 -0600
commit1aa501c28abd51b6253fb6da3caeee66320bf274 (patch)
tree34755745c3dffee562186389cedada7b54c88bc0 /embed.fnc
parent22f363ffd253b5142b1138438c30f34da9494d4a (diff)
downloadperl-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.fnc2
1 files changed, 1 insertions, 1 deletions
diff --git a/embed.fnc b/embed.fnc
index 5cea8260ce..834faea428 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -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