18 lines
504 B
C
18 lines
504 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <vector>
|
||
|
|
#include <string>
|
||
|
|
|
||
|
|
|
||
|
|
namespace StringUtil
|
||
|
|
{
|
||
|
|
std::vector<std::string> split(std::string str, std::string sep);
|
||
|
|
std::vector<std::string> split(std::string str, char sep);
|
||
|
|
|
||
|
|
std::vector<std::string> splitClean(std::string str, std::string sep);
|
||
|
|
std::vector<std::string> splitClean(std::string str, char sep);
|
||
|
|
|
||
|
|
std::string strip(std::string str, char c = ' ');
|
||
|
|
std::string stripLeft(std::string str, char c = ' ');
|
||
|
|
std::string stripRight(std::string str, char c = ' ');
|
||
|
|
}
|