func StringWidth(v string) int {
	r := 0
	for _, c := range []rune(v) {
		if IsChineseChar(string(c)) {
			r = r + 2
		} else {
			r = r + 1
		}
	}
	return r
}
// StringWidth chinese char is width 2
StringWidth chinese char is width 2
// StringWidth chinese char is width 2
func StringWidth(v string) int {
	r := 0
	for _, c := range []rune(v) {
		if IsChineseChar(string(c)) {
			r = r + 2
		} else {
			r = r + 1
		}
	}
	return r
}
func StringWidth ( v string ) int { r := 0 for _ , c := range [ ] rune ( v ) { if IsChineseChar ( string ( c ) ) { r = r + 2 } else { r = r + 1 } } return r }
StringWidth chinese char is width 2
StringWidth chinese char is width 2