From Second Life Wiki
CSV2List
llCSV2List
Function: list llCSV2List( string src );
Returns a list made from src as comma separated values.
Do not confuse this function with the CSV format, it is not the CSV format.
Specification
Anything between "<" and ">" is considered a single value regardless of the existence of a comma between. For every "<" there needs to be a corresponding ">".
llCSV2List("<>,>,a") == ["<>", ">", "a"]; //didn't match the last ">"
llCSV2List("<<>,>,a") == ["<<>,>", "a"]; //matched everything
llCSV2List("<<<>,>,a") == ["<<<>,>,a"]; //didn't match the last "<"
Caveats
- It eats leading and trailing spaces from values.
- Anything between "<" and ">" is considered a single value, see Specification for further details.
- This is done so that the function can handle vectors and rotations without extra parsing.
- All items in the returned list are strings until typecast.
- llCSV2List("") returns [""], not []