Skip to content

Commit

Permalink
*和#的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
NashLegend committed Mar 6, 2015
1 parent 36214b6 commit dc49820
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Binary file modified release/QuicKid.apk
Binary file not shown.
4 changes: 3 additions & 1 deletion src/net/nashlegend/quickid/util/HanyuPinyinHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,10 @@ private void convert(int n, String str) {
}
} else {
// 任意非数字与字母的char均当成空格
if (Character.isDigit(c) || TextUtil.isEnglishCharactor(c) || c == '#' || c == '*') {
if (Character.isDigit(c) || TextUtil.isEnglishCharactor(c)) {
buffer.append(c);
} else if (c == '#' || c == '*') {
buffer.append(" ").append(c).append(" ");
} else {
buffer.append(" ");
}
Expand Down

0 comments on commit dc49820

Please sign in to comment.