Oxygen Engine
Modern C++ 3D Engine using OpenGL
Loading...
Searching...
No Matches
string.h
1#ifndef OE_UTIL_STRINGUTILS_H
2#define OE_UTIL_STRINGUTILS_H
3
4#include <vector>
5#include <string>
6
10namespace oe::util::str
11{
15 std::vector<std::string> split(const std::string &input, const char separator);
16
20 std::vector<std::string> split(const std::string &input, const std::string& separator);
21
25 bool replace(std::string& str, const std::string& from, const std::string& to);
26
27 // Todo put belows in file system ?
28 const std::string getBasename(const std::string& path, int32_t show_parent_level = 0);
29
30 const std::string sanitizeFilename(const std::string& filename, const char replace_invalid_to = '_');
31
32 const std::string getFileExtension(const std::string& filename);
33
34 const std::string removeFileExtension(const std::string& filename);
35 const std::string removeFileExtension(const std::string& filename, std::string& extension);
36}
37#endif
Definition node.h:15
bool replace(std::string &str, const std::string &from, const std::string &to)
std::vector< std::string > split(const std::string &input, const std::string &separator)