Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Golang 统计字符串字数 #4

Open
tanteng opened this issue Apr 5, 2022 · 0 comments
Open

Golang 统计字符串字数 #4

tanteng opened this issue Apr 5, 2022 · 0 comments

Comments

@tanteng
Copy link
Owner

tanteng commented Apr 5, 2022

https://tanteng.github.io/2018/05/golang-str-length/

比如新浪微博发微博的输入框有一个已输入字数的统计,它的规则推测是:汉字和中文标点算 1 个字数,英文和其他符号算 0.5 个字数。不足 1 个字算 1 个。大家

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant