summaryrefslogtreecommitdiff
path: root/embed.fnc
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2021-06-27 02:19:19 -0600
committerKarl Williamson <khw@cpan.org>2021-08-07 05:14:43 -0600
commit8b5f2733d203f1d4c77d2a7e2250f5b63c17c9e9 (patch)
tree4d780adf97c32e8aca95b22269706a4d19ab62a8 /embed.fnc
parentd49e4ce1792863bdc3e344a52aef19110508e1ac (diff)
downloadperl-8b5f2733d203f1d4c77d2a7e2250f5b63c17c9e9.tar.gz
utf8.c: Generalize static fcn
I've always been uncomfortable with the input constraints this function had. Now that it has been refactored into using a switch(), new cases for full generality can be added without affecting performance, and some conditionals removed before calling it. The function is renamed to reflect its more generality
Diffstat (limited to 'embed.fnc')
-rw-r--r--embed.fnc4
1 files changed, 2 insertions, 2 deletions
diff --git a/embed.fnc b/embed.fnc
index 4a53b25d58..7d851bae01 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -2482,8 +2482,8 @@ EXp |char * |_byte_dump_string \
iTR |int |does_utf8_overflow|NN const U8 * const s \
|NN const U8 * e \
|const bool consider_overlongs
-iTR |int |is_utf8_overlong_given_start_byte_ok|NN const U8 * const s \
- |const STRLEN len
+iTR |int |is_utf8_overlong|NN const U8 * const s \
+ |const STRLEN len
iTR |int |isFF_overlong |NN const U8 * const s|const STRLEN len
SR |char * |unexpected_non_continuation_text \
|NN const U8 * const s \