diff options
author | Karl Williamson <khw@cpan.org> | 2021-06-25 13:09:08 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2021-08-14 06:47:43 -0600 |
commit | 22f363ffd253b5142b1138438c30f34da9494d4a (patch) | |
tree | a02ca691b6818aafce1300ab4cdd3706ff7c4087 /proto.h | |
parent | 22afef87083fc7ad1b066588f5c20637fd387805 (diff) | |
download | perl-22f363ffd253b5142b1138438c30f34da9494d4a.tar.gz |
Make macro isUTF8_CHAR_flags an inline fcn
This makes it use the fast DFA for this functionality.
Diffstat (limited to 'proto.h')
-rw-r--r-- | proto.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1665,6 +1665,13 @@ PERL_STATIC_INLINE Size_t Perl_isUTF8_CHAR(const U8 * const s0, const U8 * const assert(s0); assert(e) #endif +#ifndef PERL_NO_INLINE_FUNCTIONS +PERL_STATIC_INLINE Size_t Perl_isUTF8_CHAR_flags(const U8 * const s0, const U8 * const e, const U32 flags) + __attribute__warn_unused_result__; +#define PERL_ARGS_ASSERT_ISUTF8_CHAR_FLAGS \ + assert(s0); assert(e) +#endif + /* PERL_CALLCONV bool is_ascii_string(const U8* const s, STRLEN len) __attribute__warn_unused_result__ __attribute__pure__; */ |