Overview
Comment: | (/ω\) |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
6cfa8d42bbcb575df79963e929d2b1d3 |
User & Date: | 顽雨沉风 on 2024-01-27 08:56:54 |
Other Links: | manifest | tags |
Context
2024-01-27
| ||
09:01 | (/ω\) check-in: dd620ddaa9 user: 顽雨沉风 tags: trunk | |
08:56 | (/ω\) check-in: 6cfa8d42bb user: 顽雨沉风 tags: trunk | |
08:55 | (/ω\) check-in: 2dc19335a9 user: 顽雨沉风 tags: trunk | |
Changes
Added 残局文料/lib/程语_月_基类_字串_始缀与终缀.lua version [7b38ce09e7].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | local d_3 = {} --~ 加 function d_3.加前缀_基态(o1, o2) return o2 .. o1 end function d_3.加始缀_基态(o1, o2) return o2 .. o1 end function d_3.加后缀_基态(o1, o2) return o1 .. o2 end function d_3.加终缀_基态(o1, o2) return o1 .. o2 end --~ 加_分_确保 --~ function d_3.加前缀_确保态(o1, o2, o3) --~ 筛文库.返全文(o1, ) --~ local k1 --~ k1 = d_3.删前缀(o1, o2, o3) --~ return o2 .. o1 --~ end function d_3.加前缀与后缀_基态(o1, o2, o3) return o2 .. o1 .. (o3 or "") end function d_3.加始缀与终缀_基态(o1, o2, o3) return o2 .. o1 .. (o3 or "") end --~ 删 function d_3.删前缀_基态(o1, o2) if o1:startswith(o2) then return o1:sub(#o2 + 1) end end function d_3.减始缀_基态(o1, o2) if o1:startswith(o2) then return o1:sub(#o2 + 1) end end function d_3.删后缀_基态(o1, o2) if o1:endswith(o2) then return o1:sub(1, #o1 - #o2) end end function d_3.减终缀_基态(o1, o2) if o1:endswith(o2) then return o1:sub(1, #o1 - #o2) end end --~ 场景_令行窗_件径 function d_3.在前后加英文双引号_基态(o1) return [["]] .. o1 .. [["]] end function d_3.在始终加英文双引号_基态(o1) return [["]] .. o1 .. [["]] end return d_3 |