由网友(抉择)分享简介:什么是android的版本,以最好的替代品java.text.Normalizer previous超过2.3?http://developer.android.com/reference/java/text/Normalizer.htmlWhat's the best alternative to to java...
什么是android的版本,以最好的替代品java.text.Normalizer previous超过2.3? 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)获取源正规化从这里和这里。 (这是一个几千行)
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.
相关推荐
最新文章