diff --git a/Zframework/file.lua b/Zframework/file.lua index edc4d7e5..71dacc8d 100644 --- a/Zframework/file.lua +++ b/Zframework/file.lua @@ -4,16 +4,6 @@ local sub,find=string.sub,string.find local toN,toS=tonumber,tostring local concat=table.concat -local function splitS(s,sep) - local L={} - local p1,p2=1--start,target - while p1<=#s do - p2=find(s,sep,p1)or #s+1 - L[#L+1]=sub(s,p1,p2-1) - p1=p2+#sep - end - return L -end local tabs={ [0]="", "\t", diff --git a/Zframework/toolfunc.lua b/Zframework/toolfunc.lua index bd2b7b73..9aa6ba6c 100644 --- a/Zframework/toolfunc.lua +++ b/Zframework/toolfunc.lua @@ -39,7 +39,16 @@ do--setFont end end end - +function splitStr(s,sep) + local L={} + local p1,p2=1--start,target + while p1<=#s do + p2=find(s,sep,p1)or #s+1 + L[#L+1]=sub(s,p1,p2-1) + p1=p2+#sep + end + return L +end function toTime(s) if s<60 then return format("%.3fs",s)