xerus
a general purpose tensor library
stringUtilities.h File Reference

Header file for some elementary string manipulation routines. More...

#include <string>
#include <vector>
#include "standard.h"

Go to the source code of this file.

Namespaces

 xerus
 The main namespace of xerus.
 
 xerus::misc
 Collection of classes and functions that provide elementary functionality that is not special to xerus as a tensor library.
 

Functions

std::string XERUS_warn_unused xerus::misc::demangle_cxa (const std::string &_cxa)
 Demangles the function and class names created by gcc into a more readable format. More...
 
std::vector< std::string > xerus::misc::explode (const std::string &_string, const char _delim)
 : Explodes a string at positions indicated by _delim. More...
 
std::string XERUS_warn_unused xerus::misc::normalize_pathname (const std::string &_name)
 Resolves 'folder/..' occurences in pathnames. More...
 
std::string XERUS_warn_unused xerus::misc::reduce (const std::string &_string, const std::string &whitespace=" \\", const std::string &fill=" ")
 : Removes all leading and trailing whitespaces from _string, and reduces all double whitespaces to one. More...
 
void xerus::misc::replace (std::string &_string, const std::string &_search, const std::string &_replace)
 : Replaces all occurences of _search in _string by _replace. More...
 
std::string XERUS_warn_unused xerus::misc::trim (const std::string &_string, const std::string &whitespace=" \\")
 : Removes all leading and trailing whitespaces from _string. More...
 

Detailed Description

Header file for some elementary string manipulation routines.

Definition in file stringUtilities.h.