Artifact 1e4983ecb15d62eb9c9bd952e0fa7af325476dec89693482e0fbf25400914b80:
- File single_doc/lua_lib/算机_程语_月_基类_文_后缀.lua — part of check-in [60c256f91b] at 2024-06-27 23:36:58 on branch trunk — 0 (user: 顽雨沉风, size: 280) [annotate] [blame] [check-ins using]
- File 残局文料/lua_lib/算机_程语_月_基类_文_后缀.lua — part of check-in [a4c0b3bd26] at 2024-02-13 05:09:26 on branch trunk — 好 (user: 顽雨沉风, size: 280) [annotate] [blame] [check-ins using]
local string = string local s = {} -- 加与删 --~ 文 --~ 后缀 function s.加后缀(u1, u2) return u1 .. (u2 or "") end -- 全筛 --~ 文 --~ 后缀 function s.全筛后缀(u1, u2) if string.sub(u1, -#u2) == u2 then return u1 end end return s