机器人< 2.3和java.text.Normalizer [英] android < 2.3 and java.text.Normalizer

查看:79
本文介绍了机器人< 2.3和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)获取源正规化从这里这里。 (这是一个几千行)

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆