游戏王残局简化版

Annotation For 残局文料/lib/程语_月_基类_字串_始缀与终缀.lua
Login

Annotation For 残局文料/lib/程语_月_基类_字串_始缀与终缀.lua

Origin for each line in 残局文料/lib/程语_月_基类_字串_始缀与终缀.lua from check-in 6cfa8d42bb:

6cfa8d42bb 2024-01-27    1: local d_3 = {}
6cfa8d42bb 2024-01-27    2: --~ 加
6cfa8d42bb 2024-01-27    3: function d_3.加前缀_基态(o1, o2)
6cfa8d42bb 2024-01-27    4:   return o2 .. o1
6cfa8d42bb 2024-01-27    5:   end
6cfa8d42bb 2024-01-27    6: function d_3.加始缀_基态(o1, o2)
6cfa8d42bb 2024-01-27    7:   return o2 .. o1
6cfa8d42bb 2024-01-27    8:   end
6cfa8d42bb 2024-01-27    9: function d_3.加后缀_基态(o1, o2)
6cfa8d42bb 2024-01-27   10:   return o1 .. o2
6cfa8d42bb 2024-01-27   11:   end
6cfa8d42bb 2024-01-27   12: function d_3.加终缀_基态(o1, o2)
6cfa8d42bb 2024-01-27   13:   return o1 .. o2
6cfa8d42bb 2024-01-27   14:   end
6cfa8d42bb 2024-01-27   15: --~ 加_分_确保
6cfa8d42bb 2024-01-27   16: --~ function d_3.加前缀_确保态(o1, o2, o3)
6cfa8d42bb 2024-01-27   17: --~ 筛文库.返全文(o1, )
6cfa8d42bb 2024-01-27   18: --~ local k1
6cfa8d42bb 2024-01-27   19: --~ k1 = d_3.删前缀(o1, o2, o3)
6cfa8d42bb 2024-01-27   20: --~ return o2 .. o1
6cfa8d42bb 2024-01-27   21: --~ end
6cfa8d42bb 2024-01-27   22: function d_3.加前缀与后缀_基态(o1, o2, o3)
6cfa8d42bb 2024-01-27   23:   return o2 .. o1 .. (o3 or "")
6cfa8d42bb 2024-01-27   24:   end
6cfa8d42bb 2024-01-27   25: function d_3.加始缀与终缀_基态(o1, o2, o3)
6cfa8d42bb 2024-01-27   26:   return o2 .. o1 .. (o3 or "")
6cfa8d42bb 2024-01-27   27:   end
6cfa8d42bb 2024-01-27   28: --~ 删
6cfa8d42bb 2024-01-27   29: function d_3.删前缀_基态(o1, o2)
6cfa8d42bb 2024-01-27   30:   if o1:startswith(o2) then
6cfa8d42bb 2024-01-27   31:     return o1:sub(#o2 + 1)
6cfa8d42bb 2024-01-27   32:     end
6cfa8d42bb 2024-01-27   33:   end
6cfa8d42bb 2024-01-27   34: function d_3.减始缀_基态(o1, o2)
6cfa8d42bb 2024-01-27   35:   if o1:startswith(o2) then
6cfa8d42bb 2024-01-27   36:     return o1:sub(#o2 + 1)
6cfa8d42bb 2024-01-27   37:     end
6cfa8d42bb 2024-01-27   38:   end
6cfa8d42bb 2024-01-27   39: function d_3.删后缀_基态(o1, o2)
6cfa8d42bb 2024-01-27   40:   if o1:endswith(o2) then
6cfa8d42bb 2024-01-27   41:     return o1:sub(1, #o1 - #o2)
6cfa8d42bb 2024-01-27   42:     end
6cfa8d42bb 2024-01-27   43:   end
6cfa8d42bb 2024-01-27   44: function d_3.减终缀_基态(o1, o2)
6cfa8d42bb 2024-01-27   45:   if o1:endswith(o2) then
6cfa8d42bb 2024-01-27   46:     return o1:sub(1, #o1 - #o2)
6cfa8d42bb 2024-01-27   47:     end
6cfa8d42bb 2024-01-27   48:   end
6cfa8d42bb 2024-01-27   49: --~ 场景_令行窗_件径
6cfa8d42bb 2024-01-27   50: function d_3.在前后加英文双引号_基态(o1)
6cfa8d42bb 2024-01-27   51:   return [["]] .. o1 .. [["]]
6cfa8d42bb 2024-01-27   52:   end
6cfa8d42bb 2024-01-27   53: function d_3.在始终加英文双引号_基态(o1)
6cfa8d42bb 2024-01-27   54:   return [["]] .. o1 .. [["]]
6cfa8d42bb 2024-01-27   55:   end
6cfa8d42bb 2024-01-27   56: return d_3