6 #ifndef LOFAR_COMMON_STRINGUTIL_H
7 #define LOFAR_COMMON_STRINGUTIL_H
17 namespace stringtools {
34 std::vector<std::string>
tokenize(
const std::string& str,
35 const std::string& delims);
53 bool operator()(
const std::string& s1,
const std::string& s2)
const {
57 return lexicographical_compare(s1.begin(), s1.end(), s2.begin(), s2.end(),
63 static bool nocaseCompare(
char c1,
char c2) {
64 return toupper(c1) < toupper(c2);
86 unsigned int lskipws(
const std::string& value,
unsigned int st,
93 unsigned int rskipws(
const std::string& value,
unsigned int st,
100 unsigned int skipQuoted(
const std::string& str,
unsigned int st);
111 unsigned int end,
char endChar);
unsigned int rskipws(const std::string &value, unsigned int st, unsigned int end)
int strToInt(const std::string &aString)
unsigned int strToUint(const std::string &aString)
long strToLong(const std::string &aString)
unsigned int lskipws(const std::string &value, unsigned int st, unsigned int end)
unsigned long strToUlong(const std::string &aString)
std::string expandMultString(const std::string &)
int16_t strToInt16(const std::string &aString)
unsigned int skipBalanced(const std::string &str, unsigned int st, unsigned int end, char endChar)
An exception is thrown if the delimiters are not balanced, thus if no.
bool strToBool(const std::string &aString)
int64_t strToInt64(const std::string &aString)
std::string expandRangeString(const std::string &)
std::string PatternToRegex(const std::string &pattern)
unsigned int skipQuoted(const std::string &str, unsigned int st)
const std::string formatString(const char *format,...)
std::string expandArrayString(const std::string &)
int32_t strToInt32(const std::string &aString)
uint64_t strToUint64(const std::string &aString)
uint32_t strToUint32(const std::string &aString)
uint16_t strToUint16(const std::string &aString)
float strToFloat(const std::string &aString)
double strToDouble(const std::string &aString)
This file has generic helper routines for testing steps.
Definition: AntennaConfig.h:53