To lower case

From Kolmafia
Revision as of 04:15, 13 April 2010 by imported>StDoodle (Created page with '{{ #vardefine:name|to_lower_case}}{{ #vardefine:return_type|string}}{{ FunctionPage| name={{#var:name}}| function_category=String Handling Routines| function1={{Function| name=…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function Syntax

string to_lower_case(string text )

  • text is the original string

Converts all upper-case alphabetic characters (A-Z) found in text to their lower-case equivalents (a-z) and returns the resulting string.

Code Sample

Turns "shouted" text into easier-to-read text.

string s = "HI I AM A NIGERIAN PRINCE, WOULD YOU LIKE 1 MILLION US DOLLAR?";
s = to_lower_case(s);
print(s);

Returns:

hi i am a nigerian prince, would you like 1 million us dollar?

See Also

to_upper_case()


Attention KoLmafia Experts!

We need your help; some details of this function's operation are unknown or unclear.

The following specific question has been raised:

  • Does this have any effect on accented / tilded characters?