|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
D - toLower, wchar_t
<nitpicking>
"root.h"
line 67: static int toLower(dchar c) { return isUpper(c) ? towlower(c) : c; }
why two library calls here instead of just one? (isUpper becomes iswupper) am
I missing something? towlower() should leave arg unchanged if already
lowercase.
// my suggestion
static int toLower(dchar c) { towlower(c); }
<crazy suggestion>
in the vein of http://kx.com/a/k/connect/c/k20.h
// try this, it does take some getting used to, but one gets increased code
density.
"dchar.h"
typedef wchar_t W;
Sep 03 2004
|