mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
js: make vlib/v/util compile on JS backend (#12660)
This commit is contained in:
@ -11,3 +11,7 @@ pub fn utf8_str_visible_length(s string) int {
|
||||
pub fn utf8_str_len(s string) int {
|
||||
return s.len
|
||||
}
|
||||
|
||||
pub fn utf8_char_len(b byte) int {
|
||||
return ((0xe5000000 >> ((b >> 3) & 0x1e)) & 3) + 1
|
||||
}
|
||||
|
Reference in New Issue
Block a user