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.h | |
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.h')
-rw-r--r-- | embed.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -277,7 +277,7 @@ #ifndef NO_MATHOMS #define is_utf8_char Perl_is_utf8_char #endif -#define is_utf8_char_helper Perl_is_utf8_char_helper +#define is_utf8_char_helper_ Perl_is_utf8_char_helper_ #define is_utf8_fixed_width_buf_loclen_flags Perl_is_utf8_fixed_width_buf_loclen_flags #define is_utf8_invariant_string_loc Perl_is_utf8_invariant_string_loc #define is_utf8_string_flags Perl_is_utf8_string_flags |