편집 요약 없음
편집 요약 없음
30번째 줄: 30번째 줄:
end
end
----------------------  next codepoint  ---------------------------------------
----------------------  next codepoint  ---------------------------------------
function p.nextcode( frame )
function p.nextcode( data )
local char = getArgs(frame)[1] or nil
if type(data) == 'table' then char = getArgs(data)[1] or nil
if char then
else char = data or nil end if char then
return p.code_(char, '16', 1)
return p.code_(char, '16', 1)
else
else
39번째 줄: 39번째 줄:
end
end
----------------------  prev codepoint  ---------------------------------------
----------------------  prev codepoint  ---------------------------------------
function p.prevcode( frame )
function p.prevcode( data )
local char = getArgs(frame)[1] or nil
if type(data) == 'table' then char = getArgs(data)[1] or nil
else char = data or nil end
if char then
if char then
return p.code_(char, '16', -1)
return p.code_(char, '16', -1)