OpenRaider  0.1.4-dev
Open Source Tomb Raider Game Engine implementation
strings.h
Go to the documentation of this file.
1 
8 #ifndef _UTILS_STRINGS_H_
9 #define _UTILS_STRINGS_H_
10 
11 #include <string>
12 
13 std::string findAndReplace(std::string s, std::string find, std::string replace);
14 
15 std::string expandHomeDirectory(std::string s);
16 
17 bool stringEndsWith(std::string s, std::string suffix, bool casesensitive = false);
18 
19 std::string removeLastPathElement(std::string s);
20 
21 std::string getLastPathElement(std::string s);
22 
23 std::string convertPathDelimiter(std::string s);
24 
25 #endif
26 
std::string convertPathDelimiter(std::string s)
Definition: strings.cpp:60
bool stringEndsWith(std::string s, std::string suffix, bool casesensitive=false)
Definition: strings.cpp:32
std::string expandHomeDirectory(std::string s)
Definition: strings.cpp:24
std::string removeLastPathElement(std::string s)
Definition: strings.cpp:46
std::string findAndReplace(std::string s, std::string find, std::string replace)
Definition: strings.cpp:14
std::string getLastPathElement(std::string s)
Definition: strings.cpp:53