mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
net.urllib module
This commit is contained in:

committed by
Alexander Medvednikov

parent
0197f20d47
commit
d3c89273e8
@ -399,6 +399,16 @@ pub fn (s string) index(p string) int {
|
||||
return -1
|
||||
}
|
||||
|
||||
pub fn (s string) index_any(chars string) int {
|
||||
for c in chars {
|
||||
index := s.index(c.str())
|
||||
if index != -1 {
|
||||
return index
|
||||
}
|
||||
}
|
||||
return -1
|
||||
}
|
||||
|
||||
pub fn (s string) last_index(p string) int {
|
||||
if p.len > s.len {
|
||||
return -1
|
||||
|
Reference in New Issue
Block a user