[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: API for String substitution (excluding regex)
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 3 Nov 2014 06:21:27 -0200
> The Lua API string.gsub will also take a pattern as an argument. I am assuming that because of the assumption that a pattern may be present as an argument, there will be additional processing that will be done every time a string comparison is made.
It seems that you think string.gsub operates in place and modifies the
given string. Despite the name, it does not. So, no, this does not
affect string comparison.
> Is there any faster way to do string substitution in Lua apart from using string.gsub.
What problem are you really trying to solve?