9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
['\xf2'] = '\2';
['\xf3'] = '\3';
}
return {
capitalize = function(str)
return string.upper(string.sub(str, 1,1)) .. string.sub(str, 2)
end;
rand = function(min,max)
if not min then min = 16 end
if not max then max = min end
local str = ''
local r_int = 0x39 - 0x30
local r_upper = r_int + (0x5a - 0x41)
|
|
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
['\xf2'] = '\2';
['\xf3'] = '\3';
}
return {
capitalize = function(str)
return string.upper(string.sub(str, 1,1)) .. string.sub(str, 2)
end;
explode = function(str,delim)
local i = 1
local tbl = {}
repeat
local ss = string.sub(str, i)
local d = string.find(ss, delim, 1, true) or string.len(ss)+1
tbl[#tbl+1] = string.sub(ss,1,d-1)
i = i + d
until i > string.len(str)
return tbl
end;
rand = function(min,max)
if not min then min = 16 end
if not max then max = min end
local str = ''
local r_int = 0x39 - 0x30
local r_upper = r_int + (0x5a - 0x41)
|