Difference between revisions of "LlToLower"

From Second Life Wiki
Jump to navigation Jump to search
m (Adding missing desc of entry and fixing link address.)
m (Content duplication should be avoided. If putting the workaround in the caveats section doesn't clutter the page, then by all means, put it in caveats.)
Line 7: Line 7:
|return_text=that is '''src''' with all lower-case letters
|return_text=that is '''src''' with all lower-case letters
|spec
|spec
|caveats=*There is no llToProperCase, which would capitalize the first letter of a word, in LSL. However, see [[LlToLower#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 = llToLower(msg);
string p = llToLower(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]] - '''User Created Function''' returns a string which reads as ''normal'' text.
|helpers
|also_functions={{LSL DefineRow||[[llToUpper]]}}
|also_functions={{LSL DefineRow||[[llToUpper]]}}
|also_tests
|also_tests
|also_events
|also_events
|also_articles=*[[User:Fred_Gandt/Scripts/Functions#ToNormal_.28_V1_.29|ToNormal]] - '''User Created Function''' returns a string which reads as ''normal'' text.
|also_articles
|notes=This may only work on characters in the ASCII7 range. {{Jira|SVC-3760}}
|notes=This may only work on characters in the ASCII7 range. {{Jira|SVC-3760}}
|cat1=String
|cat1=String

Revision as of 22:30, 7 May 2010

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 llToProperCase, which would capitalize the first letter of a word, in LSL but there is a user functions that does this: ToNormal
All Issues ~ Search JIRA for related Bugs

Examples

<lsl>string msg = "I like CANDY!"; string p = llToLower(msg);

llOwnerSay(p);//Will say "i like candy!"</lsl>

Notes

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

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