R4Z0R49/DayZMod — pull request #187 by KillzoneKid (2012-12-27 07:03:51+00:00)
Title: Update SQF/dayz_code/compile/fn_inString.sqf

And here it is, tweaked and tested.

It runs as fast as the new fn_inString function on 3 letter words but 2 times faster on a 10 letter word than the new function. Basically the length of the haystack is what determines execution time and not the needle length where as new inString function suffers greatly on longer words.

This is also case insensitive function. for some reason arma decided that ("AbC" == "aBc") should be true however if this is a bug, it is easily rectifiable by toLower both inputs. New inString function is case sensitive which is odd because all inString calls in Dayz either have none (default false) or false set for case.