Difference between revisions of "LlToLower"

From Second Life Wiki
Jump to navigation Jump to search
m (Replaced old <LSL> block with <source lang="lsl2">)
(works for most basic non-7-bit characters, but fails for 1160 out of 1791 characters tagged as "uppercase")
 
Line 8: Line 8:
|spec
|spec
|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]]
|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]]
*The function also works for many characters outside the 7-bit ASCII range, especially latin, cyrillic and greek, but not all characters tagged as "uppercase" in the Unicode specification are converted.
|constants
|constants
|examples=
|examples=

Latest revision as of 08:16, 16 October 2023

Summary

Function: string llToLower( string src );
0.0 Forced Delay
10.0 Energy

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
  • The function also works for many characters outside the 7-bit ASCII range, especially latin, cyrillic and greek, but not all characters tagged as "uppercase" in the Unicode specification are converted.

Examples

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

See Also

Functions

•  llToUpper

Deep Notes

Signature

function string llToLower( string src );