This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add is_utf8_valid_partial_char()
authorKarl Williamson <khw@cpan.org>
Sun, 28 Aug 2016 16:54:13 +0000 (10:54 -0600)
committerKarl Williamson <khw@cpan.org>
Thu, 1 Sep 2016 02:32:37 +0000 (20:32 -0600)
commit4dab108fb5e7e21a547733bb00ddb5d8bffd936d
tree0ae23367c9dceeac1908f31a0542a5464f4ee566
parent89d986df51f55257b8cc3f6e4f54eba60f607e48
Add is_utf8_valid_partial_char()

This new function can test some purported UTF-8 to see if it is
well-formed as far as it goes.  That is there aren't enough bytes for
the character they start, but what is there is legal so far.  This can
be useful in a fixed width buffer, where the final character is split in
the middle, and we want to test without waiting for the next read that
the entire buffer is valid.
embed.fnc
embed.h
inline.h
proto.h
utf8.c