func isBMP(s string) bool {
for _, r := range s {
if r > 0xFFFF {
return false
}
}
return true
}
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme