Модул:Windows-1255

Документацију овог модула можете да направите на страници Модул:Windows-1255/док

local p = {}

local data = mw.loadData('Module:Windows-1255/data')

function p.to_windows_1255(s, replacement_string)
	return (mw.ustring.gsub(s, '[^\0-\127]', function (c)
		return (
			data.to_windows_1255[c]
			or replacement_string
			or error(('Windows-1255 does not support the character U+%04X "%s"')
			                                :format(mw.ustring.codepoint(c), c))
		)
	end))
end

return p