游戏王残局简化版

Artifact [dc73f90efa]
Login

Artifact [dc73f90efa]

Artifact dc73f90efaf1637e431be65b0e96d61b442e957812d11e27cdda5e9b0c15267a:


function string:lstrip()
  if self == nil then
    return nil
    end
  local s = self:gsub("^%s+", "")
  return s
  end
function string:rstrip()
  if self == nil then
    return nil
    end
  local s = self:gsub("%s+$", "")
  return s
  end
function string:strip()
  return self:lstrip():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