|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.mayhoo.kanji.JapaneseCharacter
JapaneseCharacter contains static functions to do various tests on characters to determine if it is one of the various types of characters used in the japanese writing system. There are also a functions to translate between Katakana, Hiragana, and Romaji.
Field Summary | |
protected static String[] |
romaji
The array used to map hirgana to romaji. |
Constructor Summary | |
JapaneseCharacter()
|
Method Summary | |
static boolean |
isFullwidthKatakana(char c)
Determines if this character is a Full width Katakana. |
static boolean |
isHalfwidthKatakana(char c)
Determines if this character is a Half width Katakana. |
static boolean |
isHiragana(char c)
Determines if this character is one of the Japanese Hiragana. |
static boolean |
isKana(char c)
Determines if this character is a Japanese Kana. |
static boolean |
isKanji(char c)
Determines if this character is a Kanji character. |
static boolean |
isKatakana(char c)
Determines if this character is one of the Japanese Katakana. |
static boolean |
isRomaji(char c)
Determines if this character could be used as part of a romaji character. |
static char |
toHiragana(char c)
Translates this character into the equivalent Hiragana character. |
static char |
toKatakana(char c)
Translates this character into the equivalent Katakana character. |
static String |
toRomaji(char c)
Translates this character into the equivalent Romaji character. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static String[] romaji
Constructor Detail |
public JapaneseCharacter()
Method Detail |
public static boolean isKana(char c)
public static boolean isHiragana(char c)
public static boolean isKatakana(char c)
public static boolean isHalfwidthKatakana(char c)
public static boolean isFullwidthKatakana(char c)
public static boolean isKanji(char c)
public static boolean isRomaji(char c)
public static char toKatakana(char c)
public static char toHiragana(char c)
public static String toRomaji(char c)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |