Package org.lionsoul.jcseg.util
Class STConverter
- java.lang.Object
-
- org.lionsoul.jcseg.util.STConverter
-
public class STConverter extends Object
Simplified and traditional chinese convert class all the search work base on
String.indexOf(int)you may store all the words in a HashMap for the purpuse of a faster fetch- Author:
- chenxin
-
-
Constructor Summary
Constructors Constructor Description STConverter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringSimToTraditional(String str)convert the simplified words to traditional words of the specified string.static voidSimToTraditional(String str, IStringBuffer isb)static StringTraToSimplified(String str)convert the traditional words to simplified words of the specified string.static voidTraToSimplified(String str, IStringBuffer isb)
-
-
-
Field Detail
-
SIMSTR
public static final String SIMSTR
- See Also:
- Constant Field Values
-
TRASTR
public static final String TRASTR
- See Also:
- Constant Field Values
-
-
Method Detail
-
SimToTraditional
public static String SimToTraditional(String str)
convert the simplified words to traditional words of the specified string.- Parameters:
str-- Returns:
- String
-
SimToTraditional
public static void SimToTraditional(String str, IStringBuffer isb)
-
TraToSimplified
public static String TraToSimplified(String str)
convert the traditional words to simplified words of the specified string.- Parameters:
str-- Returns:
- String
-
TraToSimplified
public static void TraToSimplified(String str, IStringBuffer isb)
-
-