rohdeschwarz  0.2.0
TCPIP socket library for Rohde & Schwarz instrument control
Namespaces | Functions
helpers.hpp File Reference

rohdeschwarz helper function definition More...

#include <string>
#include <vector>

Go to the source code of this file.

Namespaces

 rohdeschwarz
 

Functions

std::string rohdeschwarz::leftTrim (std::string text)
 Trims whitespace from left (beginning) of string. More...
 
std::string rohdeschwarz::rightTrim (std::string text)
 Trims whitespace from right (end) of string. More...
 
std::string rohdeschwarz::trim (const std::string &text)
 Trims whitespace beginning and end of string. More...
 
bool rohdeschwarz::isLeftQuote (const char *text)
 Checks for a quote at the beginning of the string. More...
 
bool rohdeschwarz::isLeftQuote (const std::string &text)
 Checks for a quote at the beginning of the string. More...
 
bool rohdeschwarz::isRightQuote (const char *text)
 Checks for a quote at the end of the string. More...
 
bool rohdeschwarz::isRightQuote (const std::string &text)
 Checks for a quote at the end of the string. More...
 
bool rohdeschwarz::isQuoted (const char *text)
 Checks for quotes at the beginning and end of the string. More...
 
bool rohdeschwarz::isQuoted (const std::string &text)
 Checks for quotes at the beginning and end of the string. More...
 
std::string rohdeschwarz::quote (const char *text, char quote_character='\'')
 Surrounds string in quotes. More...
 
std::string rohdeschwarz::quote (const std::string &text, char quote_character='\'')
 Surrounds string in quotes. More...
 
std::string rohdeschwarz::unquote (const char *text)
 Removes quotes from beginning and end of string. More...
 
std::string rohdeschwarz::unquote (const std::string &text)
 Removes quotes from beginning and end of string. More...
 
std::vector< std::string > rohdeschwarz::split (const char *csvList, const char separator=',')
 Splits string on separator. More...
 
std::vector< std::string > rohdeschwarz::split (const std::string &csvList, const char separator=',')
 Splits string on separator. More...
 

Detailed Description

rohdeschwarz helper function definition

Definition in file helpers.hpp.