Skip to content
lsl.devlsl.devLSL Dev

llToUpper

function
Function syntax
string llToUpper(
  1. string src// Source string to convert.
);
Returns
string
Energy
10

Returns an uppercase copy of the string src. Converts all unicode characters, not just ASCII.

The opposite is llToLower.

Returns a string that is src with all upper-case characters.

How to use
string result = llToUpper("");
  • There is no Linden Library “llToProperCase”, which would return correctly capitalized strings; However, there are user functions that do this: ToNormal
  • The function also works for many characters outside the 7-bit ASCII range, especially latin, cyrillic and greek, but not all characters tagged as “lowercase” in the Unicode specification are converted.
Example 1
string msg = "I like candy!";
string p = llToUpper(msg);
llOwnerSay(p);//Will say "I LIKE CANDY!"
Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.

From the Second Life Wiki

Community documentation adapted from LlToUpper, by Linden Research, Inc. and contributing residents.View contributors and history.

Imported wiki revision:

Licensed under CC BY-SA 3.0. Last wiki edit: .Formatting and links have been adapted for this site; API metadata follows the LSL definitions.