diff options
author | hyzgh <31174102+hyzgh@users.noreply.github.com> | 2019-08-20 19:50:37 +0800 |
---|---|---|
committer | hyzgh <31174102+hyzgh@users.noreply.github.com> | 2019-08-21 18:08:30 +0800 |
commit | 5cb8bab84fe08b93191ed0385c016592d2ac7cc4 (patch) | |
tree | a30d2d0265082e83b54a85d647255d74cd59c319 /util.go | |
parent | bd30e05dff3288bc54bb696a45c4ec45ceb1156d (diff) |
fix split line bug
Change-Id: I224a7ec1af8386dcbef757c76389fb88316401bc
Diffstat (limited to 'util.go')
-rw-r--r-- | util.go | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -444,3 +444,11 @@ func remove(arr []int, key int) []int { } return append(arr[:n], arr[n+1:]...) } + +func isChinese(rune2 rune) bool { + // chinese unicode: 4e00-9fa5 + if rune2 >= rune(0x4e00) && rune2 <= rune(0x9fa5) { + return true + } + return false +} |