Module:Sandbox/Luis150902/Unicode

This is the current revision of this page, as edited by imported>Renamed user awfwvowjvwrvnwio at 17:00, 30 September 2015. The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
local p = {}

function p._main(sz)
	local str = ""
	local i = 0
	
	for i=32,sz,1 do
		str = str .. mw.ustring.char(i)
	end
	
	return str
end

function p.char(frame)
	local n = frame.args["1"]
	
	return mw.ustring.char(n)
end

function p.main(frame)
	local sz = (frame.args["1"] or 65536)
	
	return p._main(sz)
end

return p