lua-users home
lua-l archive

Re: (sub)string comp

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 01/12/2012 14:59, Alexandre Rion wrote:
or
if str:find('^'..sub) then ... end
Right, but it's not cheaper or simpler than just creating a substring str:sub(i, i-1+len) and then comparing it = to sub, is it? We'd need a "find_at" or rather check_at or something like that.
Denis

AltStyle によって変換されたページ (->オリジナル) /