Artifact 92e6d199fd1eb2f1327454662909a179e009c5222bc1c8af846b84138edb1e86:
- File single_doc/lua_lib/程语_月_基类_文_内置库_加多.lua — part of check-in [60c256f91b] at 2024-06-27 23:36:58 on branch trunk — 0 (user: 顽雨沉风, size: 450) [annotate] [blame] [check-ins using]
- File 残局文料/lua_lib/程语_月_基类_文_内置库_加多.lua — part of check-in [89f423ff38] at 2024-02-13 07:31:23 on branch trunk — 好 (user: 顽雨沉风, size: 450) [annotate] [blame] [check-ins using]
function string:lstrip() return self:gsub("^%s+", "") end function string:rstrip() return self:gsub("%s+$", "") end function string:strip() local h1 h1 = self:lstrip() return h1:rstrip() end function string:startswith(text) local size = text:len() if self:sub(1, size) == text then return self end end function string:endswith(text) if self:sub(-#text) == text then return self end end