Move the includes/install to resources/install

This commit is contained in:
Mark Crane
2013-06-09 02:42:36 +00:00
parent c14ca04304
commit 567e554cb7
203 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
--add the explode function
function explode ( seperator, str )
local pos, arr = 0, {}
for st, sp in function() return string.find( str, seperator, pos, true ) end do -- for each divider found
table.insert( arr, string.sub( str, pos, st-1 ) ) -- attach chars left of current divider
pos = sp + 1 -- jump past current divider
end
table.insert( arr, string.sub( str, pos ) ) -- attach chars right of last divider
return arr
end