Difference between revisions of "LlToUpper"

From Second Life Wiki
Jump to navigation Jump to search
(Overkill)
m (overkill)
Line 7: Line 7:
|return_text=that is '''src''' with all upper-case characters.
|return_text=that is '''src''' with all upper-case characters.
|spec
|spec
|caveats=*There is no llToProperCase, which would capitalize the first letter of a word, in LSL. However, see [[LlToUpper#Articles|"See Also"]] for a User Created function which may help.
|caveats=*There is no llToProperCase, which would capitalize the first letter of a word, in LSL but there is a user functions that does this: [[User:Fred_Gandt/Scripts/Functions#ToNormal|ToNormal]]
|constants
|constants
|examples=
|examples=
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=*[[User:Fred_Gandt/Scripts/Functions#ToNormal_.28_V1_.29|ToNormal]] - Normalizes the capitalization in a string.
|helpers
|also_functions={{LSL DefineRow||[[llToLower]]}}
|also_functions={{LSL DefineRow||[[llToLower]]}}
|also_tests
|also_tests

Revision as of 21:27, 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 but there is a user functions that does this: ToNormal

Examples

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

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

See Also

Functions

•  llToLower

Deep Notes

Signature

function string llToUpper( string src );