모듈:UnicodeBlock: 두 판 사이의 차이

235 바이트 추가됨 ,  2021년 12월 23일 (목)
편집 요약 없음
편집 요약 없음
편집 요약 없음
263번째 줄: 263번째 줄:
{'100000','10FFFF','Supplementary Private Use Area-B'}
{'100000','10FFFF','Supplementary Private Use Area-B'}
}
}
local char = '한'
local char = '한'
local code = tonumber(char, '16')
local code = tonumber(char, '16')
local endN = #uniBlock
local endN = #uniBlock
for n= 1, endN do
 
local start_ = tonumber(uniBlock[n]['start'], 16)
local p = {}
local end_ = tonumber(uniBlock[n]['end'], 16)
function p.main(data)
if start_ <= code or code <= end_  then
if type(data) == 'table' then
print(uniBlock[n]['start'])
local char = data.args[1]
break
local codepoint = mw.ustring.codepoint(char)
codepoint = tonumber(codepoint, '16')
for n= 1, endN do
local start_ = tonumber(uniBlock[n][1], 16)
local end_ = tonumber(uniBlock[n][2], 16)
if start_ <= codepoint or codepoint <= end_  then
return uniBlock[n][3]
end
end
else mw.log(tostring(ref[data]))
end
end
end
end
return p
익명 사용자