public static String toDBC(String str) {
char[] c = str.toCharArray();
for (int i = 0; i < c.length; i++) {
if (' ' == c[i]) {
c[i] = '\u3000';
} else if (c[i] < '\177') {
c[i] = (char) (c[i] + 65248);
}
}
return new String(c);
}
半角转为圆角
最新推荐文章于 2024-07-03 03:20:18 发布