#pragma once
#include <iostream>
#include <vector>

namespace CVrStringUtils
{
	/// Êý×Ö×ª×Ö·û´®
	std::string Int2Str(int nNum);
	std::string Int2HexStr(int nNum);
	std::string Int2str(long num);
	std::string Int2Str(unsigned int nNum);
	std::string Int2Str(unsigned long long nNum);

	/// ·Ö¸î×Ö·û´®
	std::vector<std::string> SplitString(std::string srcStr, std::string delimStr, bool repeatedCharIgnored);

	/// ´óÐ¡Ð´×ª»»
	int StringUpper(char *sData, int nLen);
	int StringLower(char *sData, int nLen);

	/// Ìæ»»×Ö·û´®
	void ReplaceString(std::string& source, const std::string& to_replace, const std::string& replacement);
};