Skip to content
Tcl Source Code Check-in [d2191985b4]
Login

Check-in [d2191985b4]

Overview
Comment: * 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.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: d2191985b45e05304fe00ddc6a7fec7aecbcef51
User & Date: dgp on 2009-02-13 03:22:51.000
Other Links: manifest | tags
Context
2009-02-13
04:01
New utility routine UnicodeLength(), to compute the length of unicode buffer argumen... check-in: 42a8e6fdf2 user: dgp tags: trunk
03:22
* generic/tclStringObj.c: Rewrites of the routines Tcl_GetCharLength, Tcl_GetU... check-in: d2191985b4 user: dgp tags: trunk
2009-02-12
17:08
* generic/tclStringObj.c: Simplified Tcl_GetCharLength by * generic/tclTestObj... check-in: 215d13fc4c user: dgp tags: trunk
Changes