| 程序包 | 说明 |
|---|---|
| com.github.houbb.opencc4j.core | |
| com.github.houbb.opencc4j.core.impl | |
| com.github.houbb.opencc4j.support.match | |
| com.github.houbb.opencc4j.support.match.impl |
| 限定符和类型 | 方法和说明 |
|---|---|
ZhConvertCoreContext |
ZhConvertCoreContext.dataMap(IDataMap dataMap) |
ZhConvertCoreContext |
ZhConvertCoreContext.isSimpleMatch(ZhMatch isSimpleMatch) |
ZhConvertCoreContext |
ZhConvertCoreContext.isTraditionalMatch(ZhMatch isTraditionalMatch) |
static ZhConvertCoreContext |
ZhConvertCoreContext.newInstance() |
ZhConvertCoreContext |
ZhConvertCoreContext.segment(Segment segment) |
ZhConvertCoreContext |
ZhConvertCoreContext.unitConvert(UnitConvert unitConvert) |
ZhConvertCoreContext |
ZhConvertCoreContext.zhChars(ZhChar zhChars) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
ZhConvertCore.containsChinese(String charOrPhrase,
ZhConvertCoreContext context)
是否包含中文
1.
|
boolean |
ZhConvertCore.containsSimple(String charOrPhrase,
ZhConvertCoreContext context)
是否包含简体
|
boolean |
ZhConvertCore.containsTraditional(String charOrPhrase,
ZhConvertCoreContext context)
是否包含繁体
1.
|
boolean |
ZhConvertCore.isChinese(char c,
ZhConvertCoreContext context)
是否为中文字符
|
boolean |
ZhConvertCore.isChinese(String charOrPhrase,
ZhConvertCoreContext context)
是否全部为中文
1.
|
boolean |
ZhConvertCore.isSimple(char c,
ZhConvertCoreContext context)
是否为简体中文字符
|
boolean |
ZhConvertCore.isSimple(String charOrPhrase,
ZhConvertCoreContext context)
是否全部为简体
|
boolean |
ZhConvertCore.isTraditional(char c,
ZhConvertCoreContext context)
是否为繁体中文字符
|
boolean |
ZhConvertCore.isTraditional(String charOrPhrase,
ZhConvertCoreContext context)
是否全部为繁体
1.
|
List<String> |
ZhConvertCore.simpleList(String original,
ZhConvertCoreContext context)
返回简体字列表
|
List<String> |
ZhConvertCore.toSimple(char c,
ZhConvertCoreContext context)
返回单个汉字对应的简体汉字列表
|
String |
ZhConvertCore.toSimple(String original,
ZhConvertCoreContext context)
转换为简体
|
List<String> |
ZhConvertCore.toTraditional(char c,
ZhConvertCoreContext context)
返回单个汉字对应的繁体汉字列表
|
String |
ZhConvertCore.toTraditional(String original,
ZhConvertCoreContext context)
转换为繁体
|
List<String> |
ZhConvertCore.traditionalList(String original,
ZhConvertCoreContext context)
返回繁体字列表
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
ZhConvertCoreDefault.containsChinese(String charOrPhrase,
ZhConvertCoreContext context) |
boolean |
ZhConvertCoreDefault.containsSimple(String charOrPhrase,
ZhConvertCoreContext context) |
boolean |
ZhConvertCoreDefault.containsTraditional(String charOrPhrase,
ZhConvertCoreContext context) |
protected String |
ZhConvertCoreDefault.convert(String original,
ZhConvertCoreContext context,
Map<String,List<String>> phraseData,
Map<String,List<String>> charData)
指定转换
|
boolean |
ZhConvertCoreDefault.isChinese(char c,
ZhConvertCoreContext context) |
boolean |
ZhConvertCoreDefault.isChinese(String charOrPhrase,
ZhConvertCoreContext context) |
boolean |
ZhConvertCoreDefault.isSimple(char c,
ZhConvertCoreContext context) |
boolean |
ZhConvertCoreDefault.isSimple(String charOrPhrase,
ZhConvertCoreContext context) |
boolean |
ZhConvertCoreDefault.isTraditional(char c,
ZhConvertCoreContext context) |
boolean |
ZhConvertCoreDefault.isTraditional(String charOrPhrase,
ZhConvertCoreContext context) |
List<String> |
ZhConvertCoreDefault.simpleList(String original,
ZhConvertCoreContext context) |
List<String> |
ZhConvertCoreDefault.toSimple(char c,
ZhConvertCoreContext context) |
String |
ZhConvertCoreDefault.toSimple(String original,
ZhConvertCoreContext context) |
List<String> |
ZhConvertCoreDefault.toTraditional(char c,
ZhConvertCoreContext context) |
String |
ZhConvertCoreDefault.toTraditional(String original,
ZhConvertCoreContext context) |
List<String> |
ZhConvertCoreDefault.traditionalList(String original,
ZhConvertCoreContext context) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
ZhMatch.match(String text,
ZhConvertCoreContext context)
匹配结果
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected boolean |
AbstractZhMatchOverHalf.doMatch(String text,
List<String> chars,
ZhConvertCoreContext context) |
protected boolean |
AbstractZhMatchAny.doMatch(String text,
List<String> chars,
ZhConvertCoreContext context) |
protected boolean |
AbstractZhMatchAll.doMatch(String text,
List<String> chars,
ZhConvertCoreContext context) |
protected abstract boolean |
AbstractZhMatch.doMatch(String text,
List<String> chars,
ZhConvertCoreContext context) |
protected boolean |
AbstractZhMatch.isChinese(String charSeg,
ZhConvertCoreContext context)
是否为中文
|
protected boolean |
AbstractZhMatch.isSimple(String charSeg,
ZhConvertCoreContext context) |
protected boolean |
AbstractZhMatch.isTraditional(String charSeg,
ZhConvertCoreContext context) |
boolean |
AbstractZhMatch.match(String text,
ZhConvertCoreContext context) |
protected boolean |
TraditionalZhMatchOverHalf.matchCondition(String fullText,
String chars,
ZhConvertCoreContext context) |
protected boolean |
TraditionalZhMatchAny.matchCondition(String fullText,
String chars,
ZhConvertCoreContext context) |
protected boolean |
TraditionalZhMatchAll.matchCondition(String fullText,
String chars,
ZhConvertCoreContext context) |
protected boolean |
SimpleZhMatchOverHalf.matchCondition(String fullText,
String chars,
ZhConvertCoreContext context) |
protected boolean |
SimpleZhMatchAny.matchCondition(String fullText,
String chars,
ZhConvertCoreContext context) |
protected boolean |
SimpleZhMatchAll.matchCondition(String fullText,
String chars,
ZhConvertCoreContext context) |
protected abstract boolean |
AbstractZhMatchOverHalf.matchCondition(String fullText,
String chars,
ZhConvertCoreContext context) |
protected abstract boolean |
AbstractZhMatchAny.matchCondition(String fullText,
String chars,
ZhConvertCoreContext context) |
protected abstract boolean |
AbstractZhMatchAll.matchCondition(String fullText,
String chars,
ZhConvertCoreContext context) |
Copyright © 2025. All rights reserved.