游戏王残局简化版

Annotation For 残局文料/lib/程语_月_基类_文_内置库_加多.lua
Login

Annotation For 残局文料/lib/程语_月_基类_文_内置库_加多.lua

Origin for each line in 残局文料/lib/程语_月_基类_文_内置库_加多.lua from check-in 596c321b0c:

f3e7596fd8 2024-01-26    1: function string:lstrip()
49fd90cf4e 2024-01-27    2:   return self:gsub("^%s+", "")
f3e7596fd8 2024-01-26    3:   end
f3e7596fd8 2024-01-26    4: function string:rstrip()
581a2aaf5d 2024-01-27    5:   return self:gsub("%s+$", "")
f3e7596fd8 2024-01-26    6:   end
f3e7596fd8 2024-01-26    7: function string:strip()
596c321b0c 2024-01-27    8:   local k1
596c321b0c 2024-01-27    9:   k1 = self:lstrip()
596c321b0c 2024-01-27   10:   return k1:rstrip()
22b0919894 2024-01-27   11:   end
22b0919894 2024-01-27   12: function string:startswith(text)
22b0919894 2024-01-27   13:   local size = text:len()
22b0919894 2024-01-27   14:   if self:sub(1, size) == text then
22b0919894 2024-01-27   15:     return self
22b0919894 2024-01-27   16:     end
22b0919894 2024-01-27   17:   end
22b0919894 2024-01-27   18: function string:endswith(text)
22b0919894 2024-01-27   19:   if self:sub(-#text) == text then
22b0919894 2024-01-27   20:     return self
22b0919894 2024-01-27   21:     end
f3e7596fd8 2024-01-26   22:   end