Pete Freitag Pete Freitag

The many ways to Lower Case a String

Published on September 15, 2009
By Pete Freitag
misc

If you ever wondered why there are so many programming languages, look no further than the the many ways to convert a string to lower case. Almost every language has a core function to make a string lowercase, yet there seems to be pressure to come up with a distinct name for the function:

Function Name Languages
LCase() ColdFusion / CFML, ASP, Visual Basic
lower() SQL, Python
toLowerCase() Java, JavaScript, ActionScript
strtolower() PHP
tolower() ANSI C/C++
toLower() C#
downcase Ruby
lower-case() XQuery
lowercaseString Objective C / NSString
lc() Perl

Are there any other lowercase functions out there that you know of?



programming lowercase case

The many ways to Lower Case a String was first published on September 15, 2009.


Discuss / Follow me on Twitter ↯

Comments

I believe DiscoScript uses getDown() :)
by Ryan on 09/15/2009 at 4:32:14 PM UTC
Funny :) Here's a bunch more...!

http://merd.sourceforge.net/pixel/language-study/syntax-across-languages/Strng.html#StrngpprLwrCasChr
by Jamie Krug on 09/15/2009 at 7:19:32 PM UTC
@Ryan - Nice.

@Jamie - thanks for the link, nice resource.
by Pete Freitag on 09/16/2009 at 7:29:58 AM UTC