Class OpenFullWidth

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

public final class OpenFullWidth extends Object
Full-Width Character Utility - Converts between full-width and half-width characters. 全角字符工具 - 提供全角和半角字符之间的转换方法。

Features | 主要功能:

  • Full-width to half-width conversion - 全角转半角
  • Half-width to full-width conversion - 半角转全角
  • Full-width space handling - 全角空格处理

Usage Examples | 使用示例:

String half = OpenFullWidth.toHalfWidth("ABC"); // "ABC"
String full = OpenFullWidth.toFullWidth("ABC");

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

    • toHalfWidth

      public static String toHalfWidth(String str)
    • toFullWidth

      public static String toFullWidth(String str)