The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

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

SYNOPSIS

  use ShiftJIS::CP932::MapUTF;
  use ShiftJIS::CP932::MapUTF::Supplements;

  $cp932_string  = unicode_to_cp932(\&to_cp932_supplements, $unicode_string);
  $cp932_string  = utf16be_to_cp932(\&to_cp932_supplements, $utf16be_string);
  $cp932_string  = utf16le_to_cp932(\&to_cp932_supplements, $utf16le_string);

DESCRIPTION

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

$cp932_char = to_cp932_supplements($unicode_codepoint)

Returns a Windows CP-932 character (as a string) for some Unicode codepoints unmapped to Windows CP-932. Otherwise returns a null string.

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

CAVEAT

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

Tomoyuki SADAHIRO

  bqw10602@nifty.com
  http://homepage1.nifty.com/nomenclator/perl/

  Copyright(C) 2001-2002, SADAHIRO Tomoyuki. Japan. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

ShiftJIS::CP932::MapUTF