g2o
Namespaces | Functions
string_tools.h File Reference
#include <string>
#include <sstream>
#include <cstdlib>
#include <vector>
#include "macros.h"
#include "g2o_stuff_api.h"
Include dependency graph for string_tools.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 g2o
 

Functions

std::string g2o::trim (const std::string &s)
 
std::string g2o::trimLeft (const std::string &s)
 
std::string g2o::trimRight (const std::string &s)
 
std::string g2o::strToLower (const std::string &s)
 
std::string g2o::strToUpper (const std::string &s)
 
template<typename OutputIterator >
OutputIterator g2o::readInts (const char *str, OutputIterator out)
 
template<typename OutputIterator >
OutputIterator g2o::readFloats (const char *str, OutputIterator out)
 
std::string g2o::formatString (const char *fmt,...)
 
int g2o::strPrintf (std::string &str, const char *fmt,...)
 
template<typename T >
bool g2o::convertString (const std::string &s, T &x, bool failIfLeftoverChars=true)
 
template<typename T >
g2o::stringToType (const std::string &s, bool failIfLeftoverChars=true)
 
bool g2o::strStartsWith (const std::string &s, const std::string &start)
 
bool g2o::strEndsWith (const std::string &s, const std::string &end)
 
std::string g2o::strExpandFilename (const std::string &filename)
 
std::vector< std::string > g2o::strSplit (const std::string &str, const std::string &delimiters)
 
int g2o::readLine (std::istream &is, std::stringstream &currentLine)