String related improvements:

(1) Fix string.char and string.byte (argument indexing was off by one)
(2) Implement string.find
(3) Change calls to charAt, which does array bounds checking, in the
    pattern matcher with calls to luaByte, which does not.
(4) Replace use of recursion with while/continue in pattern matcher.
This commit is contained in:
Ian Farmer
2007-09-18 05:17:09 +00:00
parent 534e69fcfb
commit bd6dd58a2d
4 changed files with 196 additions and 144 deletions

BIN
src/test/res/strlib.luac Normal file

Binary file not shown.