summaryrefslogtreecommitdiff
path: root/lstrlib.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Lua 5.3.5 ported to gitv5.3.5Roberto Ierusalimschy2018-12-171-4/+4
| | | | | | | This is the first commit for the branch Lua 5.3. All source files were copied from the official distribution of 5.3.5 in the Lua site. The test files are the same of 5.3.4. The manual came from the previous RCS repository, revision 1.167.1.2.
* detail (removing spaces at end of lines)Roberto Ierusalimschy2016-12-221-2/+2
|
* Using LUAI_UAC* types more consistently on vararg callsRoberto Ierusalimschy2016-12-201-7/+9
|
* small corrections for C++ complianceRoberto Ierusalimschy2016-06-271-2/+2
|
* 'string.format("%q")' writes 'math.mininteger' in hexa, to ensureRoberto Ierusalimschy2016-05-201-14/+19
| | | | it is read back as an integer
* 'string.pack("cn")' does not accept strings longer than 'n'Roberto Ierusalimschy2016-05-181-8/+6
|
* comment (FALLTHROUGH)Roberto Ierusalimschy2016-05-131-3/+3
|
* 'string.format("%q", number)' ensures a dot as decimal pointRoberto Ierusalimschy2016-05-021-7/+21
|
* no more time limits to pattern matching (at least for now)Roberto Ierusalimschy2016-04-221-38/+1
|
* match time limit defined by variable 'string.pattlimit'Roberto Ierusalimschy2016-04-191-16/+36
|
* 'string.format"%q"' now works for all basic types (nil, boolean,Roberto Ierusalimschy2016-04-081-6/+36
| | | | numbers, and strings)
* LUA_PACKPADBYTE -> LUAL_PACKPADBYTE (it is an internal libraryRoberto Ierusalimschy2016-04-071-6/+6
| | | | name, not something to be usually configured)
* new way to avoid infinite loops in empty matches: "Python rule"Roberto Ierusalimschy2016-03-311-8/+8
| | | | | ("Empty matches for the pattern are replaced only when not adjacent to a previous match")
* commentsRoberto Ierusalimschy2016-03-231-12/+12
|
* bug: 'gmatch' iterator fails when called from a coroutine differentRoberto Ierusalimschy2016-03-231-5/+4
| | | | from the one that created it
* '\0' is a control character, no need to check it explicitlyRoberto Ierusalimschy2016-02-251-2/+2
|
* format "%s" in 'string.format' accepts embedded zeros when itv5.3.2Roberto Ierusalimschy2015-11-251-9/+12
| | | | has no modifiers
* ensure argument to 'string.format("%s")' does not contain zerosRoberto Ierusalimschy2015-11-231-1/+2
|
* corrected comparisons of signed (int) with unsigned (size_t)Roberto Ierusalimschy2015-10-291-3/+3
|
* option 'c' in 'string.pack' accepts any string size (truncatingRoberto Ierusalimschy2015-10-281-3/+8
| | | | if larger and padding if smaller)
* detail (removed unreacheable 'break')Roberto Ierusalimschy2015-10-081-2/+2
|
* 'gmatch' keeps its state in a userdata (keeping the same 'MatchState'Roberto Ierusalimschy2015-09-281-20/+26
| | | | across calls)
* implemented counter to abort non-linear behavior in pattern matchingRoberto Ierusalimschy2015-09-261-26/+46
|
* in 'lua_number2strx', use the call to 'l_sprintf' to add exponentRoberto Ierusalimschy2015-07-201-4/+3
| | | | to result directly
* buffer size changed from size_t to int (it is always small) +Roberto Ierusalimschy2015-06-241-7/+10
| | | | comments + assert that printf result fits in given buffer
* using 'snprintf' in C99 (both for documentation of buffer sizesRoberto Ierusalimschy2015-06-181-16/+18
| | | | and some complains from tools)
* new configuration macro 'l_mathlim' (simplifies some dependenciesRoberto Ierusalimschy2015-05-201-10/+7
| | | | on float type)
* more consistent use of locale radix character across LuaRoberto Ierusalimschy2015-04-031-2/+3
|
* details (avoid 'lint' warnings)Roberto Ierusalimschy2015-03-281-12/+12
|
* detailRoberto Ierusalimschy2015-02-091-2/+2
|
* detailRoberto Ierusalimschy2015-02-051-2/+2
|
* make buffer for format specification a little larger (length modifierRoberto Ierusalimschy2015-02-041-3/+2
| | | | can be larger than 2, e.g. "I64")
* own implementation for 'string.format("%a")' for C89 platformsRoberto Ierusalimschy2015-02-041-3/+84
|
* BUG (when compiled with long double): buffer overflow when formattingRoberto Ierusalimschy2015-01-131-5/+11
| | | | string.format("%.99f", 1e4930)
* correct computation for limit in 'getnum'Roberto Ierusalimschy2014-12-111-3/+3
|
* better limits for 'sting.rep' and 'string.packsize'Roberto Ierusalimschy2014-12-111-12/+17
|
* new function 'string.packsize'Roberto Ierusalimschy2014-12-101-1/+24
|
* no more default size for option 'c' in pack/unpackRoberto Ierusalimschy2014-12-041-2/+6
|
* detail (to avoid a "to avoid warnings" return)Roberto Ierusalimschy2014-11-111-10/+8
|
* details (error messages)Roberto Ierusalimschy2014-11-081-4/+3
|
* detailRoberto Ierusalimschy2014-11-051-2/+2
|
* more direct way to fill sign-extension extra bytes when packingRoberto Ierusalimschy2014-11-051-13/+29
| | | | integers with sizes larger than lua_Integer + added comments
* added macro for configuring padding value in 'string.pack'Roberto Ierusalimschy2014-11-041-6/+12
|
* added include for 'lprefix.h', for stuff that must be added beforeRoberto Ierusalimschy2014-11-021-4/+6
| | | | any other header file
* new option '=' (native endian) for pack/unpackRoberto Ierusalimschy2014-10-311-1/+2
|
* comments (a few extra quotes around identifiers)Roberto Ierusalimschy2014-10-301-2/+2
|
* detailRoberto Ierusalimschy2014-10-281-2/+2
|
* pack/unpack do not handle final '\0' as an "option" (it strechesRoberto Ierusalimschy2014-10-271-19/+11
| | | | unnecessarily the switch range)
* `name' in comments changed to 'name'Roberto Ierusalimschy2014-10-251-13/+13
|
* added some casts to avoid warnings in some compilersRoberto Ierusalimschy2014-10-241-3/+3
|