|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.mayhoo.kanji.JapaneseString
JapaneseString contains static functions to do various tests on Strings to determine if it consists 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. |
protected static String[] |
voicedRomaji
The array used to map hirgana to romaji. |
Constructor Summary | |
JapaneseString()
|
Method Summary | |
static boolean |
isFullwidthKatakana(String str)
Determines if this character is a Full width Katakana. |
static boolean |
isHalfwidthKatakana(String str)
Determines if this character is a Half width Katakana. |
static boolean |
isHiragana(String str)
Determines if this character is one of the Japanese Hiragana. |
static boolean |
isKana(String str)
Determines if this character is a Japanese Kana. |
static boolean |
isKanji(String str)
Determines if this character is a Kanji character. |
static boolean |
isKatakana(String str)
Determines if this character is one of the Japanese Katakana. |
static boolean |
isRomaji(String str)
Determines if this character could be used as part of a romaji character. |
static String |
toHiragana(String str)
Translates this character into the equivalent Hiragana character. |
static String |
toKatakana(String str)
Translates this character into the equivalent Katakana character. |
static String |
toRomaji(String str)
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
protected static String[] voicedRomaji
Constructor Detail |
public JapaneseString()
Method Detail |
public static boolean isKana(String str)
public static boolean isHiragana(String str)
public static boolean isKatakana(String str)
public static boolean isHalfwidthKatakana(String str)
public static boolean isFullwidthKatakana(String str)
public static boolean isKanji(String str)
public static boolean isRomaji(String str)
public static String toKatakana(String str)
public static String toHiragana(String str)
public static String toRomaji(String str)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |