2dc19335a9 2024-01-27 顽雨沉风: local d_3 = {}
2dc19335a9 2024-01-27 顽雨沉风: --~ 加
2dc19335a9 2024-01-27 顽雨沉风: function d_3.加前缀_基态(o1, o2)
2dc19335a9 2024-01-27 顽雨沉风: return o2 .. o1
2dc19335a9 2024-01-27 顽雨沉风: end
2dc19335a9 2024-01-27 顽雨沉风: function d_3.加始缀_基态(o1, o2)
2dc19335a9 2024-01-27 顽雨沉风: return o2 .. o1
2dc19335a9 2024-01-27 顽雨沉风: end
2dc19335a9 2024-01-27 顽雨沉风: function d_3.加后缀_基态(o1, o2)
2dc19335a9 2024-01-27 顽雨沉风: return o1 .. o2
2dc19335a9 2024-01-27 顽雨沉风: end
2dc19335a9 2024-01-27 顽雨沉风: function d_3.加终缀_基态(o1, o2)
2dc19335a9 2024-01-27 顽雨沉风: return o1 .. o2
2dc19335a9 2024-01-27 顽雨沉风: end
2dc19335a9 2024-01-27 顽雨沉风: --~ 加_分_确保
2dc19335a9 2024-01-27 顽雨沉风: --~ function d_3.加前缀_确保态(o1, o2, o3)
2dc19335a9 2024-01-27 顽雨沉风: --~ 筛文库.返全文(o1, )
2dc19335a9 2024-01-27 顽雨沉风: --~ local k1
2dc19335a9 2024-01-27 顽雨沉风: --~ k1 = d_3.删前缀(o1, o2, o3)
2dc19335a9 2024-01-27 顽雨沉风: --~ return o2 .. o1
2dc19335a9 2024-01-27 顽雨沉风: --~ end
2dc19335a9 2024-01-27 顽雨沉风: function d_3.加前缀与后缀_基态(o1, o2, o3)
2dc19335a9 2024-01-27 顽雨沉风: return o2 .. o1 .. (o3 or "")
2dc19335a9 2024-01-27 顽雨沉风: end
2dc19335a9 2024-01-27 顽雨沉风: function d_3.加始缀与终缀_基态(o1, o2, o3)
2dc19335a9 2024-01-27 顽雨沉风: return o2 .. o1 .. (o3 or "")
2dc19335a9 2024-01-27 顽雨沉风: end
2dc19335a9 2024-01-27 顽雨沉风: --~ 删
2dc19335a9 2024-01-27 顽雨沉风: function d_3.删前缀_基态(o1, o2)
2dc19335a9 2024-01-27 顽雨沉风: if o1:startswith(o2) then
2dc19335a9 2024-01-27 顽雨沉风: return o1:sub(#o2 + 1)
2dc19335a9 2024-01-27 顽雨沉风: end
2dc19335a9 2024-01-27 顽雨沉风: end
2dc19335a9 2024-01-27 顽雨沉风: function d_3.减始缀_基态(o1, o2)
2dc19335a9 2024-01-27 顽雨沉风: if o1:startswith(o2) then
2dc19335a9 2024-01-27 顽雨沉风: return o1:sub(#o2 + 1)
2dc19335a9 2024-01-27 顽雨沉风: end
2dc19335a9 2024-01-27 顽雨沉风: end
2dc19335a9 2024-01-27 顽雨沉风: function d_3.删后缀_基态(o1, o2)
2dc19335a9 2024-01-27 顽雨沉风: if o1:endswith(o2) then
2dc19335a9 2024-01-27 顽雨沉风: return o1:sub(1, #o1 - #o2)
2dc19335a9 2024-01-27 顽雨沉风: end
2dc19335a9 2024-01-27 顽雨沉风: end
2dc19335a9 2024-01-27 顽雨沉风: function d_3.减终缀_基态(o1, o2)
2dc19335a9 2024-01-27 顽雨沉风: if o1:endswith(o2) then
2dc19335a9 2024-01-27 顽雨沉风: return o1:sub(1, #o1 - #o2)
2dc19335a9 2024-01-27 顽雨沉风: end
2dc19335a9 2024-01-27 顽雨沉风: end
2dc19335a9 2024-01-27 顽雨沉风: --~ 场景_令行窗_件径
2dc19335a9 2024-01-27 顽雨沉风: function d_3.在前后加英文双引号_基态(o1)
2dc19335a9 2024-01-27 顽雨沉风: return [["]] .. o1 .. [["]]
2dc19335a9 2024-01-27 顽雨沉风: end
2dc19335a9 2024-01-27 顽雨沉风: function d_3.在始终加英文双引号_基态(o1)
2dc19335a9 2024-01-27 顽雨沉风: return [["]] .. o1 .. [["]]
2dc19335a9 2024-01-27 顽雨沉风: end
2dc19335a9 2024-01-27 顽雨沉风: return d_3