mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
parent
90fdf102fc
commit
55eccf6abe
2 changed files with 70 additions and 7 deletions
|
@ -7,13 +7,10 @@ pub:
|
|||
}
|
||||
|
||||
pub fn (s string) runes() []rune {
|
||||
mut runes := []rune{}
|
||||
for i := 0; i < s.len; i++ {
|
||||
mut r := rune(`0`)
|
||||
#r = new rune(s.str[i.val].charCodeAt())
|
||||
runes << r
|
||||
}
|
||||
return runes
|
||||
ret := JS.makeEmptyArray()
|
||||
#for (r of s.str) array_push(ret,new rune(r),false);
|
||||
|
||||
return ret
|
||||
}
|
||||
|
||||
pub fn (s string) slice(a int, b int) string {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue