Data Conversion
Convert values between text, lists, JSON, and encoded forms.
Feature: Data Transmission
What do you want to do?
list llParseString2List(string src, list separators, list spacers)Breaks the string src into a list of substrings, discarding any separators, keeping spacers, and omitting any empty null values. separators and spacers accept up to 8 string entries each.string llDumpList2String(list src, string separator)Returns a string that is the list src converted to a single string, with separator placed between each entry.string llStringToBase64(string str)Returns the Base64 representation string of str, interpreting it as a UTF-8 byte sequence.Reference
23 topic entries
integer llBase64ToInteger(string str)functionReturns an integer representing the Base64-decoded big-endian value of str. Returns zero if str is longer than 8 characters; the return value is unpredictable if str contains fewer than 6 characters.
string llBase64ToString(string str)functionDecodes the Base64-encoded string str into a conventional string, interpreting the bytes as a UTF-8 character sequence. Unprintable characters are converted to question marks.
list llCSV2List(string src)functionParses the comma-separated string src and returns it as a list.
string llDumpList2String(list src, string separator)functionReturns a string that is the list src converted to a single string, with separator placed between each entry.
string llIntegerToBase64(integer number)functionReturns an 8-character Base64 string representing the big-endian encoded value of number.
list llJson2List(string src)functionParses the JSON string src and returns a list representing its top-level elements.
string llJsonGetValue(string json, list specifiers)functionParses the JSON string json and returns the value found by traversing the specified path of specifiers as a string.
string llJsonSetValue(string json, list specifiers, string value)functionReturns a new JSON string representing json with the target located at specifiers set to value. Supports
JSON_APPENDto append elements. WritingJSON_DELETEdeletes the target. Overwriting array bounds or setting non-array levels with array indices returnsJSON_INVALID.string llJsonValueType(string json, list specifiers)functionParses the JSON string json and returns the JSON type constant (JSON_*) representing the value found at specifiers.
vector llLinear2sRGB(vector color)functionReturns a sRGB colorspace vector converted from the linear RGB colorspace argument.
string llList2CSV(list src)functionReturns a string of comma-separated values taken in order from the list src.
float llList2Float(list src, integer index)functionReturns the float value at index in the list src. Returns 0.0 if the index is out of bounds or if the value cannot be type-cast.
integer llList2Integer(list src, integer index)functionReturns the integer value at index in the list src. Returns 0 if the index is out of bounds or if the value cannot be type-cast.
string llList2Json(string type, list values)functionConverts the list values into a JSON string of the specified type (either a
JSON_ARRAYor aJSON_OBJECT). ReturnsJSON_INVALIDif an error is encountered.key llList2Key(list src, integer index)functionReturns the key (UUID) value at index in the list src. Returns a null string/key if the index is out of bounds or if the value cannot be type-cast.
rotation llList2Rot(list src, integer index)functionReturns the rotation value at index in the list src. Returns
ZERO_ROTATIONif the index is out of bounds or if the value cannot be type-cast.string llList2String(list src, integer index)functionReturns the string value at index in the list src. Returns an empty string if the index is out of bounds.
vector llList2Vector(list src, integer index)functionReturns the vector value at index in the list src. Returns
ZERO_VECTORif the index is out of bounds or if the value cannot be type-cast.list llParseString2List(string src, list separators, list spacers)functionBreaks the string src into a list of substrings, discarding any separators, keeping spacers, and omitting any empty null values. separators and spacers accept up to 8 string entries each.
list llParseStringKeepNulls(string src, list separators, list spacers)functionBreaks the string src into a list of substrings, discarding separators and keeping spacers, while preserving empty null values (unlike
llParseString2List). separators and spacers accept up to 8 string entries each.string llStringToBase64(string str)functionReturns the Base64 representation string of str, interpreting it as a UTF-8 byte sequence.
string llXorBase64(string str1, string str2)functionCorrectly performs a bitwise exclusive OR (XOR) on Base64 strings str1 and str2, returning the result as a Base64 string. The string str2 repeats if it is shorter than str1.
vector llsRGB2Linear(vector color)functionReturns a linear RGB colorspace vector converted from the sRGB colorspace argument.
No matching entries. Try a different term or filter.