机器人&LT; 2.3和java.text.Normalizer [英] android < 2.3 and java.text.Normalizer
问题描述
什么是android的版本,以最好的替代品java.text.Normalizer previous超过2.3? <一href="http://developer.android.com/reference/java/text/Normalizer.html">http://developer.android.com/reference/java/text/Normalizer.html
What's the best alternative to to java.text.Normalizer in android versions previous than 2.3? http://developer.android.com/reference/java/text/Normalizer.html
我需要匹配字符串如
perché perchè perche
感谢
尼古拉·
推荐答案
我有两个解决方案:
1.) Get the source for Normalizer from here and here. (it's a few thousand lines)
2)构建一个简单的翻译的HashMap自己。也许你将只有法国用户有一段时间了?这是一个次优的解决方案,但实际直到你的应用程序去世界各地。
2.) Build a simple translation HashMap yourself. Maybe your will have just French users for some time? This is a suboptimal solution but practical until your app goes worldwide.
这篇关于机器人&LT; 2.3和java.text.Normalizer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!