uName2Legacy
Revision as of 14:29, 22 January 2015 by ObviousAltIsObvious Resident (talk | contribs) (<lsl> tag to <source>)
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials | User-Defined Functions | Void's User Page |
User-Defined Function: string uName2Legacy( string vStrNom );
Returns a string that is vStrNom converted to a Legacy Name.(see Caveats)
- vStrNom: source name string
Code:
- LSO: 152 bytes
- MONO: 512 bytes
string uName2Legacy( string vStrNom ){
return llDumpList2String( llList2List( llParseString2List( llToLower( vStrNom ), [".", " "], [] ) + (list)"resident", 0, 1 ), " " );
}
/*//-- Anti-License Text --//*/
/*// Contributed Freely to the Public Domain without limitation. //*/
/*// 2011 (CC0) [ http://creativecommons.org/publicdomain/zero/1.0 ] //*/
/*// Void Singer [ https://wiki.secondlife.com/wiki/User:Void_Singer ] //*/
/*//-- --//*/
Caveats
- This function lowercases input names, as there is no convenient way to get correct name case.
- Should not be used as input for llListen, llSensor, llSensorRepeat, or llCollisionFilter.
- This function does not check input name validity
Notes
- Useful for formatting username sources (like notecard access lists) for faster processing against legacy name sources (like llKey2Name)