Erlang Central

String Case

From ErlangCentral Wiki

Problem

You need to convert a string to all uppercase or all lowercase.

Solution

Use the string module. string:to_lower/1 and string:to_upper/1 are available for both strings and characters. These only support ISO/IEC 8859-1.