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
| Modifier and Type | Field and Description |
|---|---|
static String |
SIMSTR |
static String |
TRASTR |
| Constructor and Description |
|---|
STConverter() |
| Modifier and Type | Method and Description |
|---|---|
static String |
SimToTraditional(String str)
convert the simplified words to traditional words
of the specified string.
|
static void |
SimToTraditional(String str,
IStringBuffer isb) |
static String |
TraToSimplified(String str)
convert the traditional words to simplified words
of the specified string.
|
static void |
TraToSimplified(String str,
IStringBuffer isb) |
public static final String SIMSTR
public static final String TRASTR
public static String SimToTraditional(String str)
str - public static void SimToTraditional(String str, IStringBuffer isb)
public static String TraToSimplified(String str)
str - public static void TraToSimplified(String str, IStringBuffer isb)
Copyright © 2017. All Rights Reserved.