Overview
Comment: | (/ω\) |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
0243e12f5441d74892065ad05145d7b9 |
User & Date: | 顽雨沉风 on 2024-01-23 16:04:44 |
Other Links: | manifest | tags |
Context
2024-01-24
| ||
03:37 | (/ω\) check-in: 14ff7a9f5f user: 顽雨沉风 tags: trunk | |
2024-01-23
| ||
16:04 | (/ω\) check-in: 0243e12f54 user: 顽雨沉风 tags: trunk | |
11:05 | (/ω\) check-in: 7ba1ff2268 user: 顽雨沉风 tags: trunk | |
Changes
Modified 残局文料/lib_lua/ipml_mj_ysaf.lua from [1d2bcc395a] to [eac916ff8c].
︙ | ︙ | |||
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | if o3 then k1 = o3(k1) end d_5.写件(o1, k1, o2) end function d_5.删制表符(o1) return o1:gsub("\t", "") end function d_5.删前缀(o1, o2) if o1:find(o2, 1, true) then return o1:sub(#o2 + 1) end end function d_5.删后缀(o1, o2) if o1:find(o2, -1, true) then return o1:sub(1, #o1 - #o2) end end | > > > > > > > > > > > | | | | 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | if o3 then k1 = o3(k1) end d_5.写件(o1, k1, o2) end function d_5.删制表符(o1) return o1:gsub("\t", "") end function d_5.删空格与制表符(o1) o1 = d_5.删空格(o1) return d_5.删制表符(o1) end function d_5.文转排(text) local lines = {} for line in text:gmatch("[^\n]+") do table.insert(lines, line) end return lines end function d_5.删前缀(o1, o2) if o1:find(o2, 1, true) then return o1:sub(#o2 + 1) end end function d_5.删后缀(o1, o2) if o1:find(o2, -1, true) then return o1:sub(1, #o1 - #o2) end end function d_5.删空行_不虑首末态(o1) return o1:gsub("\n+", "\n") end function d_5.删空行(o1) o1 = d_5.删空行_不虑首末态(o1) o1 = d_5.删前缀(o1, "\n") return d_5.删后缀(o1, "\n") end function d_5.删空格(o1) return o1:gsub(" ", "") end function d_5.筛排(o1_9, o1, o2, o3) |
︙ | ︙ | |||
102 103 104 105 106 107 108 | return o2 .. o1 .. o3 end function d_5.加后缀(o1, o2) return o1 .. o2 end function d_5.filterLinesWithCharacter(text, character) local result = {} | < | < < < > > > > > > > > | 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 | return o2 .. o1 .. o3 end function d_5.加后缀(o1, o2) return o1 .. o2 end function d_5.filterLinesWithCharacter(text, character) local result = {} local lines = d_5.文转排(text) -- 遍历每一行,检查是否包含目标字符 for i, line in ipairs(lines) do if line:find(character, 1, true) then table.insert(result, line) end end return result end function d_5.办并说(o1) print(o1) os.execute(o1) end function d_5.筛单行等式_左右值态(o1) local k1_11 k1_11 = {} for o2 in 11:gmatch("[^\n= \t]+") do table.insert(k1_11, o2) end return o2 end return d_5 |
Modified 残局文料/产常量件.lua from [febdad7bf2] to [f01d8f854e].
1 2 3 4 5 6 7 8 9 10 | package.path = [[.\lib_lua\?.lua;]] .. package.path package.cpath = [[.\lib_dll\?.dll;]] .. package.cpath _G.常用库 = require("ipml_mj_ysaf") local 字集码互转库 = require("u8_to_a") local 删注库_月程语态_不虑字串态 = require_u8("删注/月程语_不虑字串") local d_2 = {} function d_2.产常量件(o1) local k1 k1 = 常用库.读件(o1 .. "/script/constant.lua", "rb") k1 = 删注库_月程语态_不虑字串态.事启(k1) | | > > > | > | | | | 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 | package.path = [[.\lib_lua\?.lua;]] .. package.path package.cpath = [[.\lib_dll\?.dll;]] .. package.cpath _G.常用库 = require("ipml_mj_ysaf") local 字集码互转库 = require("u8_to_a") local 删注库_月程语态_不虑字串态 = require_u8("删注/月程语_不虑字串") local d_2 = {} function d_2.产常量件(o1) local k1 k1 = 常用库.读件(o1 .. "/script/constant.lua", "rb") k1 = 删注库_月程语态_不虑字串态.事启(k1) --~ k1 = 常用库.删空格与制表符(k1) for o1 in k1:gmatch("[^\n= \t]+") do print(o1) end --~ k1 = 常用库.删空行(k1) --~ k1 = "local k1_11 = {}\n" .. k1 .. "" --~ k1 = 常用库.筛排(k1, print) --~ print(k1) --~ print(k1:gsub("\n", "猪")) end function d_2.筛凡常量() end function d_2.筛字段量() end |
︙ | ︙ |