#pragma once

#include <string>
#include <vector>
#include "pandaLog.h"

/**
    字符串分割
*/
class PANDALOG_API StringUtils
{
public:
	/**
	*@brief 将字符串按照分隔符分割成字符串数组
	*@param [std::string] 源字符串
	*@param [std::vector] 分割后的字符串数组
	*@param [std::string] delim 分割符，默认空格分割
	*/
	static void split(std::string sourceStr, std::vector<std::string>& res, const std::string& delim =" ");
};
