This commit is contained in:
Igor Timofeev
2017-09-10 02:04:39 +03:00
parent 50574423e6
commit 8a7288d509
4 changed files with 25 additions and 21 deletions

View File

@@ -466,6 +466,10 @@ end
-------------------------------------------------- String extensions --------------------------------------------------
function string.brailleChar(a, b, c, d, e, f, g, h)
return unicode.char(10240 + 128*h + 64*g + 32*f + 16*d + 8*b + 4*e + 2*c + a)
end
function string.readUnicodeChar(file)
local byteArray = {string.byte(file:read(1))}