Data Conversion
Convert values between text, lists, JSON, and encoded forms.
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)Returns 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.functionstring llBase64ToString(string str)Decodes 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.functionlist llCSV2List(string src)Parses the comma-separated string src and returns it as a list.functionstring llDumpList2String(list src, string separator)Returns a string that is the list src converted to a single string, with separator placed between each entry.functionstring llIntegerToBase64(integer number)Returns an 8-character Base64 string representing the big-endian encoded value of number.functionlist llJson2List(string src)Parses the JSON string src and returns a list representing its top-level elements.functionstring llJsonGetValue(string json, list specifiers)Parses the JSON string json and returns the value found by traversing the specified path of specifiers as a string.functionstring llJsonSetValue(string json, list specifiers, string value)Returns a new JSON string representing json with the target located at specifiers set to value. SupportsJSON_APPENDto append elements. WritingJSON_DELETEdeletes the target. Overwriting array bounds or setting non-array levels with array indices returnsJSON_INVALID.functionstring llJsonValueType(string json, list specifiers)Parses the JSON string json and returns the JSON type constant (JSON_*) representing the value found at specifiers.functionvector llLinear2sRGB(vector color)Returns a sRGB colorspace vector converted from the linear RGB colorspace argument.functionstring llList2CSV(list src)Returns a string of comma-separated values taken in order from the list src.functionfloat llList2Float(list src, integer index)Returns 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.functioninteger llList2Integer(list src, integer index)Returns 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.functionstring llList2Json(string type, list values)Converts the list values into a JSON string of the specified type (either aJSON_ARRAYor aJSON_OBJECT). ReturnsJSON_INVALIDif an error is encountered.functionkey llList2Key(list src, integer index)Returns 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.functionrotation llList2Rot(list src, integer index)Returns the rotation value at index in the list src. ReturnsZERO_ROTATIONif the index is out of bounds or if the value cannot be type-cast.functionstring llList2String(list src, integer index)Returns the string value at index in the list src. Returns an empty string if the index is out of bounds.functionvector llList2Vector(list src, integer index)Returns the vector value at index in the list src. ReturnsZERO_VECTORif the index is out of bounds or if the value cannot be type-cast.functionlist 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.functionlist llParseStringKeepNulls(string src, list separators, list spacers)Breaks the string src into a list of substrings, discarding separators and keeping spacers, while preserving empty null values (unlikellParseString2List). separators and spacers accept up to 8 string entries each.functionstring llStringToBase64(string str)Returns the Base64 representation string of str, interpreting it as a UTF-8 byte sequence.functionstring llXorBase64(string str1, string str2)Correctly 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.functionvector llsRGB2Linear(vector color)Returns a linear RGB colorspace vector converted from the sRGB colorspace argument.function
No matching entries. Try a different term or filter.