libatomprobe
Library for Atom Probe Tomography (APT) computation
Namespaces | Functions
stringFuncs.h File Reference
#include <string>
#include <sstream>
#include <vector>
Include dependency graph for stringFuncs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 AtomProbe
 

Functions

template<class T1 , class T2 >
bool AtomProbe::stream_cast (T1 &result, const T2 &obj)
 Template function to cast and object to another by the stringstream. More...
 
template<class T >
void AtomProbe::strAppend (std::string s, const T &a)
 
void AtomProbe::genColString (unsigned char r, unsigned char g, unsigned char b, unsigned char a, std::string &s)
 
void AtomProbe::genColString (unsigned char r, unsigned char g, unsigned char b, std::string &s)
 
bool AtomProbe::parseColString (const std::string &str, unsigned char &r, unsigned char &g, unsigned char &b, unsigned char &a)
 Parse a colour string containing rgb[a]; hex for with leading #. More...
 
std::string AtomProbe::digitString (unsigned int thisDigit, unsigned int maxDigit)
 Generate a string with leading digits up to maxDigit (eg, if maxDigit is 424, and thisDigit is 1. More...
 
std::string AtomProbe::stripWhite (const std::string &str)
 Strip whitespace, (eg tab,space) from either side of a string. More...
 
std::string AtomProbe::stripChars (const std::string &Str, const char *chars)
 
std::string AtomProbe::lowercase (std::string s)
 Return a lowercase version for a given string. More...
 
std::string AtomProbe::uppercase (std::string s)
 Return a uppercase version for a given string. More...
 
void AtomProbe::stripZeroEntries (std::vector< std::string > &s)
 
void AtomProbe::splitStrsRef (const char *cpStr, const char delim, std::vector< std::string > &v)
 Split string references using a single delimiter. More...
 
void AtomProbe::splitStrsRef (const char *cpStr, const char *delim, std::vector< std::string > &v)
 Split string references using any of a given string of delimiters. More...
 
std::string AtomProbe::onlyFilename (const std::string &path)
 Return only the filename component. More...
 
std::string AtomProbe::onlyDir (const std::string &path)
 Return only the directory name component of the full path. More...
 
std::string AtomProbe::convertFileStringToNative (const std::string &s)
 Convert a path format into a native path from unix format. More...
 
std::string AtomProbe::convertFileStringToCanonical (const std::string &s)
 Convert a path format into a unix path from native format. More...
 
std::string AtomProbe::tabs (unsigned int nTabs)
 
std::string AtomProbe::stlWStrToStlStr (const std::wstring &s)
 
std::wstring AtomProbe::stlStrToStlWStr (const std::string &s)
 
void AtomProbe::nullifyMarker (char *buffer, char marker)