|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjp.sourceforge.livez.lang.EZwebEmojiUtils
public final class EZwebEmojiUtils
EZweb の絵文字に関するユーティリティクラスです。
| メソッドの概要 | |
|---|---|
static int |
getMaxEmojiNumber()
絵文字番号の最大番号を返します。 |
static boolean |
isAllowInput(char c)
指定された絵文字がユーザが入力可能な絵文字かどうかを返します。 |
static boolean |
isAllowInput(int n)
指定された絵文字がユーザが入力可能な絵文字かどうかを返します。 |
static boolean |
isDenyInput(char c)
指定された絵文字がユーザが入力不可能な絵文字かどうかを返します。 |
static boolean |
isDenyInput(int n)
指定された絵文字がユーザが入力不可能な絵文字かどうかを返します。 |
static boolean |
isEmoji(char c)
指定された文字が EZweb 絵文字かどうかを返します。 |
static boolean |
isEmoji(String s)
指定された文字列中に EZweb 絵文字が存在するかどうかを返します。 |
static String |
removeEmoji(String s)
指定された文字列から EZweb 絵文字を削除して返します。 |
static String |
renderHdmlTag(char c)
指定された絵文字から HDML の絵文字用タグを作成して返します。 |
static String |
renderHdmlTag(int n)
指定された絵文字番号から HDML の絵文字用タグを作成して返します。 |
static String |
renderXhtmlTag(char c)
指定された絵文字から XHTML Basic の絵文字用タグを作成して返します。 |
static String |
renderXhtmlTag(int n)
指定された絵文字番号から XHTML Basic の絵文字用タグを作成して返します。 |
static char |
toChar(int n)
指定された絵文字番号に対応する絵文字を返します。 |
static int |
toEmojiNumber(char c)
指定された文字に対応する絵文字番号を返します。 |
static int |
toEmojiNumber(String s)
|
static String |
toString(int n)
指定された絵文字番号に対応する絵文字を返します。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| メソッドの詳細 |
|---|
public static int getMaxEmojiNumber()
public static int toEmojiNumber(char c)
対応する絵文字番号が見つからない場合は、-1 が返されます。
c - 文字
-1
public static char toChar(int n)
throws IllegalArgumentException
n - 絵文字番号
IllegalArgumentException - 絵文字番号の値が不正な場合
public static String toString(int n)
throws IllegalArgumentException
n - 絵文字番号
IllegalArgumentException - 絵文字番号の値が不正な場合public static boolean isEmoji(char c)
c - 文字
public static boolean isEmoji(String s)
s - 文字列
public static String removeEmoji(String s)
指定された文字列が null の場合は、null を返します。
s - 文字列
public static int toEmojiNumber(String s)
throws IllegalArgumentException
IllegalArgumentExceptionpublic static boolean isAllowInput(char c)
c - 絵文字
public static boolean isAllowInput(int n)
throws IllegalArgumentException
n - 絵文字番号
IllegalArgumentException - 絵文字番号の値が不正な場合public static boolean isDenyInput(char c)
c - 絵文字
public static boolean isDenyInput(int n)
throws IllegalArgumentException
n - 絵文字番号
IllegalArgumentException - 絵文字番号の値が不正な場合public static String renderHdmlTag(int n)
n - 絵文字番号
public static String renderHdmlTag(char c)
c - 絵文字
public static String renderXhtmlTag(int n)
n - 絵文字番号
public static String renderXhtmlTag(char c)
c - 絵文字
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||