diff options
author | dgp <dgp@users.sourceforge.net> | 2009-02-13 03:22:51 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2009-02-13 03:22:51 (GMT) |
commit | f819f7990a8794c9429eb83b8f912950b85d0a91 (patch) | |
tree | 9f47ca210d9c3fa3b8d6fe297252cc4cded4ecc6 /ChangeLog | |
parent | ebd799b7e4d40a843ff6c49f8fc77670acf6b67a (diff) | |
download | tcl-f819f7990a8794c9429eb83b8f912950b85d0a91.zip tcl-f819f7990a8794c9429eb83b8f912950b85d0a91.tar.gz tcl-f819f7990a8794c9429eb83b8f912950b85d0a91.tar.bz2 |
* generic/tclStringObj.c: Rewrites of the routines
Tcl_GetCharLength, Tcl_GetUniChar, Tcl_GetUnicodeFromObj,
Tcl_GetRange, and TclStringObjReverse to use the new macro, and
to more simply and clearly split the cases depending on whether
a valid unicode rep is present or needs to be created.
* generic/tclInt.h: New macro TclNumUtfChars meant to be a faster
replacement for a full Tcl_NumUtfChars() call when the string has all
single-byte characters.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1,5 +1,15 @@ 2009-02-12 Don Porter <dgp@users.sourceforge.net> + * generic/tclStringObj.c: Rewrites of the routines + Tcl_GetCharLength, Tcl_GetUniChar, Tcl_GetUnicodeFromObj, + Tcl_GetRange, and TclStringObjReverse to use the new macro, and + to more simply and clearly split the cases depending on whether + a valid unicode rep is present or needs to be created. + + * generic/tclInt.h: New macro TclNumUtfChars meant to be a faster + replacement for a full Tcl_NumUtfChars() call when the string has all + single-byte characters. + * generic/tclStringObj.c: Simplified Tcl_GetCharLength by * generic/tclTestObj.c: removing code that did nothing. Added early returns from Tcl_*SetObjLength when the desired length |