This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
POSIX::localeconv() Use new fcn; avoid recalcs
authorKarl Williamson <khw@cpan.org>
Wed, 17 Jan 2018 19:40:40 +0000 (12:40 -0700)
committerKarl Williamson <khw@cpan.org>
Wed, 31 Jan 2018 05:58:15 +0000 (22:58 -0700)
commit40e3578e16b821e3d7451b12ef6adaab223ce037
tree7534666972a2e3af97ed03c82b76bbc9c1485b28
parent93e25eee77b400afab2c5cb9ad09a5c79ada1eda
POSIX::localeconv() Use new fcn; avoid recalcs

This calls strlen() once, instead of passing 0 to the the subsidiary
functions which causes them to call it each time.  It also uses the new
function is_utf8_non_invariant_string() instead of doing here what that
function does.
ext/POSIX/POSIX.xs