字符串
_潇潇雨歇_
这个作者很懒,什么都没留下…
展开
-
C++ 判定字符串是否为数值
bool isIntNum(const string&str, const bool& bIsHex){ if (str.empty()) return false; auto it = str.begin(); if (str.at(0) == '-' && str.size() > 1) { ++it; } for (; it != ...原创 2020-05-05 11:12:33 · 594 阅读 · 0 评论 -
C++ 字符串拆分
vector<string> splitStr(const string &str, char seoperator){ int iSize = str.size(); if (iSize == 0) return vector<string>(0); int iCount = count(str.begin(), str.end(), seopera...原创 2020-05-05 11:09:24 · 449 阅读 · 0 评论