편집 요약 없음 |
편집 요약 없음 |
||
| 30번째 줄: | 30번째 줄: | ||
end | end | ||
---------------------- next codepoint --------------------------------------- | ---------------------- next codepoint --------------------------------------- | ||
function p.nextcode( | function p.nextcode( data ) | ||
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( | function p.prevcode( data ) | ||
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) | ||