nil 처리 |
잔글 판 71개를 가져왔습니다 태그: 모바일 편집 모바일 웹 편집 고급 모바일 편집 |
||
| (사용자 2명의 중간 판 14개는 보이지 않습니다) | |||
| 268번째 줄: | 268번째 줄: | ||
function p.unicodeBlock(data) | function p.unicodeBlock(data) | ||
local char | local char | ||
if | if data == nil then | ||
return ' ' | return ' ' | ||
elseif type(data) == 'table' then | elseif type(data) == 'table' then | ||
| 278번째 줄: | 278번째 줄: | ||
local endN = #uniBlock | local endN = #uniBlock | ||
for n= 1, endN do | for n= 1, endN do | ||
local | --local end_ = tonumber(uniBlock[n][2], 16) | ||
local | if codepoint <= tonumber(uniBlock[n][2], 16) then | ||
--local start_ = tonumber(uniBlock[n][1], 16) | |||
--if start_ <= codepoint then | |||
return uniBlock[n][3] | |||
--end | |||
end | end | ||
end | end | ||
end | end | ||
-- 함수 호출 축약형 | |||
p._ = p.unicodeBlock | |||
return p | return p | ||