summaryrefslogtreecommitdiff
path: root/lstrlib.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* in 'pack'/'unpack', endianness and alignment treated like options +Roberto Ierusalimschy2014-10-201-55/+52
| | | | small changes in names and handling of internal options ('KOption')
* macros 'LUA_QL'/'LUA_QL' deprecatedRoberto Ierusalimschy2014-10-171-11/+8
|
* 'dumpint' and related functions replaced by 'string.pack'/'string.unpack'Roberto Ierusalimschy2014-10-171-157/+340
|
* deprecated "cast macros" ('luaL_checkint', 'luaL_optint', etc.)Roberto Ierusalimschy2014-10-011-4/+4
|
* [un]'dumpint' -> [un]'dumpinteger'Roberto Ierusalimschy2014-08-201-3/+3
|
* do not assume numbers are coercible to stringsRoberto Ierusalimschy2014-07-301-4/+7
|
* added some casts between integral types (to avoid warnings)Roberto Ierusalimschy2014-07-291-6/+6
|
* using lua_Unsigned (instead of lua_Integer) for bit manipulationRoberto Ierusalimschy2014-04-271-7/+8
|
* 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
|