ShiftJIS::CP932::MapUTF::Supplements - Supplemental Mapping from Unicode to Microsoft Windows CP-932
use ShiftJIS::CP932::MapUTF qw(:all); use ShiftJIS::CP932::MapUTF::Supplements; $cp932_string = utf8_to_cp932 (\&to_cp932_supplements, $utr8_string); $cp932_string = utf16_to_cp932 (\&to_cp932_supplements, $utf16_string); $cp932_string = utf16le_to_cp932(\&to_cp932_supplements, $utf16le_string); $cp932_string = utf16be_to_cp932(\&to_cp932_supplements, $utf16be_string); $cp932_string = utf32_to_cp932 (\&to_cp932_supplements, $utf32_string); $cp932_string = utf32le_to_cp932(\&to_cp932_supplements, $utf32le_string); $cp932_string = utf32be_to_cp932(\&to_cp932_supplements, $utf32be_string); $cp932_string = unicode_to_cp932(\&to_cp932_supplements, $unicode_string);
This module provides some supplemental mappings (fallbacks) from Unicode to CP-932, via a coderef.
$cp932_char = to_cp932_supplements($unicode_codepoint)
Returns a CP-932 character (as a string) for some Unicode code points unmapped to CP-932. Otherwise returns a null string.
e.g. to_cp932_supplements(0xA5) returns "\x5C".
to_cp932_supplements(0xA5)
"\x5C"
This module is an experimental release. Propriety of mapping is not guaranteed. Any of these supplemental mappings may be added, modified, or removed in future.
SADAHIRO Tomoyuki
SADAHIRO@cpan.org http://homepage1.nifty.com/nomenclator/perl/ Copyright(C) 2001-2003, SADAHIRO Tomoyuki. Japan. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install ShiftJIS::CP932::MapUTF, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ShiftJIS::CP932::MapUTF
CPAN shell
perl -MCPAN -e shell install ShiftJIS::CP932::MapUTF
For more information on module installation, please visit the detailed CPAN module installation guide.