Files
hate/StringUtil.h
2025-11-22 16:25:58 +01:00

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 = ' ');
}