Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --AST API
- --Advanced String Tools
- version = 2
- function chp(p)
- local s = string.sub(p,-1)
- if s == "/" then
- return p
- else
- return p.."/"
- end
- end
- function split(inputstr, sep)
- if sep == nil then
- sep = "%s"
- end
- local t={} ; i=1
- for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
- t[i] = str
- i = i + 1
- end
- return t
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement