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
7#include "../common.h"
8
9#include "byte_array.h"
10
15{
19 std::vector<std::string> split(const std::string &input, const char separator);
20
24 std::vector<std::string> split(const std::string &input, const std::string& separator);
25
29 bool replace(std::string& str, const std::string& from, const std::string& to);
30
31 // Todo put belows in file system ?
32 const std::string getBasename(const std::string& path, int show_parent_level = 0);
33
34 const std::string sanitizeFilename(const std::string& filename, const char replace_invalid_to = '_');
35
36 const std::string getFileExtension(const std::string& filename);
37
38 const std::string removeFileExtension(const std::string& filename);
39 const std::string removeFileExtension(const std::string& filename, std::string& extension);
40}
41#endif
Definition string.h:15
std::vector< std::string > split(const std::string &input, const char separator)
bool replace(std::string &str, const std::string &from, const std::string &to)