Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

What is 'strfind', and other Keywords like this, supposed to do?

Asked by 9 years ago

I just recently look at one of my old games, when I noticed one script had this strange Keyword I've never seen before, strfind, aswell as strsub, strlower, strbyte, strchar, strlen, and a few more, I do not know what these are, nor or what these were/was used for.

1 answer

Log in to vote
4
Answered by 9 years ago

Those are from the string manipulation library in Lua 2.4, similar to the current string library.

strfind being string.find or:find(), strsub being str.sub or:sub(), etc.

Of course, there are also other keywords that have changed since 2.4, so they are likely from 2.4 as well. If you wish to know more you can read the reference manual for that version. (I am not sure in what version these were changed, but these keywords are also present in Lua 4.0)

0
Presumably, since I've never seen references to these functions before now, they're deprecated in favor of the string library itself. adark 5487 — 9y
0
Wow, that explains allot. Thanks man! :D TheeDeathCaster 2368 — 9y
Ad

Answer this question