Class OpenChinese

java.lang.Object
cloud.opencode.base.string.unicode.OpenChinese

public final class OpenChinese extends Object
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 Details

    • toTraditional

      public static String toTraditional(String str)
    • toSimplified

      public static String toSimplified(String str)
    • isChinese

      public static boolean isChinese(char c)
    • containsChinese

      public static boolean containsChinese(String str)
    • isAllChinese

      public static boolean isAllChinese(String str)