This website requires JavaScript.
Explore
Help
Sign In
vieter-v
/
v
Watch
2
Star
0
Fork
You've already forked v
0
Code
Issues
Pull Requests
Releases
Activity
5fb3c0e3a8
v
/
vlib
/
builtin
/
utf8_test.v
6 lines
107 B
V
Raw
Blame
History
fn
test_utf8_char_len
(
)
{
assert
utf8_char_len
(
`
a
`
)
==
1
s
:=
'
п
'
assert
utf8_char_len
(
s
[
0
]
)
==
2
}
Reference in New Issue
View Git Blame
Copy Permalink