2025-07-23 01:35:14 +08:00
|
|
|
|
#pragma once
|
|
|
|
|
|
#include <iostream>
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
|
|
|
|
namespace CVrStringUtils
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <20><><EFBFBD><EFBFBD>ת<EFBFBD>ַ<EFBFBD><D6B7><EFBFBD>
|
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
|
|
|
|
/// <20>ָ<EFBFBD><D6B8>ַ<EFBFBD><D6B7><EFBFBD>
|
|
|
|
|
|
std::vector<std::string> SplitString(std::string srcStr, std::string delimStr, bool repeatedCharIgnored);
|
|
|
|
|
|
|
|
|
|
|
|
/// <20><>Сдת<D0B4><D7AA>
|
|
|
|
|
|
int StringUpper(char *sData, int nLen);
|
|
|
|
|
|
int StringLower(char *sData, int nLen);
|
|
|
|
|
|
|
|
|
|
|
|
/// <20>滻<EFBFBD>ַ<EFBFBD><D6B7><EFBFBD>
|
|
|
|
|
|
void ReplaceString(std::string& source, const std::string& to_replace, const std::string& replacement);
|
2025-06-08 12:48:04 +08:00
|
|
|
|
};
|