diff options
author | Karl Williamson <public@khwilliamson.com> | 2012-02-11 14:04:39 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2012-02-11 14:35:46 -0700 |
commit | 492a624f4a0c250e011c6b74a3403bfc885ec961 (patch) | |
tree | 8961dec5b0e8d1fc0a90c8696bc15f40e8e3616e /embed.h | |
parent | b9411ff2d79526114566a6486a0c0238691cec2d (diff) | |
download | perl-492a624f4a0c250e011c6b74a3403bfc885ec961.tar.gz |
Add is_utf8_char_buf()
This function is to replace is_utf8_char(), and requires an extra
parameter to ensure that it doesn't read beyond the end of the buffer.
Convert is_utf8_char() and the only place in the Perl core to use the
new one, assuming in each that there is enough space.
Thanks to Jarkko Hietaniemi for suggesting this function name
Diffstat (limited to 'embed.h')
-rw-r--r-- | embed.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -250,6 +250,7 @@ #define is_utf8_alpha(a) Perl_is_utf8_alpha(aTHX_ a) #define is_utf8_ascii(a) Perl_is_utf8_ascii(aTHX_ a) #define is_utf8_char Perl_is_utf8_char +#define is_utf8_char_buf Perl_is_utf8_char_buf #define is_utf8_cntrl(a) Perl_is_utf8_cntrl(aTHX_ a) #define is_utf8_digit(a) Perl_is_utf8_digit(aTHX_ a) #define is_utf8_graph(a) Perl_is_utf8_graph(aTHX_ a) |