To upper case

From Kolmafia
Revision as of 21:43, 14 April 2010 by imported>Slyz (best code sample ever was using to_lower_case())
Jump to navigation Jump to search

Function Syntax

string to_upper_case(string text )

  • text is the original string

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

Code Sample

Turns "normal" text into "loud" text.

string s = "hi i am a nigerian prince, would you like 1 million us dollar?";
s = to_upper_case(s);
print(s);

Returns:

HI I AM A NIGERIAN PRINCE, WOULD YOU LIKE 1 MILLION US DOLLAR?

See Also

to_lower_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?