This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add utf8n_to_uvchr_error
authorKarl Williamson <khw@cpan.org>
Tue, 11 Oct 2016 03:18:37 +0000 (21:18 -0600)
committerKarl Williamson <khw@cpan.org>
Thu, 13 Oct 2016 17:18:12 +0000 (11:18 -0600)
commitf9380377ac81dfbd87f997094a742406eb899a15
tree399236fb4d72c139a7c90e44fc309795ee41ad93
parent3757e55dd9611aede000f6f036237c4fda19b4f6
Add utf8n_to_uvchr_error

This new function behaves like utf8n_to_uvchr(), but takes an extra
parameter that points to a U32 which will be set to 0 if no errors are
found; otherwise each error found will set a bit in it.  This can be
used by the caller to figure out precisely what the error(s) is/are.
Previously, one would have to capture and parse the warning/error
messages raised.   This can be used, for example, to customize the
messages to the expected end-user's knowledge level.
embed.fnc
embed.h
ext/XS-APItest/APItest.xs
ext/XS-APItest/t/utf8.t
pod/perldelta.pod
proto.h
utf8.c
utf8.h