rotate  1.0
Bit rotator
StringUtils Class Reference

#include <StringUtils.h>

Static Public Member Functions

static std::vector< std::string > split (std::string s, std::string delimiter)
 Internal function used to parse a string in the form 0xAA,0xBB,...,0xDD into seperate bytes of 0xNN. More...
 
static std::string trim (const std::string &str, const std::string &whitespace=" \t")
 Trim leading spaces from a string. Used in parsing the hex string. More...
 

Detailed Description

Definition at line 7 of file StringUtils.h.

Member Function Documentation

◆ split()

static std::vector<std::string> split ( std::string  s,
std::string  delimiter 
)
inlinestatic

Internal function used to parse a string in the form 0xAA,0xBB,...,0xDD into seperate bytes of 0xNN.

Note
This function does not belong in this class it shoul be moved out into it's own container as a static or simple function in a library.
Parameters
s
delimiter
Returns
std::vector<std::string>

Definition at line 20 of file StringUtils.h.

Here is the caller graph for this function:

◆ trim()

static std::string trim ( const std::string &  str,
const std::string &  whitespace = " \t" 
)
inlinestatic

Trim leading spaces from a string. Used in parsing the hex string.

Note
This function needs to be moved out into a seperate lkibrary.
Parameters
str
whitespace
Returns
std::string

Definition at line 43 of file StringUtils.h.

Here is the caller graph for this function:

The documentation for this class was generated from the following file: