OpenRaider  0.1.4-dev
Open Source Tomb Raider Game Engine implementation
Functions
strings.h File Reference

String handling utilities. More...

#include <string>
Include dependency graph for strings.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

std::string findAndReplace (std::string s, std::string find, std::string replace)
 
std::string expandHomeDirectory (std::string s)
 
bool stringEndsWith (std::string s, std::string suffix, bool casesensitive=false)
 
std::string removeLastPathElement (std::string s)
 
std::string getLastPathElement (std::string s)
 
std::string convertPathDelimiter (std::string s)
 

Detailed Description

String handling utilities.

Author
xythobuz

Definition in file strings.h.

Function Documentation

std::string findAndReplace ( std::string  s,
std::string  find,
std::string  replace 
)

Definition at line 14 of file strings.cpp.

std::string expandHomeDirectory ( std::string  s)

Definition at line 24 of file strings.cpp.

bool stringEndsWith ( std::string  s,
std::string  suffix,
bool  casesensitive = false 
)

Definition at line 32 of file strings.cpp.

std::string removeLastPathElement ( std::string  s)

Definition at line 46 of file strings.cpp.

std::string getLastPathElement ( std::string  s)

Definition at line 53 of file strings.cpp.

std::string convertPathDelimiter ( std::string  s)

Definition at line 60 of file strings.cpp.