File 残局文料/lua_lib/程语_月_基类_字串_内置库_加多.lua artifact ce9c5bb88f part of check-in d4fae5b543
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) if self:sub(1, #text) == text then return self end end function string:endswith(text) if self:sub(-#text) == text then return self end end