std::vector<Osp::Base::String> ActionsManager::split(Osp::Base::String toBeSplitted, char separator)
{
	std::vector<Osp::Base::String> res;

	int length = toBeSplitted.GetLength();
	int cursor = 0;


	while(cursor<length)
	{
		Osp::Base::String subString;
		bool charFound = false;

		for(int i=cursor;i<length && !charFound; i++)
		{
			mchar charToAdd;
			toBeSplitted.GetCharAt(i,charToAdd);

			if(charToAdd == separator)
				charFound = true;
			else
				subString.Append(charToAdd);

			cursor++;

		}

		res.push_back(subString);
	}
	return res;
}