lower case only first letter of word

ketmar ketmar at ketmar.no-ip.org
Tue Dec 5 13:37:24 UTC 2017


Marc wrote:

> Does D have a native function to capitalize only the first letter of the 
> word? (I'm asking that so I might avoid reinvent the wheel, which I did 
> sometimes in D)

http://dpldocs.info/experimental-docs/std.string.capitalize.html
http://dpldocs.info/experimental-docs/std.uni.asCapitalized.html

searching rox!

p.s.: but beware, it will lowercase all the letters except the first one, 
so it may not be exactly the thing you aksed for.


More information about the Digitalmars-d-learn mailing list