digitalmars.D - std.ctype -> std.c.ctype ?
- Hauke Duden (6/6) Jun 05 2004 The recent discussion about ctype not supporting unicode made me wonder:...
- David L. Davis (6/12) Jun 05 2004 Hauke: I thought the same thing too at first glance, but these function ...
- Hauke Duden (4/21) Jun 06 2004 The dchars are only an interface issue. Internally the functions don't
The recent discussion about ctype not supporting unicode made me wonder: why is the module called std.ctype instead of std.c.ctype? Isn't it a simple port of the C Runtime Library header? I find it strange to have a non-Unicode module in the "D-style" hierarchy. Maybe this should be changed? Hauke
Jun 05 2004
In article <c9tmi2$3me$1 digitaldaemon.com>, Hauke Duden says...The recent discussion about ctype not supporting unicode made me wonder: why is the module called std.ctype instead of std.c.ctype? Isn't it a simple port of the C Runtime Library header? I find it strange to have a non-Unicode module in the "D-style" hierarchy. Maybe this should be changed? HaukeHauke: I thought the same thing too at first glance, but these function all seem to passed in a "D's" dchar (unicode-32 type) parameter, also many of them return a dchar value once called. So even tho the function names themselves may look like the "C" ones, I don't think they're really being pulled in from a "C" static library in any way. (But I could be wrong.)
Jun 05 2004
David L. Davis wrote:In article <c9tmi2$3me$1 digitaldaemon.com>, Hauke Duden says...The dchars are only an interface issue. Internally the functions don't support Unicode but work exactly like the C ones. HaukeThe recent discussion about ctype not supporting unicode made me wonder: why is the module called std.ctype instead of std.c.ctype? Isn't it a simple port of the C Runtime Library header? I find it strange to have a non-Unicode module in the "D-style" hierarchy. Maybe this should be changed? HaukeHauke: I thought the same thing too at first glance, but these function all seem to passed in a "D's" dchar (unicode-32 type) parameter, also many of them return a dchar value once called. So even tho the function names themselves may look like the "C" ones, I don't think they're really being pulled in from a "C" static library in any way. (But I could be wrong.)
Jun 06 2004