ShiftJIS-CP932-MapUTF
view release on metacpan or search on metacpan
Converts Unicode to CP-932.
This B<Unicode> is coded in the Perl's internal format (see F<perlunicode>).
If not flagged with C<SVf_UTF8>, upgraded as an ISO 8859-1 (latin1) string.
B<This function is provided only for Perl 5.6.1 or later, and via XS.>
=item C<utf16_to_cp932([UNICODE_CALLBACK,] STRING [, UNICODE_OPTION])>
Converts UTF-16 (with or w/o C<BOM>) to CP-932.
=item C<utf16le_to_cp932([UNICODE_CALLBACK,] STRING [, UNICODE_OPTION])>
Converts UTF-16LE to CP-932.
=item C<utf16be_to_cp932([UNICODE_CALLBACK,] STRING [, UNICODE_OPTION])>
Converts UTF-16BE to CP-932.
=item C<utf32_to_cp932([UNICODE_CALLBACK,] STRING [, UNICODE_OPTION])>
Converts UTF-32 (with or w/o C<BOM>) to CP-932.
=item C<utf32le_to_cp932([UNICODE_CALLBACK,] STRING [, UNICODE_OPTION])>
Converts UTF-32LE to CP-932.
=item C<utf32be_to_cp932([UNICODE_CALLBACK,] STRING [, UNICODE_OPTION])>
Converts UTF-32BE to CP-932.
=back
B<On request:>
cp932_to_utf32le utf32le_to_cp932
cp932_to_utf32be utf32be_to_cp932
utf16_to_cp932 [*]
utf32_to_cp932 [*]
[*] Their counterparts C<cp932_to_utf16()> and C<cp932_to_utf32()>
are not implemented yet. They need more investigation
on return values from C<SJIS_CALLBACK>...
(concatenation needs recognition of and coping with C<BOM>)
=head1 CAVEAT
Pure Perl edition of this module doesn't understand
any logically wide characters (see F<perlunicode>).
Use C<utf8::decode>/C<utf8::encode> (see F<utf8>) on Perl 5.7 or later
if necessary.
=head1 AUTHOR
app_in_utf32be,
};
static UV (*ord_uv_in[])(U8 *, STRLEN, STRLEN *) = {
NULL,
ord_in_utf8,
ord_in_utf16le,
ord_in_utf16be,
ord_in_utf32le,
ord_in_utf32be,
ord_in_utf16be, /* w/o BOM*/
ord_in_utf32be, /* w/o BOM*/
};
MODULE = ShiftJIS::CP932::MapUTF PACKAGE = ShiftJIS::CP932::MapUTF
PROTOTYPES: DISABLE
void
cp932_to_unicode(...)
ALIAS:
MapUTF/Japanese.pod view on Meta::CPAN
Unicode ð CP-932 ÉÏ·µÜ·B
±Ì B<Unicode> ÍAPerl Ìà`®iF<perlunicode> QÆjB
C<SVf_UTF8> tOt«ÅÈ¢êAISO 8859-1 (latin1) ¶ñƵÄ
Unicode É upgrade ³êÜ·B
B<±ÌÖÍ Perl 5.6.1 È~A©Â XS ÅÅÌÝñ³êÜ·B>
=item C<utf16_to_cp932([UNICODE_CALLBACK,] STRING [, UNICODE_OPTION])>
UTF-16 (C<BOM> t«Ü½Í³µ) ð CP-932 ÉÏ·µÜ·B
=item C<utf16le_to_cp932([UNICODE_CALLBACK,] STRING [, UNICODE_OPTION])>
UTF-16LE ð CP-932 ÉÏ·µÜ·B
=item C<utf16be_to_cp932([UNICODE_CALLBACK,] STRING [, UNICODE_OPTION])>
UTF-16BE ð CP-932 ÉÏ·µÜ·B
=item C<utf32_to_cp932([UNICODE_CALLBACK,] STRING [, UNICODE_OPTION])>
UTF-32 (C<BOM> t«Ü½Í³µ) ð CP-932 ÉÏ·µÜ·B
=item C<utf32le_to_cp932([UNICODE_CALLBACK,] STRING [, UNICODE_OPTION])>
UTF-32LE ð CP-932 ÉÏ·µÜ·B
=item C<utf32be_to_cp932([UNICODE_CALLBACK,] STRING [, UNICODE_OPTION])>
UTF-32BE ð CP-932 ÉÏ·µÜ·B
=back
MapUTF/Japanese.pod view on Meta::CPAN
B<v³êêÎ:>
cp932_to_utf32le utf32le_to_cp932
cp932_to_utf32be utf32be_to_cp932
utf16_to_cp932 [*]
utf32_to_cp932 [*]
[*] ±êçÆÎ·×« C<cp932_to_utf16()> ¨æÑ C<cp932_to_utf32()>
Í¢ÀÅ·Bܾ C<SJIS_CALLBACK> ÌÔèlÉ¢Äव¢ª
KvÆl¦Ä¢Ü·B
i¶ñÌAÉ C<BOM> ÌF¯ÆªKvÆÈéŵå¤Bj
=head1 Ó
±ÌW
[Ì Pure Perl ÅÍCh¶iF<perlunicode> ðQÆjð
ðūܹñBKvÈçAPerl 5.7 È~Ì
C<utf8::decode>/C<utf8::encode>iF<utf8> ðQÆjðgÁľ³¢B
=head1 ìÒ
SADAHIRO Tomoyuki <SADAHIRO@cpan.org> iåA msj
( run in 0.609 second using v1.01-cache-2.11-cpan-131fc08a04b )