편집 요약 없음
편집 요약 없음
20번째 줄: 20번째 줄:
elseif base == 'x16' then
elseif base == 'x16' then
baseformat = '%x'; head = 0
baseformat = '%x'; head = 0
return tonumber(ustring.codepoint(char), 16)
return tonumber(ustring.codepoint(char))
else
else
baseformat = '%x'; head = 'U+'
baseformat = '%x'; head = 'U+'