aboutsummaryrefslogtreecommitdiff
path: root/lstrlib.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* back to larger sizes for 'dumpint/undumpint' (small Lua shouldRoberto Ierusalimschy2014-04-161-13/+39
| | | | be able to dump/undump long-long integers)
* size of strings in 'string.rep' should be limited by the size ofRoberto Ierusalimschy2014-04-141-3/+3
| | | | lua_Integer, not of 'int'
* new global macro 'LUA_MAXUNSIGNED'Roberto Ierusalimschy2014-04-121-2/+2
|
* maximum size for dump of integers is size of lua_Integer (whichRoberto Ierusalimschy2014-04-101-36/+17
| | | | means that there is no overflows when undumping)
* pack/unpack functions renamed dump/undumpRoberto Ierusalimschy2014-04-101-14/+14
|
* avoid constant overflow when shifting left signed integers untilRoberto Ierusalimschy2014-04-031-5/+5
| | | | their last bit
* fancier way to do sign extensionRoberto Ierusalimschy2014-03-311-4/+3
|
* missplelling in comments/function names (endianess -> endianness)Roberto Ierusalimschy2014-03-271-8/+8
|
* native lua_Number may be neither float nor double (in pack/unpackfloat)Roberto Ierusalimschy2014-03-211-17/+22
|
* details (typos in comments)Roberto Ierusalimschy2014-03-211-8/+8
|
* detail in string.rep: allow large repetitions of the empty string (noRoberto Ierusalimschy2014-03-121-4/+5
| | | | possibility of overflows)
* added 'strip' parameter to lua_dump/string.dumpRoberto Ierusalimschy2014-02-251-2/+3
|
* added explicit default options to string.pack/unpack functionsRoberto Ierusalimschy2014-01-091-5/+9
|
* first implementation for string.pack/unpackfloat + try not to assumeRoberto Ierusalimschy2014-01-081-14/+97
| | | | that chars have 8 bits
* first implementation of string.packint/string.unpackintRoberto Ierusalimschy2014-01-051-1/+124
|
* added "reasonable" limit for 'string.rep' (otherwise it is too easyRoberto Ierusalimschy2013-06-201-3/+8
| | | | to crash the machine)
* use lua_Integer for integer parameters to avoid truncationRoberto Ierusalimschy2013-06-191-15/+15
|
* details ('Type* id' -> 'Type *id')Roberto Ierusalimschy2013-06-071-3/+3
|
* more definitions to support integer formattingRoberto Ierusalimschy2013-04-251-56/+12
|
* details (remove of some extra spaces)Roberto Ierusalimschy2012-08-141-4/+4
|
* Bug: Some patterns can overflow the C stack, due to recursionRoberto Ierusalimschy2012-07-311-77/+124
| | | | (Took the opportunity to refactor function 'match')
* spaces -> tabs in #definesRoberto Ierusalimschy2012-05-231-8/+8
|
* different scheme to check arguments to '%d', '%x', etc. Old schemeRoberto Ierusalimschy2012-04-201-8/+9
| | | | did not work well when lua_Number is an integer.
* 'if' to avoid empty 'memcpy' (may be expensive)Roberto Ierusalimschy2012-04-031-2/+4
|
* allow non-integer arguments to integer formats (%d, %x, etc.),Roberto Ierusalimschy2011-11-301-9/+10
| | | | but check range
* detail (comment)Roberto Ierusalimschy2011-10-251-2/+2
|
* 'string.format' checks whether values for integer formats areRoberto Ierusalimschy2011-08-091-5/+14
| | | | actually integers
* no more errors on accesses to 'string' and stringsRoberto Ierusalimschy2011-06-281-19/+7
|
* avoid warning about -unsigned valueRoberto Ierusalimschy2011-06-161-2/+2
|
* better way to test overflows with string indicesRoberto Ierusalimschy2011-06-091-2/+2
|
* more complete (and hopefuly more correct) handling of 'sizeof(char)'Roberto Ierusalimschy2011-05-031-5/+5
|
* 'LUA_USELONGLONG' -> 'LUA_USE_LONGLONG'Roberto Ierusalimschy2011-04-201-2/+2
|
* use of 'luaL_tolstring' for option '%s' in 'string.format'Roberto Ierusalimschy2011-03-181-3/+3
|
* trying to avoid assumption that sizeof(char)==1Roberto Ierusalimschy2011-02-071-2/+2
|
* detail (cleaning trailing spaces)Roberto Ierusalimschy2011-01-261-2/+2
|
* 'sep' argument to 'string.rep' + 'string.rep' preallocates entireRoberto Ierusalimschy2011-01-121-9/+23
| | | | buffer before creating resulting string
* error when indexing strings with invalid keysRoberto Ierusalimschy2010-12-201-7/+19
|
* official support for floating hexa numeralsRoberto Ierusalimschy2010-12-101-1/+4
|
* 'gfind' was deprecated in 5.1Roberto Ierusalimschy2010-11-191-8/+1
|
* small bug: 'find' did not detect magic chars after a \0 in a patternRoberto Ierusalimschy2010-11-161-3/+15
| | | | and did a plain search in those cases
* added support for conditional use of %Lg when using long doubleRoberto Ierusalimschy2010-11-081-8/+25
|
* comment typosRoberto Ierusalimschy2010-10-291-2/+2
|
* corrected warnings from different compilers (mostly casts and smallRoberto Ierusalimschy2010-10-251-3/+3
| | | | details)
* new module policy: C modules do not create globals and do not registerRoberto Ierusalimschy2010-07-021-2/+2
| | | | | | themselves with 'require' (let 'require' do its work); new auxiliary functions luaL_newlib/luaL_newlibtable/luaL_setfuncs/luaL_requiref. Old luaL_register will be deprecated.
* added class '%g' in patterns (for graphical characters)Roberto Ierusalimschy2010-05-241-1/+2
|
* no need to handle '\0' differently from other control chars inRoberto Ierusalimschy2010-05-041-2/+2
| | | | format '%q'
* BUG: 'string.format' may get buffer when there are missing argumentsRoberto Ierusalimschy2010-04-121-4/+15
|
* patterns now accept '\0' as a regular characterRoberto Ierusalimschy2010-04-121-28/+38
|
* new implementation for Generic Buffer manipulation (using userdata asRoberto Ierusalimschy2010-04-091-22/+27
| | | | temporary buffer space)
* reorganization of switch in function 'match' (details)Roberto Ierusalimschy2010-01-041-18/+18
|