vanilla-wow-addons – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | function ArcHUD:SplitString(s,p,n) |
2 | local l,sp,ep = {},0 |
||
3 | while(sp) do |
||
4 | sp,ep=strfind(s,p) |
||
5 | if(sp) then |
||
6 | tinsert(l,strsub(s,1,sp-1)) |
||
7 | s=strsub(s,ep+1) |
||
8 | else |
||
9 | tinsert(l,s) |
||
10 | break |
||
11 | end |
||
12 | if(n) then n=n-1 end |
||
13 | if(n and (n==0)) then tinsert(l,s) break end |
||
14 | end |
||
15 | return unpack(l) |
||
16 | end |
||
17 | |||
18 | function ArcHUD:strcap(str) |
||
19 | return strupper(strsub(str, 1, 1)) .. strlower(strsub(str, 2)) |
||
20 | end |