This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Refactor is_CNTRL_utf8(), is_utf8_cntrl()
authorKarl Williamson <public@khwilliamson.com>
Mon, 19 Nov 2012 20:00:47 +0000 (13:00 -0700)
committerKarl Williamson <public@khwilliamson.com>
Tue, 20 Nov 2012 00:13:02 +0000 (17:13 -0700)
commita35d759aff667e2ddcde81fae0f6dbaecf27e7b1
tree1aac74583e9354b7083ed2234c8f64d610c40669
parent252810d00e9eadb69251e8aa6b3f673d031b7a44
Refactor is_CNTRL_utf8(), is_utf8_cntrl()

All controls will always be in the Latin1 range by Unicode's stability
policy.  This means that we don't have to call is_utf8_cntrl() when the
input to the is_CNTRL_utf8() macro is above Latin1; we can just fail.
And that means that Perl_is_utf8_cntrl() can just use the macro.
handy.h
utf8.c