편집을 취소할 수 있습니다. 이 편집을 되돌리려면 아래의 바뀐 내용을 확인한 후 게시해주세요.
최신판 | 당신의 편집 | ||
181번째 줄: | 181번째 줄: | ||
local return2 = new_args['return2'] or '' | local return2 = new_args['return2'] or '' | ||
if str.find_( source_str, pattern) == 0 then | if str.find_( source_str, pattern) == 0 then | ||
return return2 | return return2 | ||
268번째 줄: | 260번째 줄: | ||
-- string.byte의 유니코드 호환 버전 | -- string.byte의 유니코드 호환 버전 | ||
function str.tounicode( frame ) | function str.tounicode( frame ) | ||
local args = getArgs( frame ) | local args = getArgs(frame) | ||
local | local new_args = str._getParameters( args, { 's', 'i', 'j' } ) | ||
local s = new_args['s'] or '' | |||
local i = tonumber( new_args['i'] ) or 1 | |||
local j = tonumber( new_args['j'] ) or -1 | |||
return ustring.codepoint( frame.args[1], i, j ) | |||
local | |||
end | end | ||
314번째 줄: | 296번째 줄: | ||
end | end | ||
local _, count = ustring.gsub(source, pattern, '') | local _, count = ustring.gsub(source, pattern, '') | ||
return count | return count | ||
end | end |