Encode::JP::Mobile::Character - pictogram character object
my $char = Encode::JP::Mobile::Character->from_unicode(0xE63E); $char->name; # => 晴れ
絵文字の文字を表現するオブジェクトです。
my $char = Encode::JP::Mobile::Character->from_unicode(0xE63E);
unicode からインスタンスをつくります。
my $char = Encode::JP::Mobile::Character->from_number( carrier => 'I', number => "拡76", );
絵文字番号からインスタンスをつくります。
$char->name; # => 晴れ
絵文字の名称を得ます。
$char->name_en; # => Fine
絵文字の英語での名称を得ます。
$char->unicode_hex; # => "E63E"
ユニコードの16進数4桁による文字列の表現を返します。
$char->fallback_name('I'); # => (>3<)
メール受信時のキャリヤ間相互絵文字変換において、絵文字に変換されないときに変換される文字列です。
引数は I, E, V, H のうちいずれかで、これは HTTP::MobileAgent 準拠です。
$char->number;
絵文字番号を得ます。
DoCoMo の場合には「拡76」のような文字列が返ってくることに注意してください。
$char->carrier;
キャリヤを得ます。HTTP::MobileAgent と同じ規則により、I, E, V のうちいずれかを返します。 絵文字ではない場合には、undef を返します。
Tokuhiro Matsuno
Encode::JP::Mobile
To install Encode::JP::Mobile, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Encode::JP::Mobile
CPAN shell
perl -MCPAN -e shell install Encode::JP::Mobile
For more information on module installation, please visit the detailed CPAN module installation guide.