SADAHIRO Tomoyuki

NAME

ShiftJIS::CP932::MapUTF::Supplements - Supplemental Mapping from Unicode to Microsoft Windows CP-932

SYNOPSIS

  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);

DESCRIPTION

This module provides some supplemental mappings (fallbacks) from Unicode to CP-932, via a coderef.

$cp932_char = to_cp932_supplements($unicode_codepoint)

It returns a CP-932 character (as a string) for some Unicode code points which are not mapped to CP-932. Otherwise it returns a null string.

e.g. to_cp932_supplements(0xA5) returns "\x5C".

DISCLAIMER

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.

AUTHOR

SADAHIRO Tomoyuki <SADAHIRO@cpan.org>

Copyright(C) 2001-2007, 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.

SEE ALSO

ShiftJIS::CP932::MapUTF