Class OpenChinese
java.lang.Object
cloud.opencode.base.string.unicode.OpenChinese
Chinese Character Utility - Provides Chinese character detection and manipulation.
中文字符工具 - 提供中文字符检测和操作方法。
Features | 主要功能:
- Chinese character detection - 中文字符检测
- Simplified/Traditional conversion - 简繁转换
- Chinese string containment check - 中文字符串包含检查
Usage Examples | 使用示例:
boolean isCN = OpenChinese.isChinese('中'); // true
boolean has = OpenChinese.containsChinese("abc中文"); // true
Security | 安全性:
- Thread-safe: Yes (stateless utility) - 线程安全: 是(无状态工具类)
- Null-safe: Yes - 空值安全: 是
- Since:
- JDK 25, opencode-base-string V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleancontainsChinese(String str) static booleanisAllChinese(String str) static booleanisChinese(char c) static StringtoSimplified(String str) static StringtoTraditional(String str)
-
Method Details
-
toTraditional
-
toSimplified
-
isChinese
public static boolean isChinese(char c) -
containsChinese
-
isAllChinese
-