aboutsummaryrefslogtreecommitdiff
path: root/src/lstrlib.js
Commit message (Collapse)AuthorAge
* src/lstrlib.js: Pass byte offsets to DataView constructordaurnimator2018-01-06
|
* src/lstrlib.js: Optimise array_cmpdaurnimator2017-12-14
| | | | Using .indexOf seems to benchmark faster than iterating
* src/lstrlib.js: Remove .slice from end of string checkdaurnimator2017-12-14
|
* src/lstrlib.js: Optimise nospecials, js .indexOf has no issues with a null bytedaurnimator2017-12-14
|
* src/lstrlib.js: Optimise find_subarray using .indexOfdaurnimator2017-12-14
|
* src/lstrlib.js: Replace adddigit function with call to .toString(16)daurnimator2017-12-13
|
* src/lstrlib.js: Reimplement using luaL_Bufferdaurnimator2017-12-13
|
* src/: Comment out unused constants/functionsdaurnimator2017-12-10
|
* src/: Fix some linter complaintsdaurnimator2017-12-10
|
* src/lstrlib.js: Move arg checking to own linedaurnimator2017-11-12
|
* Removed incorrect use of llimits.MAX/MIN_INTBenoit Giannangeli2017-11-09
| | | | llimit.js is renamed to llimits.js
* src/lstrlib.js: slice only what is requireddaurnimator2017-06-19
|
* Change size_t from 8 bytes to 4 bytesdaurnimator2017-06-19
| | | | JavaScript cannot perform arithmetic on 8byte (i.e. 64bit) numbers
* src/lstrlib.js: Fix pack('s') using wrong constantdaurnimator2017-06-18
|
* src/lstrlib.js: cast to unsigned when packing unsigneddaurnimator2017-06-17
|
* src/lstrlib.js: a 'long' is 4 bytes in JSdaurnimator2017-06-17
|
* str_packsize: fixed malformed luaL_argcheckBenoit Giannangeli2017-06-16
|
* str_unpack: pos is size_t in C so -1 should raise initial position errorBenoit Giannangeli2017-06-16
|
* unpacknum should only look at the first 'size' bytesBenoit Giannangeli2017-06-16
|
* unpacknum: number can be 32bitsBenoit Giannangeli2017-06-16
|
* Bad error message for too long KcharBenoit Giannangeli2017-06-16
|
* packint: Fixed how we search for 0 in KzstrBenoit Giannangeli2017-06-16
|
* lstrlib.js: j/J are 4 bytesBenoit Giannangeli2017-06-16
|
* packnum: num can be 32 bitsBenoit Giannangeli2017-06-16
|
* Fix bad test on issigned in unpackintBenoit Giannangeli2017-06-16
|
* src/lstrlib.js: pass ESC charcode (not as string)daurnimator2017-06-15
|
* src/lstrlib.js: frontier looks past end of string expecting a null bytedaurnimator2017-06-15
|
* src/lstrlib.js: Fix islower+isupperdaurnimator2017-06-15
| | | | Old islower considered the null byte to be lower case. The new implementations are simpler too
* src/lstrlib.js: In match_capture compare array contents not array slicesdaurnimator2017-06-15
|
* src/lstrlib.js: Pass string (not offset of string)daurnimator2017-06-15
|
* src/lstrlib.js: Fix stopping before end of gmatch subjectdaurnimator2017-06-15
|
* lstrlib.js: missing charCodeAt and misspelled ms.srcBenoit Giannangeli2017-06-12
|
* lstrlib.js: matchbalance fixed wrong char lookupBenoit Giannangeli2017-06-12
|
* Avoid .concat where simple to do sodaurnimator2017-06-09
|
* Add is_luastring function instead of using Array.isArray directlydaurnimator2017-06-09
|
* Don't pass user input as format to luaL_errordaurnimator2017-05-29
|
* src/lstrlib.js: Add annotations for jshintdaurnimator2017-05-29
|
* src/lstrlib.js: Fix position capture returning wrong valuedaurnimator2017-05-29
|
* lstrlib.js: pattern index treated as pattern itselfBenoit Giannangeli2017-05-29
|
* src/lstrlib: math.mininteger has to print speciallydaurnimator2017-05-23
|
* src/lstrlib.js: Always return a new string from num2strauxdaurnimator2017-05-22
| | | | It may get mutated in lua_number2strx
* src/lstrlib.js: Remove useless copies in num2strauxdaurnimator2017-05-22
|
* src/lstrlib.js: Fix incorrect size in commentdaurnimator2017-05-12
| | | | See https://github.com/giann/fengari/commit/3ba0fe6fd5ad9f62b948bf970347ffef3d5fe4bf#commitcomment-22054952
* Fix bad integer size for string.pack/packsizeBenoit Giannangeli2017-05-08
|
* src/lstrlib.js: Array.prototype.reverse operates in place. Make a copy so ↵daurnimator2017-05-08
| | | | that internal string isn't modified
* src/lstrlib.js: Don't use string+offset from string.pack and friendsdaurnimator2017-05-08
| | | | Also fixes mutation of internal string object
* Fix luaL_error callsitesdaurnimator2017-05-05
| | | | | | - Now that luaL_error does sprintf-like formatting it shouldn't take user input - % now needs to be escaped when passed to luaL_error - Removes several wasteful lua->js->lua string transformations
* luaL_Buffer constructor shouldn't take a lua statedaurnimator2017-05-03
| | | | It gets set in luaL_buffinit
* src/lstrlib.js: lobject no longer useddaurnimator2017-04-26
|
* Move frexp and ldexp to luaconf.jsdaurnimator2017-04-26
|