Difference between revisions of "LlToUpper"

From Second Life Wiki
Jump to navigation Jump to search
(cleanup)
m (Replaced old <LSL> block with <source lang="lsl2">)
(22 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{LSL Function
{{Issues/SVC-3760}}{{LSL_Function
|func_id=97
|func_id=97|func_sleep=0.0|func_energy=10.0
|func_sleep=0.0
|func_energy=10.0
|func=llToUpper
|func=llToUpper
|return_type=string
|return_type=string|p1_type=string|p1_name=src
|p1_type=string
|func_footnote=The opposite is [[llToLower]].
|p1_name=source
|func_desc
|return_text=Returns a string returns '''source''' with all upper-case letters
|return_text=that is '''src''' with all upper-case characters.
|}}
|spec
[[Category:LSL Functions|String to upper]]
|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]]
[[Category:LSL Stub]]
|constants
|examples=
<source lang="lsl2">string msg = "I like candy!";
string p = llToUpper(msg);
llOwnerSay(p);//Will say "I LIKE CANDY!"</source>
|helpers
|also_functions={{LSL DefineRow||[[llToLower]]}}
|also_tests
|also_events
|also_articles
|cat1=String
|cat2
|cat3
|cat4
}}

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 );