游戏王残局简化版

Annotation For 残局文料/lib/程语_月_基类_文_前后缀.lua
Login

Annotation For 残局文料/lib/程语_月_基类_文_前后缀.lua

Origin for each line in 残局文料/lib/程语_月_基类_文_前后缀.lua from check-in a2e76b01c2:

a2e76b01c2 2024-01-26    1: local d_3 = {}
a2e76b01c2 2024-01-26    2: local require = 常用库.require_通用大字集态_八位态
a2e76b01c2 2024-01-26    3: local 筛文库 = require("程语_月_基类_文_筛文")
a2e76b01c2 2024-01-26    4: --~ 加
a2e76b01c2 2024-01-26    5: --~ 加_分_基
a2e76b01c2 2024-01-26    6: function d_3.加前缀_基态(o1, o2)
a2e76b01c2 2024-01-26    7:   return o2 .. o1
a2e76b01c2 2024-01-26    8:   end
a2e76b01c2 2024-01-26    9: function d_3.加后缀_基态(o1, o2)
a2e76b01c2 2024-01-26   10:   return o1 .. o2
a2e76b01c2 2024-01-26   11:   end
a2e76b01c2 2024-01-26   12: --~ 加_分_确保
a2e76b01c2 2024-01-26   13: --~ function d_3.加前缀_确保态(o1, o2, o3)
a2e76b01c2 2024-01-26   14: --~ 筛文库.返全文(o1, )
a2e76b01c2 2024-01-26   15: --~ local k1
a2e76b01c2 2024-01-26   16: --~ k1 = d_3.删前缀(o1, o2, o3)
a2e76b01c2 2024-01-26   17: --~ return o2 .. o1
a2e76b01c2 2024-01-26   18: --~ end
a2e76b01c2 2024-01-26   19: --~ 加_合
a2e76b01c2 2024-01-26   20: function d_3.加前缀与后缀_基态(o1, o2, o3)
a2e76b01c2 2024-01-26   21:   return o2 .. o1 .. (o3 or "")
a2e76b01c2 2024-01-26   22:   end
a2e76b01c2 2024-01-26   23: --~ 删
a2e76b01c2 2024-01-26   24: --~ 删_分
a2e76b01c2 2024-01-26   25: function d_3.删前缀(o1, o2, o3)
a2e76b01c2 2024-01-26   26:   if o1:find(o2, 1, o3 or true) then
a2e76b01c2 2024-01-26   27:     return o1:sub(#o2 + 1)
a2e76b01c2 2024-01-26   28:     end
a2e76b01c2 2024-01-26   29:   end
a2e76b01c2 2024-01-26   30: function d_3.删后缀(o1, o2, o3)
a2e76b01c2 2024-01-26   31:   if o1:find(o2, -1, o3 or true) then
a2e76b01c2 2024-01-26   32:     return o1:sub(1, #o1 - #o2)
a2e76b01c2 2024-01-26   33:     end
a2e76b01c2 2024-01-26   34:   end
a2e76b01c2 2024-01-26   35: --~ 删
a2e76b01c2 2024-01-26   36: --~ 场景_令行窗_件径
a2e76b01c2 2024-01-26   37: function d_3.在前后加英文双引号_基态(o1)
a2e76b01c2 2024-01-26   38:   return [["]] .. o1 .. [["]]
a2e76b01c2 2024-01-26   39:   end
a2e76b01c2 2024-01-26   40: return d_3
a2e76b01c2 2024-01-26   41: