1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
print(ime.get_version())
print(ime.trim_string(" Hello World! "))
print(ime.trim_string_right(" Hello World! "))
tab = ime.split_string("aa..bb..cc", "..");
for i,v in ipairs(tab) do print(i, v) end
tab = ime.split_string("aa..bb..cc", "..");
print(ime.join_string(tab, ", "));
print(ime.join_string({}, ".."));
print(ime.join_string({"aa"}, " "));
_MAPPING_TABLE = [[
a 啊
b 不,吧
c 从,穿,出
]]
_MAPPING = ime.parse_mapping(_MAPPING_TABLE, "\n", " ", ",")
for k,v in pairs(_MAPPING) do
print(k, ":")
for i, m in ipairs(v) do
print(i, m)
end
end
-- print(ime.join_string({nil, " "}, ","));
print("test finished...");
|