mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
builtin: fix for utf8_str_visible_length for CJK Unified Ideographs Extension G (#9739)
This commit is contained in:
parent
9d6caa1d5d
commit
4ecc5001b9
@ -182,7 +182,7 @@ pub fn utf8_str_visible_length(s string) int {
|
|||||||
if (r >= 0x0f9f8880 && r <= 0xf09f8a8f)
|
if (r >= 0x0f9f8880 && r <= 0xf09f8a8f)
|
||||||
|| (r >= 0xf09f8c80 && r <= 0xf09f9c90)
|
|| (r >= 0xf09f8c80 && r <= 0xf09f9c90)
|
||||||
|| (r >= 0xf09fa490 && r <= 0xf09fa7af)
|
|| (r >= 0xf09fa490 && r <= 0xf09fa7af)
|
||||||
|| (r >= 0xff0a08080 && r <= 0xf180807f) {
|
|| (r >= 0xf0a08080 && r <= 0xf180807f) {
|
||||||
l++
|
l++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user