Difference between revisions of "LlToUpper"

From Second Life Wiki
Jump to navigation Jump to search
(You can undo/redo/voodoo that you do/choo choo cha boogie or whatever you think is appropriate. Just giving it a go myself.)
m (Replaced old <LSL> block with <source lang="lsl2">)
(One intermediate revision by one other user not shown)
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 Linden Library "llToProperCase", which would return ''[http://en.wikipedia.org/wiki/Sentence_case correctly]'' capitalized strings; However, there is a user functions that does this: [[User:Fred_Gandt/Scripts/Functions#ToNormal|ToNormal]]
|caveats=*There is no Linden Library "llToProperCase", which would return ''[http://en.wikipedia.org/wiki/Sentence_case correctly]'' capitalized strings; However, there are user functions that do this: [[User:Fred_Gandt/Scripts/Functions#ToNormal|ToNormal]]
|constants
|constants
|examples=
|examples=
<lsl>string msg = "I like candy!";
<source lang="lsl2">string msg = "I like candy!";
string p = llToUpper(msg);
string p = llToUpper(msg);
llOwnerSay(p);//Will say "I LIKE CANDY!"</lsl>
llOwnerSay(p);//Will say "I LIKE CANDY!"</source>
|helpers
|helpers
|also_functions={{LSL DefineRow||[[llToLower]]}}
|also_functions={{LSL DefineRow||[[llToLower]]}}

Revision as of 12:15, 22 January 2015

Summary

Function: string llToUpper( string src );

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

• string src

The opposite is llToLower.

Caveats

  • There is no Linden Library "llToProperCase", which would return correctly capitalized strings; However, there are user functions that do this: ToNormal
All Issues ~ Search JIRA for related Bugs

Examples

string msg = "I like candy!";
string p = llToUpper(msg);
llOwnerSay(p);//Will say "I LIKE CANDY!"

See Also

Functions

•  llToLower

Deep Notes

All Issues

~ Search JIRA for related Issues
   Unicode behavior of llToUpper and llToLower is inconsistent and broken

Signature

function string llToUpper( string src );