ShiftJIS-X0213-MapUTF
view release on metacpan or search on metacpan
=item C<unicode_to_sjis2004([UNICODE_CALLBACK,] STRING)>
Converts Unicode to Shift_JIS-2004.
This B<Unicode> is in the Perl's internal format (see F<perlunicode>).
If C<SVf_UTF8> is not turned on,
C<STRING> is upgraded as an ISO 8859-1 (latin1) string.
=item C<utf16_to_sjis2004([UNICODE_CALLBACK,] STRING)>
Converts UTF-16 (with or w/o C<BOM>) to Shift_JIS-2004.
=item C<utf16le_to_sjis2004([UNICODE_CALLBACK,] STRING)>
Converts UTF-16LE to Shift_JIS-2004.
=item C<utf16be_to_sjis2004([UNICODE_CALLBACK,] STRING)>
Converts UTF-16BE to Shift_JIS-2004.
=item C<utf32_to_sjis2004([UNICODE_CALLBACK,] STRING)>
Converts UTF-32 (with or w/o C<BOM>) to Shift_JIS-2004.
=item C<utf32le_to_sjis2004([UNICODE_CALLBACK,] STRING)>
Converts UTF-32LE to Shift_JIS-2004.
=item C<utf32be_to_sjis2004([UNICODE_CALLBACK,] STRING)>
Converts UTF-32BE to Shift_JIS-2004.
=item C<utf8_to_sjis0213([UNICODE_CALLBACK,] STRING)>
=item C<unicode_to_sjis0213([UNICODE_CALLBACK,] STRING)>
Converts Unicode to Shift_JISX0213.
This B<Unicode> is in the Perl's internal format (see F<perlunicode>).
If C<SVf_UTF8> is not turned on,
C<STRING> is upgraded as an ISO 8859-1 (latin1) string.
=item C<utf16_to_sjis0213([UNICODE_CALLBACK,] STRING)>
Converts UTF-16 (with or w/o C<BOM>) to Shift_JISX0213.
=item C<utf16le_to_sjis0213([UNICODE_CALLBACK,] STRING)>
Converts UTF-16LE to Shift_JISX0213.
=item C<utf16be_to_sjis0213([UNICODE_CALLBACK,] STRING)>
Converts UTF-16BE to Shift_JISX0213.
=item C<utf32_to_sjis0213([UNICODE_CALLBACK,] STRING)>
Converts UTF-32 (with or w/o C<BOM>) to Shift_JISX0213.
=item C<utf32le_to_sjis0213([UNICODE_CALLBACK,] STRING)>
Converts UTF-32LE to Shift_JISX0213.
=item C<utf32be_to_sjis0213([UNICODE_CALLBACK,] STRING)>
Converts UTF-32BE to Shift_JISX0213.
=back
sjis0213_to_utf32le utf32le_to_sjis0213
sjis0213_to_utf32be utf32be_to_sjis0213
utf16_to_sjis0213 [*]
utf32_to_sjis0213 [*]
[*] Their counterparts C<sjis2004_to_utf16()>, C<sjis2004_to_utf32()>,
C<sjis0213_to_utf16()> and C<sjis0213_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 BUGS
On mapping between SJIS-X and Unicode used in this module,
notice that:
=over 4
=item *
app_in_utf32be,
};
static UV (*ord_uv_in[NUM_fromUTF])(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::X0213::MapUTF PACKAGE = ShiftJIS::X0213::MapUTF
PROTOTYPES: DISABLE
void
sjis2004_to_unicode (...)
ALIAS:
sjis2004_to_utf8 = 1
( run in 0.895 second using v1.01-cache-2.11-cpan-131fc08a04b )