and or 실수
잔글 판 71개를 가져왔습니다
태그: 모바일 편집 모바일 웹 편집 고급 모바일 편집
 
(사용자 2명의 중간 판 22개는 보이지 않습니다)
264번째 줄: 264번째 줄:
}
}


local char = '한'
local code = tonumber(char, '16')
local endN = #uniBlock


local p = {}
local p = {}
function p.main(data)
function p.unicodeBlock(data)
if type(data) == 'table' then
local char
local char = data.args[1]
if data == nil then
local codepoint = mw.ustring.codepoint(char)
return ' '
codepoint = tonumber(codepoint, '16')
elseif type(data) == 'table' then
for n= 1, endN do
char = data.args[1]
local start_ = tonumber(uniBlock[n][1], 16)
else
local end_ = tonumber(uniBlock[n][2], 16)
char = data
if start_ <= codepoint and codepoint <= end_  then
end
local codepoint = mw.ustring.codepoint(char)
local endN = #uniBlock
for n= 1, endN do
--local end_ = tonumber(uniBlock[n][2], 16)
if codepoint <= tonumber(uniBlock[n][2], 16) then
--local start_ = tonumber(uniBlock[n][1], 16)
--if start_ <= codepoint then
return uniBlock[n][3]
return uniBlock[n][3]
end
--end
end
end
else mw.log(tostring(ref[data]))
end
end
end
end
-- 함수 호출 축약형
p._ = p.unicodeBlock
return p
return p