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

String handling utilities. More...

#include <algorithm>
#include "global.h"
#include "utils/filesystem.h"
#include "utils/strings.h"
Include dependency graph for strings.cpp:

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)
 
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.cpp.

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 
)

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.