Overview
| Artifact ID: | 08f331996fc9d6c8983ac6671cdb31c160fe7513 |
|---|---|
| Ticket: | 3396731fffffffffffffffffffffffffffffffff
inline string reverse |
| User & Date: | nijtmans on 2011-08-29 14:27:46 |
Changes
- icomment:
A few minor remarks...: - ReverseUniChars contains the line from += count - 1 but the "from" variable is not used any more after that. - ReverseBytes() should be static ;-) - ReverseUniChars is only called once, so it can be inlined. That allows us to separate the inline case from tthe non-line case better , so it saves an additional if(). - src = from + count -1: the substraction of 1 can be saved by changing the loop a little bit. - The Tcl_Unichar ch declaration can be put outside the loop. Committed to trunk. Nice work, Don, and thank you very much for the evaluation and improvements!!!! - login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"