Artifact fdce14ba7848262b038be8c00a759a21263f9b499b6e82964b53b71fcc465ab6:
- File single_doc/lua_lib/算机_程语_月_基类_文_前缀.lua — part of check-in [60c256f91b] at 2024-06-27 23:36:58 on branch trunk — 0 (user: 顽雨沉风, size: 282) [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: 282) [annotate] [blame] [check-ins using]
local string = string local s = {} -- 加与删 --~ 文 --~ 前缀 function s.加前缀(u1, u2) return (u2 or "") .. u1 end -- 全筛 --~ 文 --~ 前缀 function s.全筛前缀(u1, u2) if string.sub(u1, 1, #u2) == u2 then return u1 end end return s