File: libunijp.mlpod

package info (click to toggle)
libunicode-japanese-perl 0.50-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,376 kB
  • sloc: ansic: 30,821; perl: 5,635; erlang: 224; makefile: 191
file content (109 lines) | stat: -rw-r--r-- 3,035 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109

=head1 NAME

Unicode::Japanese - Convert encoding of japanese text
J<< ja; Unicode::Japanese::JA - 日本語文字コード変換 >>

=head1 SYNOPSIS

 #include "unijp.h"

 unijp_t* uj = uj_new(str, str_len, ujc_auto);
 uj_uint8* utf8  = uj_to_utf8(uj);
 uj_uint8* sjis  = uj_to_sjis(uj);
 uj_uint8* eucjp = uj_to_eucjp(uj);
 uj_uint8* jis   = uj_to_jis(uj);
 uj_delete_buffer(uj, utf8);
 uj_delete_buffer(uj, sjis);
 uj_delete_buffer(uj, eucjp);
 uj_delete_buffer(uj, jis);
 uj_delete(uj);

 uj_charcode_t code = uj_getcode(str, str_len);
 printf("charset is %s\n", uj_charcode_str(code));

=head1 SUPPORTED ENCODINGS
J<< ja; サポートされているエンコーディング >>

 +---------------+----+-----+-------+
 |encoding       | in | out | guess |
 +---------------+----+-----+-------+
 |ujc_auto       : OK : --  | ----- |
 +---------------+----+-----+-------+
 |ujc_utf8       : OK : OK  | OK    |
 |ucs2           : OK : OK  | ----- |
 |utf16          : OK : OK  | OK(#) |
 +---------------+----+-----+-------+
 |ujc_sjis       : OK : OK  | OK    |
 |ujc_eucjp      : OK : OK  | OK    |
 |ujc_jis        : OK : OK  | OK    |
 |ujc_ascii      : OK : --  | OK    |
 |ujc_binary     : OK : OK  | ----- |
 |ujc_undefined  : -- : --  | (OK)  |
 +---------------+----+-----+-------+

=head1 BUGS

Please report bugs and requests to C<bug-unicode-japanese at rt.cpan.org> or
L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Unicode-Japanese>. If you
report them to the web interface, any progress to your report will be
automatically sent back to you.
J<< ja;
バグや要望は C<bug-unicode-japanese at rt.cpan.org> 宛に
報告してください. 若しくは
L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Unicode-Japanese>.
にある web インターフェースからでもかまいません.
そこから私に通知され, そして私が変更を行うことで報告頂いたバグの進捗は
自動的にあなたに伝わります.
>>

=head1 SUPPORT

You can find documentation for this module with the perldoc command.
J<< ja;
このモジュールのドキュメントは man コマンドで見ることが出来ます.
>>

    man libunijp

You can find more information at:
J<< ja;
また, 以下の場所でも見ることが出来ます:
>>


=over 4

=item * AnnoCPAN: Annotated CPAN documentation

L<http://annocpan.org/dist/Unicode-Japanese>

=item * CPAN Ratings

L<http://cpanratings.perl.org/d/Unicode-Japanese>

=item * RT: CPAN's request tracker

L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Unicode-Japanese>

=item * Search CPAN

L<http://search.cpan.org/dist/Unicode-Japanese>

=back

=head1 COPYRIGHT & LICENSE

Copyright 2001-2008
SANO Taku (SAWATARI Mikage) and YAMASHINA Hio,
all rights reserved.

This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
J<< ja;
このプログラムはフリーソフトウェアです。あなたは Perl と同じ
ライセンスの 元で再配布及び変更を行うことが出来ます.
>>

=cut