游戏王残局简化版

Diff
Login

Diff

Differences From Artifact [2e0c2f1d7c]:

To Artifact [92e6d199fd]:


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)
  local size = text:len()
  if self:sub(1, size) == text then
    return self
    end
  end







|
|
|







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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