Fixes for string.rep, string.byte, string.lower, and string.upper. Also

factor out negative index handling to separate function, posrelat (to
match C Lua). When converting numbers to strings, see if the double value
can be represented exactly as a long, and if so format the string as
an integer. With these changes the standard test case "strings.lua" runs
to line 104 (over half way through!), where it uses string.format.
This commit is contained in:
Ian Farmer
2007-09-19 04:44:31 +00:00
parent 32e1fedba5
commit fc8c790b0d
5 changed files with 48 additions and 29 deletions

Binary file not shown.