5MP Motion Camera JPEG Image and Movie Catcher  1.1.1.1
A CGI interface to capture and display pictures and movies using OpenCV.
string_util Class Reference

#include <string_util.hpp>

Public Member Functions

void explode (const string *input, string delimiter, vector< string > *output)
 
vector< string > explode (const string input, string delimiter)
 
vector< string > explode (const string *input, string delimiter)
 
void str_tolower (string &s)
 
void str_toupper (string &s)
 

Member Function Documentation

◆ explode() [1/3]

void string_util::explode ( const string *  input,
string  delimiter,
vector< string > *  output 
)

Split a string by a string and place the results in a std::vector<string>.

Parameters
inputThe input string to be split or exploded into parts.
delimiterThe string of characters dividing or delimiting the parts.
outputThe list of results.

◆ explode() [2/3]

vector< string > string_util::explode ( const string  input,
string  delimiter 
)

Split a string by a string and place the results in a std::vector<string>.

Parameters
inputThe input string to be split or exploded into parts.
delimiterThe string of characters dividing or delimiting the parts.
Returns
output The list of results.
See also
string_util::explode(const string *input, string delimiter, vector<string> *output)

◆ explode() [3/3]

vector< string > string_util::explode ( const string *  input,
string  delimiter 
)

Split a string by a string and place the results in a std::vector<string>.

Parameters
inputThe input string to be split or exploded into parts.
delimiterThe string of characters dividing or delimiting the parts.
Returns
output The list of results.
See also
string_util::explode(const string *input, string delimiter, vector<string> *output)

◆ str_tolower()

void string_util::str_tolower ( string &  s)

Transform the input to lower case letters.

Parameters
sthe string to be transformed.

◆ str_toupper()

void string_util::str_toupper ( string &  s)

Transform the input to upper case letters.

Parameters
sthe string to be transformed.

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