diff options
author | Ted Trask <ttrask01@yahoo.com> | 2008-09-25 17:42:43 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2008-09-25 17:42:43 +0000 |
commit | c17faf4b793db95a6957fcf5af7b73acaee2dc76 (patch) | |
tree | b12d81f5e7289c356087f2c98303100d270b3502 /lib/join.lua | |
parent | 233c8fa138a387ae3fd99290db35b0f51eec055e (diff) | |
download | acf-core-c17faf4b793db95a6957fcf5af7b73acaee2dc76.tar.bz2 acf-core-c17faf4b793db95a6957fcf5af7b73acaee2dc76.tar.xz |
Removed split and join libraries. Join is handled by table.concat. Split is handled by format.string_to_table.
git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1515 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'lib/join.lua')
-rw-r--r-- | lib/join.lua | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/lib/join.lua b/lib/join.lua deleted file mode 100644 index e3621de..0000000 --- a/lib/join.lua +++ /dev/null @@ -1,25 +0,0 @@ ---[[ - module for joining an array to a string -]]-- - -module (..., package.seeall) - - --- This code comes from http://lua-users.org/wiki/SplitJoin --- --- Concat the contents of the parameter list, --- -- separated by the string delimiter (just like in perl) --- -- example: strjoin(", ", {"Anna", "Bob", "Charlie", "Dolores"}) -return function (delimiter, list) - local len = getn(list) - if len == 0 then - return "" - end - local string = list[1] - for i = 2, len do - string = string .. delimiter .. list[i] - end - return string -end - - |