mirror of
https://github.com/vlang/v.git
synced 2025-09-15 15:32:27 +03:00
js: port more methods (os, builtin) (#12238)
This commit is contained in:
parent
7c1fff3495
commit
57c79770b3
6 changed files with 83 additions and 8 deletions
|
@ -910,3 +910,10 @@ pub fn (s string) index(search string) ?int {
|
|||
}
|
||||
return res
|
||||
}
|
||||
|
||||
pub fn (_rune string) utf32_code() int {
|
||||
res := 0
|
||||
#res.val = s.str.charCodeAt()
|
||||
|
||||
return res
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue