Module:User:Theknightwho/StringMixIn

local class = require("Module:User:Theknightwho/middleclass")

local StringMixIn = class("StringMixIn")

function StringMixIn:__tostring error("Not implemented") end

function StringMixIn:__concat(other) return self.__tostring .. other end

function StringMixIn:__eq(other) return self.__tostring == other end

function StringMixIn:__lt(other) return self.__tostring < other end

function StringMixIn:__le(other) return self.__tostring <= other end

function StringMixIn:byte(i, j)	return self.__tostring:byte(s, i ,j) end

function StringMixIn:find(pattern, init, plain) return self.__tostring:byte(s, pattern, init, plain) end

function StringMixIn:format(...) return self.__tostring:format(...) end

function StringMixIn:gmatch(pattern) return self.__tostring:gmatch(pattern) end StringMixIn.gfind = StringMixIn.gmatch

function StringMixIn:gsub(pattern, repl, n)	return self.__tostring:gsub(pattern, repl, n) end

function StringMixIn:len return self.__tostring:len end

function StringMixIn:lower return self.__tostring:lower end

function StringMixIn:match(pattern, init) return self.__tostring:match(pattern, init) end

function StringMixIn:rep return self.__tostring:rep end

function StringMixIn:reverse return self.__tostring:reverse end

function StringMixIn:sub(i, j)	return self.__tostring:sub(i, j) end

function StringMixIn:ulower return self.__tostring:ulower end

function StringMixIn:upper return self.__tostring:upper end

function StringMixIn:uupper return self.__tostring:uupper end

return StringMixIn