StringHelpers.h File Reference
#include <ArmarXCore/util/CPPUtility/GetTypeString.h>
#include <unordered_map>
#include <sstream>
#include <string>
#include <vector>
#include <deque>
#include <map>
+ Include dependency graph for StringHelpers.h:

Go to the source code of this file.

Namespaces

 armarx
 This file offers overloads of toIce() and fromIce() functions for STL container types.
 
 std
 

Macros

#define VAROUT(x)   std::string(std::string(#x) +": " + armarx::ValueToString(x)) + " "
 

Functions

bool Contains (const std::string &haystack, const std::string &needle, bool caseInsensitive=false)
 
std::string Encode (const std::string &data)
 
void EncodeInline (std::string &data)
 
bool ends_with (const std::string &haystack, const std::string &needle)
 
template<typename T >
ostream & operator<< (ostream &str, const std::deque< T > &deque)
 
template<typename T1 , typename T2 >
ostream & operator<< (ostream &str, const std::map< T1, T2 > &map)
 
template<typename T1 , typename T2 >
ostream & operator<< (ostream &str, const std::pair< T1, T2 > &pair)
 
template<typename T1 , typename T2 >
ostream & operator<< (ostream &str, const std::unordered_map< T1, T2 > &map)
 
template<typename T >
ostream & operator<< (ostream &str, const std::vector< T > &vector)
 
ostream & operator<< (ostream &str, std::nullptr_t)
 
template<typename T >
std::string & operator<< (std::string &str, const T &value)
 
std::vector< std::string > Split (const std::string &source, const std::string &splitBy, bool trimElements=false, bool removeEmptyElements=false)
 
std::vector< std::string > split (const std::string &source, const std::string &splitBy, bool trimElements=false, bool removeEmptyElements=false)
 
bool starts_with (const std::string &haystack, const std::string &needle)
 
const std::string & to_string (const std::string &s)
 
std::string to_string (std::string s)
 
float toFloat (const std::string &input)
 Converts a string to float and uses always dot as seperator. More...
 
int toInt (const std::string &input)
 
unsigned int toUInt (const std::string &input)
 
template<typename T >
std::string ValueToString (const T &value)
 

Macro Definition Documentation

◆ VAROUT

#define VAROUT (   x)    std::string(std::string(#x) +": " + armarx::ValueToString(x)) + " "

Definition at line 182 of file StringHelpers.h.