diff options
author | Karl Williamson <khw@cpan.org> | 2015-01-14 11:01:21 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2015-01-14 11:18:19 -0700 |
commit | d1cef54a570d5ed7b6b443b65984965167a0a3ef (patch) | |
tree | cacd04e4c3a83b3e93a9a1bfda15d1a2015129da /t/charset_tools.pl | |
parent | 7bc44f185b5a15a31bcd895d928f90a19774fadd (diff) | |
download | perl-d1cef54a570d5ed7b6b443b65984965167a0a3ef.tar.gz |
t/charset_tools.pl: Improve function names
'latin1_to_native' and 'native_to_latin1' actually operate on all code
points, not just the ranges implied by their names. This commit changes
the names to reflect that, to 'uni_to_native' and 'native_to_uni'.
The old names have only been available since 5.21, so there is no
backcompat issue.
Diffstat (limited to 't/charset_tools.pl')
-rw-r--r-- | t/charset_tools.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/charset_tools.pl b/t/charset_tools.pl index 6d70a37cab..0621a7ae96 100644 --- a/t/charset_tools.pl +++ b/t/charset_tools.pl @@ -8,7 +8,7 @@ $::IS_EBCDIC = ord 'A' == 193; # the set of 256 characters which is usually called Latin1. However, they # will work properly with any character input, not just Latin1. -sub native_to_latin1($) { +sub native_to_uni($) { my $string = shift; return $string if $::IS_ASCII; @@ -23,7 +23,7 @@ sub native_to_latin1($) { return $output; } -sub latin1_to_native($) { +sub uni_to_native($) { my $string = shift; return $string if $::IS_ASCII; |