Manifest of check-in
[d2191985b4]
- * 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.
by
dgp on
2009-02-13 03:22:51.
B ac61ee395893ab793e426d97e8fa37554b4f8ed7
C \s\s\s\s\s\s\s\s*\sgeneric/tclStringObj.c:\s\s\s\s\s\s\sRewrites\sof\sthe\sroutines\n\s\s\s\s\s\s\s\sTcl_GetCharLength,\sTcl_GetUniChar,\sTcl_GetUnicodeFromObj,\n\s\s\s\s\s\s\s\sTcl_GetRange,\sand\sTclStringObjReverse\sto\suse\sthe\snew\smacro,\sand\n\s\s\s\s\s\s\s\sto\smore\ssimply\sand\sclearly\ssplit\sthe\scases\sdepending\son\swhether\n\s\s\s\s\s\s\s\sa\svalid\sunicode\srep\sis\spresent\sor\sneeds\sto\sbe\screated.\n\n\s\s\s\s\s\s\s\s*\sgeneric/tclInt.h:\s\s\s\s\sNew\smacro\sTclNumUtfChars\smeant\sto\sbe\sa\sfaster\n\s\s\s\s\s\s\s\sreplacement\sfor\sa\sfull\sTcl_NumUtfChars()\scall\swhen\sthe\sstring\shas\sall\n\s\s\s\s\s\s\s\ssingle-byte\scharacters.\n
D 2009-02-13T03:22:51
F ChangeLog 79f42093d16c2fb4d27d557dd27c52f3466732da
F generic/tclInt.h 8e6d3eeb7fc8d312b5c6c9091adbbc5706b4fc59
F generic/tclStringObj.c e4a00cbd484efdcf18d353f3327f76c8716f92a2
F generic/tclTestObj.c e27d78ad9ce1f4e89ed4e606c2738dab9a5c54bf
P 215d13fc4c629650b11613797b924c9532972946
U dgp
Z be8efd44fa059497e365478aadcb4274