summaryrefslogtreecommitdiffstats
path: root/generic/tclStringObj.c
Commit message (Collapse)AuthorAgeFilesLines
* Implement all possible TCL_LL_MODIFIER formats in Tcl_ObjPrintf(), can be ↵jan.nijtmans2016-12-141-0/+19
|\ | | | | | | "ll", "I64" and "L", whatever the platform defines for long long integer. With test-cases.
| * Implement all possible TCL_LL_MODIFIER formats in Tcl_ObjPrintf(), can be ↵jn_wide_printfjan.nijtmans2016-12-141-1/+10
| | | | | | | | "ll", "I64" and "L", whatever the platform defines for long long integer. With test-cases.
| * implement "I64" format in Tcl_ObjPrintf as well. Still to be tested.jan.nijtmans2016-12-021-3/+13
| |
* | Avoid "warning: format '%llu' expects argument of type 'long long unsigned ↵andy2016-12-021-3/+6
|/ | | | int', but argument 2 has type 'long unsigned int'" on platforms where TCL_WIDE_INT_IS_LONG. Warning introduced by check-in [e3ba334a42] which was merged to trunk by [eac13870dc]. This fix also was made by [418b169207] which has not yet been merged to trunk.
* Implement %ll (WideInt) handling for Tcl_ObjPrintf(). Use it in some places. jan.nijtmans2016-12-021-8/+12
| | | Moved to feature branch temporarily. Breaks build.
* compatability -> compatibilityjan.nijtmans2016-12-011-1/+1
|\
* | Route all [string repeat] operations through a common implementation.dgp2016-11-301-0/+140
| | | | | | | | | | Code that to preserve bytearrays, eliminate unnecessary string rep generation, increase efficiency, and encapsulate access to internal rep details.
* | Where feasible, convert concatenation panics into errors.dgp2016-11-291-9/+46
| |
* | Route all [string last] operations through a common implementation.dgp2016-11-081-1/+105
| |
* | Optimize case of all single-byte chars.dgp_string_finddgp2016-11-071-2/+20
| |
* | Consolidate the "find empty string" cases.dgp2016-11-071-16/+11
| |
* | First draft refactoring the [string first] functionality.dgp2016-11-041-0/+84
| |
* | Make packages msgcat and tcltest work unmodified in "novem". Make more ↵jan.nijtmans2016-11-041-2/+2
|\ \ | |/ | | | | test-cases work unmodified in "novem".
* | Replace indexing with pointer increments.dgp_string_catdgp2016-11-011-13/+18
| |
* | Expand all the cases of the [string cat] engine.dgp2016-11-011-27/+129
| |
* | Reduce copies in the pure binary implementation of [string cat].dgp2016-10-311-7/+19
| |
* | Complete the "pure binary" implementation of the [string cat] engine.dgp2016-10-311-6/+20
| |
* | WIPdgp2016-10-281-1/+57
| |
* | merge trunkdgp2016-10-281-0/+2
|\ \
| * \ Add warning commentary making important assumptions explicit.dgp2016-10-281-0/+2
| |\ \ | | |/
| | * Add warning commentary making important assumptions explicit.dgp2016-10-281-0/+2
| | |\
| | | * Add warning commentary making important assumptions explicit.dgp2016-10-281-0/+2
| | | |
* | | | merge trunkdgp2016-10-281-0/+9
|\ \ \ \ | |/ / /
| * | | Add obvious optimization to Tcl_GetCharLength().dgp2016-10-281-0/+9
| | | |
* | | | Start bringing all `string cat` operations into one place so it can be codeddgp2016-10-271-0/+40
|/ / / | | | | | | correctly one time instead of badly multiple times.
* | | Merge INST_STR_REPLACE fixes and improvements.dgp2016-10-131-0/+10
|\ \ \ | |/ /
| * | Stop invading the String internals to work around a bug. Fix it instead.dgp2016-10-131-0/+10
| | |
* | | Micro-optimization: Use TclGetStringFromObj in stead of Tcl_GetStringFromObj ↵jan.nijtmans2016-07-081-1/+1
| | | | | | | | | | | | in many places where possible.
* | | Rename UtfCount() to TclUtfCount() and use it in more places. Suggested by ↵jan.nijtmans2016-04-051-2/+2
| | | | | | | | | | | | pspjuth here: [e99a79a32650e7e5]
* | | No longer a need to keep around 'revert to 8.5' code.dgp2016-03-241-80/+3
|/ /
* | Factor out string internal rep definition so fix for [1af8de570511] is less ↵dkf2016-03-221-54/+1
| | | | | | | | awful.
* | Eliminate unnessessary end-of-line spacing. No functional change.jan.nijtmans2015-10-041-8/+8
|\ \ | |/
| * Eliminate unnessessary end-of-line spacing. No functional change.jan.nijtmans2015-10-041-2/+2
| |
* | Merge the checkins of the dgp-read-bytes branch onto the trunk, up todgp2014-03-231-7/+48
|\ \ | |/ | | | | | | | | and including checkin a1e82fb63e . Do not merge checkin bae1c688f2 which starts to take the dgp-read-bytes branch into directions apparently unfriendly to stacked channels, which tests for [chan push] on the trunk help us to detect.
| * Revised ReadChars to restore an attempt to make sure we do not short readdgp_may_be_pointlessdgp2014-02-061-0/+32
| | | | | | | | | | because of a false notion of limited storage space. The test suite does not appear to demonstrate any case where this matters. Could be an incomplete test suite, or an example of pointless code.
| * Revise the Tcl_Append* machinery to tolerate NULL bytes to append.dgp2014-01-271-10/+19
| | | | | | | | Then have ReadChars() use that machinery to resize buffer receiving input, rather than invent its own version. Simplify ReadChars() callers.
| * Tcl_InvalidateStringRep -> TclInvalidateStringRepjan.nijtmans2013-02-071-6/+6
| |
* | [2992970] Restore safety of Tcl_AppendObjToObj(x, x) for bytearrays.dgp2014-01-211-11/+31
|\ \
| * | [2992970] Restore the safety of Tcl_AppendObjToObj(x, x) for bytearrays.bug_2992970dgp2014-01-151-11/+31
|/ / | | | | | | | | | | | | | | | | Also moves overflow checking to TclAppendBytesToByteArray() and adds the ability to call TABTBA() with bytes==NULL, for appending unspecified bytes. That is, the string grows, but the new bytes are of undetermined value. Like Tcl_NewByteArrayObj(NULL, length) this option is useful for manipulating buffers. The TABTBA growth algorithm is also enhanced a bit, copying over a fuller implementation from GrowStringBuffer() in tclStringObj.c
* | merge core-8-5-branchjan.nijtmans2013-01-311-2/+2
|\ \ | |/
| * Use twoPtrValue.ptr1 in stead of otherValuePtr everywhere. This is exactly ↵jan.nijtmans2013-01-311-2/+2
| | | | | | | | the same field, but it allows twoPtrValue.ptr2 to be used for other purposes.
* | Converted the memcpy() calls in append operations to memmove() calls.dgp2012-02-091-2/+2
|\ \ | |/ | | | | This adds safety in the case of overlapping copies, and improves performance on some benchmarks.
| * 3484402 Correct Off-By-One error appending unicode. Thanks to Poor Yorick.dgp2012-02-091-2/+2
| |\ | | | | | | Also corrected test for when growth is needed.
| | * 3484402 Correct Off-By-One error appending unicode. Thanks to Poor Yorick.dgp2012-02-091-2/+2
| | |\ | | | | | | | | Also corrected test for when growth is needed.
| | | * 3484402 Correct Off-By-One error appending unicode. Thanks to Poor Yorick.bug_3484402dgp2012-02-071-4/+4
| | |/ | | | | | | | | | Also converted some memcpy() to memmove() to reliably handle overlapping copies, and corrected test for when growth is needed.
| | * Fix gcc warnings (discovered with latest mingw, based on gcc 4.6.1)jan.nijtmans2011-10-071-1/+1
| | |
| * | Backport fix for [Bug 2857044].dgp2011-04-271-0/+1
| | |
| * | Repair corruption in [string reverse] when string rep invalidation faileddgp2011-04-121-0/+1
| | | | | | | | | to also reset the bytes allocated for string rep to zero [Bug 3285472].
* | | [3396731] inline string reverse: minor further improvementsjan.nijtmans2011-08-291-32/+22
| | |
* | | Repaired the lost performance in the copy loop hotspots. Now meets or revert_3396731dgp2011-08-271-13/+12
| | | | | | | | | beats the former trunk (and current trunk by magnitudes) in tclbench.