Differences From Artifact [3bffa09a1a]:
- File 残局文料/dfns_jvwg_ysaf/程序语言_月_基础类型_字串_前缀与后缀.lua — part of check-in [b122e1cf9f] at 2024-01-29 12:31:25 on branch trunk — (/ω\) (user: 顽雨沉风, size: 1352) [annotate] [blame] [check-ins using]
To Artifact [1b5aa0dac2]:
- File 残局文料/dfns_jvwg_ysaf/程序语言_月_基础类型_字串_前缀与后缀.lua — part of check-in [2c3bb3320b] at 2024-01-29 14:24:53 on branch trunk — (/ω\) (user: 顽雨沉风, size: 1335) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
36 37 38 39 40 41 42 |
function d_4.删后缀_基态(o1, o2)
if o1:endswith(o2) then
return o1:sub(1, #o1 - #o2)
end
end
--~ 场景_令行窗_件径
function d_4.在前后加英文双引号(o1)
| < | 36 37 38 39 40 41 42 43 44 45 |
function d_4.删后缀_基态(o1, o2)
if o1:endswith(o2) then
return o1:sub(1, #o1 - #o2)
end
end
--~ 场景_令行窗_件径
function d_4.在前后加英文双引号(o1)
return d_4.加前缀与后缀(o1, [["]], [["]])
end
return d_4
|