游戏王残局简化版

Artifact [92e6d199fd]
Login

Artifact [92e6d199fd]

Artifact 92e6d199fd1eb2f1327454662909a179e009c5222bc1c8af846b84138edb1e86:


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