分隔字符串并以List返回(strSplit函数)
public List strSplit(str _stringToSplit, str _delimiters)
{
List list = new List(Types::String);
int oldPos = 1;
int pos;
int strLength = strlen(_stringToSplit);
do
{
pos = strfind(_stringToSplit, _delimiters, oldPos, strLength);
if (!pos)
pos = strLength+1;
list.addEnd(substr(_stringToSplit, oldPos, pos-oldPos));
oldPos = pos+1;
} while (pos <= strLength);
return list;