mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
encoding.utf8: remove const unicode_con_table_up_to_low table (#9672)
This commit is contained in:
@ -11,10 +11,10 @@ pub fn validate_str(str string) bool {
|
||||
return validate(str.str, str.len)
|
||||
}
|
||||
|
||||
pub fn validate(data byteptr, len int) bool {
|
||||
pub fn validate(data &byte, len int) bool {
|
||||
mut state := Utf8State{}
|
||||
for i := 0; i < len; i++ {
|
||||
s := unsafe {data[i]}
|
||||
s := unsafe { data[i] }
|
||||
if s == 0 {
|
||||
break
|
||||
}
|
||||
|
Reference in New Issue
Block a user