std.uni.toLowerCase / .toUpperCase

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Wed Jun 24 06:35:59 PDT 2015


On 24/06/15 09:03, Tofu Ninja wrote:

> If nouns are the convention we want, then one option might be to just
> introduce one function "capitalizer" and have the case type be an
> additional argument to the function, aka: capitalizer!lower/
> capitalizer!upper/ capitalizer!title. Or lowerCapitalizer/
> upperCapitalizer might work as well.

I don't like that. There's a method in Ruby on Rails that's called 
"capitalize". It converts the first letter to a capital and the 
remaining ones to lower case.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list