eDSP  0.0.1
A cross-platform DSP library written in C++.
Functions
edsp::string Namespace Reference

Functions

template<typename InputIt , typename Char >
void join (InputIt first, InputIt last, std::basic_string< Char > &d_str, Char delimiter='')
 Join the strings in the range [first, last) and stores the result in another string, beginning at d_first. More...
 
template<typename Char , typename OutputIt >
void split (const std::basic_string< Char > &str, OutputIt d_first, Char character=' ')
 Splits this string around matches of the given character and stores the result in another range, beginning at d_first. More...
 
template<typename Char >
constexpr Char tolower (Char character)
 
template<typename InputIt , typename OutputIt >
constexpr void tolower (InputIt first, InputIt last, OutputIt d_first)
 Converts the characters in the range [first, last) to lowercase according to the character conversion rules defined by the currently installed C locale and stores the result in another range, beginning at d_first. More...
 
template<typename Char >
constexpr Char toupper (Char character)
 
template<typename InputIt , typename OutputIt >
constexpr void toupper (InputIt first, InputIt last, OutputIt d_first)
 Converts the characters in the range [first, last) to uppercase according to the character conversion rules defined by the currently installed C locale and stores the result in another range, beginning at d_first. More...
 
template<typename Char >
void ltrim (std::basic_string< Char > &str)
 Filters the leading whitespace of the input string. More...
 
template<typename Char >
void rtrim (std::basic_string< Char > &str)
 Filters the trailing whitespace of the last position of the input string. More...
 
template<typename Char >
void trim (std::basic_string< Char > &str)
 Filters the leading and trailing whitespace of the input string. More...
 

Function Documentation

◆ join()

template<typename InputIt , typename Char >
void edsp::string::join ( InputIt  first,
InputIt  last,
std::basic_string< Char > &  d_str,
Char  delimiter = '' 
)
inline

Join the strings in the range [first, last) and stores the result in another string, beginning at d_first.

Parameters
firstInput iterator defining the beginning of the input range.
lastInput iterator defining the ending of the input range.
d_strOutput string.
delimiterThe delimiting character.
See also
split

◆ ltrim()

template<typename Char >
void edsp::string::ltrim ( std::basic_string< Char > &  str)
inline

Filters the leading whitespace of the input string.

Parameters
strInput string.

◆ rtrim()

template<typename Char >
void edsp::string::rtrim ( std::basic_string< Char > &  str)
inline

Filters the trailing whitespace of the last position of the input string.

Parameters
strInput string.

◆ split()

template<typename Char , typename OutputIt >
void edsp::string::split ( const std::basic_string< Char > &  str,
OutputIt  d_first,
Char  character = ' ' 
)
inline

Splits this string around matches of the given character and stores the result in another range, beginning at d_first.

Parameters
strInput string.
characterThe delimiting character.
d_firstOutput iterator defining the beginning of the destination range.

◆ tolower() [1/2]

template<typename Char >
constexpr Char edsp::string::tolower ( Char  character)

Converts the given character to lowercase according to the character conversion rules defined by the currently installed C locale.

Parameters
charactercharacter to be converted.
Returns
Lowercase version of the input character.

◆ tolower() [2/2]

template<typename InputIt , typename OutputIt >
constexpr void edsp::string::tolower ( InputIt  first,
InputIt  last,
OutputIt  d_first 
)

Converts the characters in the range [first, last) to lowercase according to the character conversion rules defined by the currently installed C locale and stores the result in another range, beginning at d_first.

Parameters
firstInput iterator defining the beginning of the input range.
lastInput iterator defining the ending of the input range.
d_firstOutput iterator defining the beginning of the destination range.

◆ toupper() [1/2]

template<typename Char >
constexpr Char edsp::string::toupper ( Char  character)

Converts the given character to uppercase according to the character conversion rules defined by the currently installed C locale.

Parameters
charactercharacter to be converted.
Returns
Uppercase version of the input character.

◆ toupper() [2/2]

template<typename InputIt , typename OutputIt >
constexpr void edsp::string::toupper ( InputIt  first,
InputIt  last,
OutputIt  d_first 
)

Converts the characters in the range [first, last) to uppercase according to the character conversion rules defined by the currently installed C locale and stores the result in another range, beginning at d_first.

Parameters
firstInput iterator defining the beginning of the input range.
lastInput iterator defining the ending of the input range.
d_firstOutput iterator defining the beginning of the destination range.

◆ trim()

template<typename Char >
void edsp::string::trim ( std::basic_string< Char > &  str)
inline

Filters the leading and trailing whitespace of the input string.

Parameters
strInput string.