1
0
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:
joe-conigliaro
2019-08-01 23:01:03 +10:00
committed by Alexander Medvednikov
parent 0197f20d47
commit d3c89273e8
5 changed files with 1213 additions and 0 deletions

View File

@ -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