Difference between revisions of "LlToLower"

From Second Life Wiki
Jump to: navigation, search
m
m (Replaced old <LSL> block with <source lang="lsl2">)
 
(15 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{LSL_Function
+
{{Issues/SVC-3760}}{{LSL_Function
 
|func_id=98|func_sleep=0.0|func_energy=10.0
 
|func_id=98|func_sleep=0.0|func_energy=10.0
 
|func=llToLower
 
|func=llToLower
 
|return_type=string|p1_type=string|p1_name=src
 
|return_type=string|p1_type=string|p1_name=src
|func_footnote
+
|func_footnote=The opposite is [[llToUpper]].
 
|func_desc
 
|func_desc
 
|return_text=that is '''src''' with all lower-case letters
 
|return_text=that is '''src''' with all lower-case letters
 
|spec
 
|spec
|caveats
+
|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=
 
+
<source lang="lsl2">string msg = "I like CANDY!";
The opposite is [[llToUpper]].
+
 
+
There is no llToProperCase in LSL.
+
 
+
<lsl>
+
string msg = "I like CANDY!";
+
 
string p = llToLower(msg);
 
string p = llToLower(msg);
llOwnerSay(p);//Will say "i like candy!"
+
llOwnerSay(p);//Will say "i like candy!"</source>
</lsl>
+
 
|helpers
 
|helpers
 
|also_functions={{LSL DefineRow||[[llToUpper]]}}
 
|also_functions={{LSL DefineRow||[[llToUpper]]}}

Latest revision as of 12:15, 22 January 2015

Summary

Function: string llToLower( string src );

Returns a string that is src with all lower-case letters

• string src

The opposite is llToUpper.

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 = llToLower(msg);
llOwnerSay(p);//Will say "i like candy!"

See Also

Functions

•  llToUpper

Deep Notes

All Issues

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

Signature

function string llToLower( string src );