a2e76b01c2 2024-01-26 1: local d_3 = {}
a2e76b01c2 2024-01-26 2: --~ 加
a2e76b01c2 2024-01-26 3: function d_3.加前缀_基态(o1, o2)
a2e76b01c2 2024-01-26 4: return o2 .. o1
a2e76b01c2 2024-01-26 5: end
a2e76b01c2 2024-01-26 6: function d_3.加后缀_基态(o1, o2)
a2e76b01c2 2024-01-26 7: return o1 .. o2
a2e76b01c2 2024-01-26 8: end
a2e76b01c2 2024-01-26 9: --~ 加_分_确保
a2e76b01c2 2024-01-26 10: --~ function d_3.加前缀_确保态(o1, o2, o3)
a2e76b01c2 2024-01-26 11: --~ 筛文库.返全文(o1, )
a2e76b01c2 2024-01-26 12: --~ local k1
a2e76b01c2 2024-01-26 13: --~ k1 = d_3.删前缀(o1, o2, o3)
a2e76b01c2 2024-01-26 14: --~ return o2 .. o1
a2e76b01c2 2024-01-26 15: --~ end
a2e76b01c2 2024-01-26 16: function d_3.加前缀与后缀_基态(o1, o2, o3)
a2e76b01c2 2024-01-26 17: return o2 .. o1 .. (o3 or "")
a2e76b01c2 2024-01-26 18: end
a2e76b01c2 2024-01-26 19: --~ 删
f3e7596fd8 2024-01-26 20: function d_3.删前缀_基态(o1, o2)
22b0919894 2024-01-27 21: if o1:startswith(o2) then
a2e76b01c2 2024-01-26 22: return o1:sub(#o2 + 1)
a2e76b01c2 2024-01-26 23: end
a2e76b01c2 2024-01-26 24: end
f3e7596fd8 2024-01-26 25: function d_3.删后缀_基态(o1, o2)
22b0919894 2024-01-27 26: if o1:endswith(o2) then
a2e76b01c2 2024-01-26 27: return o1:sub(1, #o1 - #o2)
a2e76b01c2 2024-01-26 28: end
a2e76b01c2 2024-01-26 29: end
a2e76b01c2 2024-01-26 30: --~ 场景_令行窗_件径
a2e76b01c2 2024-01-26 31: function d_3.在前后加英文双引号_基态(o1)
a2e76b01c2 2024-01-26 32: return [["]] .. o1 .. [["]]
a2e76b01c2 2024-01-26 33: end
a2e76b01c2 2024-01-26 34: return d_3
a2e76b01c2 2024-01-26 35: