Re: Does anyone actually use std.string.capwords or std.string.capitalize?

2011-06-13 Thread Andrej Mitrovic
On 6/13/11, Jonathan M Davis wrote: > Well, capwords is not something you're likely to find implementations of by > grepping, since the name has a good chance of being different. But > regardless, > I find it much easier to believe that someone is using capitalize than > capwords, particularly sin

Re: Does anyone actually use std.string.capwords or std.string.capitalize?

2011-06-13 Thread Jonathan M Davis
On 2011-06-13 08:56, Jonathan M Davis wrote: > On 2011-06-13 08:50, Andrej Mitrovic wrote: > > It looks like people have reimplemented capitalize in some libs: > > > > D:\dev\lib\D\boxen\src\xf\utils\CT.d:25:pragma(ctfe) char[] > > capitalize(char[] name) { > > D:\dev\lib\D\boxen\src\xf\xpose2\Min

Re: Does anyone actually use std.string.capwords or std.string.capitalize?

2011-06-13 Thread Jonathan M Davis
On 2011-06-13 08:50, Andrej Mitrovic wrote: > It looks like people have reimplemented capitalize in some libs: > > D:\dev\lib\D\boxen\src\xf\utils\CT.d:25:pragma(ctfe) char[] > capitalize(char[] name) { > D:\dev\lib\D\boxen\src\xf\xpose2\MiniD.d:51:pragma(ctfe) private > char[] capitalizeFirst(cha

Re: Does anyone actually use std.string.capwords or std.string.capitalize?

2011-06-13 Thread Andrej Mitrovic
It looks like people have reimplemented capitalize in some libs: D:\dev\lib\D\boxen\src\xf\utils\CT.d:25:pragma(ctfe) char[] capitalize(char[] name) { D:\dev\lib\D\boxen\src\xf\xpose2\MiniD.d:51:pragma(ctfe) private char[] capitalizeFirst(char[] str) { D:\dev\lib\D\boxen\src\xf\xpose2\MiniD.d:62:

Re: Does anyone actually use std.string.capwords or std.string.capitalize?

2011-06-13 Thread Jonathan M Davis
On 2011-06-13 07:07, Adam D. Ruppe wrote: > Jonathan M Davis wrote: > > Is there anyone on the newsgroup here who actually uses > > std.string.capwords or std.string.capitalize? > > And if you do, do you use them often? > > I use capitalize from time to time. It seems to work well enough. > > >

Re: Does anyone actually use std.string.capwords or std.string.capitalize?

2011-06-13 Thread Andrej Mitrovic
On 6/13/11, Adam D. Ruppe wrote: > Jonathan M Davis wrote: >> Is there anyone on the newsgroup here who actually uses >> std.string.capwords or std.string.capitalize? >> And if you do, do you use them often? > > I use capitalize from time to time. It seems to work well enough. > > > Is there reall

Re: Does anyone actually use std.string.capwords or std.string.capitalize?

2011-06-13 Thread Adam D. Ruppe
Jonathan M Davis wrote: > Is there anyone on the newsgroup here who actually uses > std.string.capwords or std.string.capitalize? > And if you do, do you use them often? I use capitalize from time to time. It seems to work well enough. Is there really a need to break people's code every other da

Re: Does anyone actually use std.string.capwords or std.string.capitalize?

2011-06-13 Thread Andrei Alexandrescu
On 6/13/11 4:23 AM, Jonathan M Davis wrote: I have a hard time believing that std.string.capwords or std.string.captitalize are actually used much. It just doesn't seem to me like they would be generally useful functions. They're far too specific in what they do and aren't flexible enough. And if

Does anyone actually use std.string.capwords or std.string.capitalize?

2011-06-13 Thread Jonathan M Davis
I have a hard time believing that std.string.capwords or std.string.captitalize are actually used much. It just doesn't seem to me like they would be generally useful functions. They're far too specific in what they do and aren't flexible enough. And if they're not pulling their own weight, the