Difference between revisions of "LlToUpper"

From Second Life Wiki
Jump to navigation Jump to search
m
m (user function is to be placed in code spenits and articles - see LlParseString2List)
Line 13: Line 13:
string p = llToUpper(msg);
string p = llToUpper(msg);
llOwnerSay(p);//Will say "I LIKE CANDY!"</lsl>
llOwnerSay(p);//Will say "I LIKE CANDY!"</lsl>
|helpers
|helpers=[[User:Fred_Gandt/Scripts/Functions#ToNormal_.28_V1_.29|ToNormal]] - '''User Created Function''' returns a string which reads as ''normal'' text.
|also_functions={{LSL DefineRow||[[llToLower]]}}
|also_functions={{LSL DefineRow||[[llToLower]]}}
{{LSL DefineRow||[[User:Fred_Gandt/Scripts/Functions#ToNormal_.28_V1_.29|ToNormal]] - '''User Created Function''' returns a string which reads as ''normal'' text.}}
|also_tests
|also_tests
|also_events
|also_events
|also_articles
|also_articles=*[[User:Fred_Gandt/Scripts/Functions#ToNormal_.28_V1_.29|ToNormal]]
|notes=<s>This may only work on characters in the ASCII7 range. {{Jira|SVC-3760}} </s>
|notes=<s>This may only work on characters in the ASCII7 range. {{Jira|SVC-3760}} </s>
|cat1=String
|cat1=String

Revision as of 20:16, 7 May 2010

Summary

Function: string llToUpper( string src );
0.0 Forced Delay
10.0 Energy

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

• string src

The opposite is llToLower.

Caveats

  • There is no llToProperCase, which would capitalize the first letter of a word, in LSL. However, see "See Also" for a User Created function which may help.

Examples

<lsl>string msg = "I like candy!"; string p = llToUpper(msg);

llOwnerSay(p);//Will say "I LIKE CANDY!"</lsl>

Useful Snippets

ToNormal - User Created Function returns a string which reads as normal text.

Notes

This may only work on characters in the ASCII7 range. SVC-3760

See Also

Functions

•  llToLower

Articles

Deep Notes

Signature

function string llToUpper( string src );