"ഘടകം:String" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം
Content deleted Content added
Create module |
(വ്യത്യാസം ഇല്ല)
|
03:20, 19 ഫെബ്രുവരി 2013-നു നിലവിലുണ്ടായിരുന്ന രൂപം
ഈ ഘടകത്തിന്റെ വിവരണം ഘടകം:String/വിവരണം എന്ന താളിൽ നിർമ്മിക്കാവുന്നതാണ്
local str = {}
function str:len( frame )
return mw.ustring.len( frame.args[1] )
end
function str:sub( frame )
return mw.ustring.sub( frame.args[1], tonumber( frame.args[2] ), tonumber( frame.args[3] ) )
end
function str:match( frame )
return mw.ustring.match( frame.args[1], frame.args[2], tonumber( frame.args[3] ) )
end
return str