Android Utililty Methods Chinese String Length Get

List of utility methods to do Chinese String Length Get

Description

The list of methods to do Chinese String Length Get are organized into topic(s).

Method

intgetChineseLength(String value)
get Chinese Length
int valueLength = 0;
String chinese = "[\u0391-\uFFE5]";
for (int i = 0; i < value.length(); i++) {
    String temp = value.substring(i, i + 1);
    if (temp.matches(chinese)) {
        valueLength += 1;
return valueLength;