I use following APIs import sun.text.Normalizer with JDK5:
我使用以下api导入sun.text。标准化者JDK5:
- public static String decompose(String str, boolean compat, int options)
- 公共静态字符串分解(String str, boolean compat, int选项)
- public static final int getClass(int ch)
- 公共静态最终int getClass(int ch)
- public static String normalize(String str, Mode mode, int options)
- 公共静态字符串规范化(String str, Mode, int选项)
How do I upgrade code to JDK6 to achieve the same function? I search by google, but no result. thank you so much for tips.
如何将代码升级到JDK6以实现相同的功能?我用谷歌搜索,但是没有结果。非常感谢你的建议。
2 个解决方案
#1
2
You can use java.text.Normalizer. It has the method normalize
.
您可以使用java.text.Normalizer。它有规范化的方法。
#2
0
You should look at API java.text.Normalizer
您应该查看API java.text.Normalizer
As I'm comparing, sun.text.Normalizer and java.text.Normalizer, they seem quite the same.
因为我比较,sun.text。标准化者和text。正常化者,他们看起来完全一样。
#1
2
You can use java.text.Normalizer. It has the method normalize
.
您可以使用java.text.Normalizer。它有规范化的方法。
#2
0
You should look at API java.text.Normalizer
您应该查看API java.text.Normalizer
As I'm comparing, sun.text.Normalizer and java.text.Normalizer, they seem quite the same.
因为我比较,sun.text。标准化者和text。正常化者,他们看起来完全一样。