aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-05-15 14:27:59 +1000
committerDavid Walter Seikel2014-05-15 14:27:59 +1000
commita1d3eb9ab650e843227c01a3c1b37fed09e98f80 (patch)
treecda708a7ec2074dd876bf060e7994a8e6b47a6a9
parentEscape notecard lines. (diff)
downloadSledjHamr-a1d3eb9ab650e843227c01a3c1b37fed09e98f80.zip
SledjHamr-a1d3eb9ab650e843227c01a3c1b37fed09e98f80.tar.gz
SledjHamr-a1d3eb9ab650e843227c01a3c1b37fed09e98f80.tar.bz2
SledjHamr-a1d3eb9ab650e843227c01a3c1b37fed09e98f80.tar.xz
Comment out list parsing debugs, seems to be working fine now.
-rw-r--r--lib/LSL.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/LSL.lua b/lib/LSL.lua
index ad56a37..98444cc 100644
--- a/lib/LSL.lua
+++ b/lib/LSL.lua
@@ -709,6 +709,7 @@ function --[[list]] LSL.llParseStringKeepNulls(--[[string]] In, --[[list]] l, --
709 local c = 1 709 local c = 1
710 local lastE = 0 710 local lastE = 0
711 711
712--[[
712print("LSL.llParseStringKeepNulls(" .. In .. ") " .. #In) 713print("LSL.llParseStringKeepNulls(" .. In .. ") " .. #In)
713for i, v in ipairs(l) do 714for i, v in ipairs(l) do
714 print(" [" .. v .. "]") 715 print(" [" .. v .. "]")
@@ -717,6 +718,7 @@ print(",")
717for i, v in ipairs(l1) do 718for i, v in ipairs(l1) do
718 print(" {" .. v .. "}") 719 print(" {" .. v .. "}")
719end 720end
721]]
720 722
721 -- Start scanning at the beginning of the string. 723 -- Start scanning at the beginning of the string.
722 repeat 724 repeat
@@ -766,10 +768,12 @@ end
766 result[i] = string.sub(In, v[1], v[2]) 768 result[i] = string.sub(In, v[1], v[2])
767 end 769 end
768 770
771--[[
769print("RESULT = ") 772print("RESULT = ")
770for i, v in ipairs(result) do 773for i, v in ipairs(result) do
771 print(" {" .. v .. "}") 774 print(" {" .. v .. "}")
772end 775end
776]]
773 777
774 return result 778 return result
775end 779end
@@ -787,10 +791,12 @@ function --[[list]] LSL.llParseString2List(--[[string]] In, --[[list]] l, --[[li
787 end 791 end
788 end 792 end
789 793
794--[[
790print("RESULT SANS NULLS = ") 795print("RESULT SANS NULLS = ")
791for i, v in ipairs(result) do 796for i, v in ipairs(result) do
792 print(" {" .. v .. "}") 797 print(" {" .. v .. "}")
793end 798end
799]]
794 800
795 return result 801 return result
796end 802end