File 残局文料/lib/程语_月_基类_字串_内置库_加多.lua artifact a728f1d5af part of check-in 8aa534f2d4
function string:lstrip() return self:gsub("^%s+", "") end function string:rstrip() return self:gsub("%s+$", "") end function string:strip() local k1 k1 = self:lstrip() return k1: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