Embedded Template Library 1.0
Loading...
Searching...
No Matches
string_utilities.h File Reference
#include "platform.h"
#include "algorithm.h"
#include "enum_type.h"
#include "memory.h"
#include "char_traits.h"
#include "optional.h"
#include <ctype.h>
#include <stdint.h>
#include "private/minmax_push.h"
#include "private/minmax_pop.h"

Go to the source code of this file.

Classes

struct  etl::string_pad_direction
 string_pad_direction More...
 
struct  etl::whitespace< char >
 
struct  etl::whitespace< wchar_t >
 

Namespaces

namespace  etl
 bitset_ext
 

Functions

template<typename TIString >
void etl::trim_from_left (TIString &s, typename TIString::const_pointer trim_characters)
 
template<typename TIString >
void etl::trim_whitespace_left (TIString &s)
 
template<typename TStringView >
TStringView etl::trim_from_view_left (const TStringView &view, typename TStringView::const_pointer trim_characters)
 
template<typename TStringView >
TStringView etl::trim_view_whitespace_left (TStringView &s)
 
template<typename TIString >
void etl::trim_left (TIString &s, typename TIString::const_pointer delimiters)
 
template<typename TStringView >
TStringView etl::trim_view_left (const TStringView &view, typename TStringView::const_pointer delimiters)
 
template<typename TIString >
void etl::trim_from_right (TIString &s, typename TIString::const_pointer trim_characters)
 
template<typename TIString >
void etl::trim_whitespace_right (TIString &s)
 
template<typename TStringView >
TStringView etl::trim_from_view_right (const TStringView &view, typename TStringView::const_pointer trim_characters)
 
template<typename TStringView >
TStringView etl::trim_view_whitespace_right (TStringView &view)
 
template<typename TIString >
void etl::trim_right (TIString &s, typename TIString::const_pointer delimiters)
 trim_right
 
template<typename TStringView >
TStringView etl::trim_view_right (const TStringView &view, typename TStringView::const_pointer delimiters)
 trim_view_right
 
template<typename TIString >
void etl::trim_from (TIString &s, typename TIString::const_pointer trim_characters)
 
template<typename TIString >
void etl::trim_whitespace (TIString &s)
 
template<typename TStringView >
TStringView etl::trim_from_view (const TStringView &view, typename TStringView::const_pointer trim_characters)
 
template<typename TStringView >
TStringView etl::trim_view_whitespace (const TStringView &view)
 
template<typename TIString >
void etl::trim (TIString &s, typename TIString::const_pointer delimiters)
 
template<typename TStringView >
TStringView etl::trim_view (const TStringView &view, typename TStringView::const_pointer delimiters)
 
template<typename TIString >
void etl::left_n (TIString &s, typename TIString::size_type n)
 Get up to the first n characters.
 
template<typename TStringView >
TStringView etl::left_n_view (const TStringView &view, typename TStringView::size_type n)
 Get a view of up to the first n characters.
 
template<typename TIString >
void etl::right_n (TIString &s, typename TIString::size_type n)
 Get up to the last n characters.
 
template<typename TStringView >
TStringView etl::right_n_view (const TStringView &view, typename TStringView::size_type n)
 Get a view of up to the last n characters.
 
template<typename TIString >
void etl::reverse (TIString &s)
 
template<typename TIString , typename TPair >
void etl::replace_characters (TIString &s, const TPair *pairsbegin, const TPair *pairsend)
 replace_characters
 
template<typename TIString , typename TPair >
void etl::replace_strings (TIString &s, const TPair *pairsbegin, const TPair *pairsend)
 replace_strings
 
template<typename TIterator , typename TPointer >
TIterator etl::find_first_of (TIterator first, TIterator last, TPointer delimiters)
 Find first of any of delimiters within the string.
 
template<typename TIString , typename TPointer >
TIString::iterator etl::find_first_of (TIString &s, TPointer delimiters)
 Find first of any of delimiters within the string.
 
template<typename TIString , typename TPointer >
TIString::const_iterator etl::find_first_of (const TIString &s, TPointer delimiters)
 Find first of any of delimiters within the string.
 
template<typename TIterator , typename TPointer >
TIterator etl::find_first_not_of (TIterator first, TIterator last, TPointer delimiters)
 Find first not of any of delimiters within the string.
 
template<typename TIString , typename TPointer >
TIString::iterator etl::find_first_not_of (TIString &s, TPointer delimiters)
 Find first not of any of delimiters within the string.
 
template<typename TIString , typename TPointer >
TIString::const_iterator etl::find_first_not_of (const TIString &s, TPointer delimiters)
 Find first not of any of delimiters within the string.
 
template<typename TIterator , typename TPointer >
TIterator etl::find_last_of (TIterator first, TIterator last, TPointer delimiters)
 Find last of any of delimiters within the string.
 
template<typename TIString , typename TPointer >
TIString::iterator etl::find_last_of (TIString &s, TPointer delimiters)
 Find last of any of delimiters within the string.
 
template<typename TIString , typename TPointer >
TIString::const_iterator etl::find_last_of (const TIString &s, TPointer delimiters)
 Find last of any of delimiters within the string.
 
template<typename TIterator , typename TPointer >
TIterator etl::find_last_not_of (TIterator first, TIterator last, TPointer delimiters)
 Find last not of any of delimiters within the string.
 
template<typename TIString , typename TPointer >
TIString::iterator etl::find_last_not_of (TIString &s, TPointer delimiters)
 Find last not of any of delimiters within the string.
 
template<typename TIString , typename TPointer >
TIString::const_iterator etl::find_last_not_of (const TIString &s, TPointer delimiters)
 Find last not of any of delimiters within the string.
 
template<typename TInput , typename TStringView >
etl::optional< TStringViewetl::get_token (const TInput &input, typename TInput::const_pointer delimiters, const etl::optional< TStringView > &last_view, bool ignore_empty_tokens)
 get_token
 
template<typename TIString >
void etl::pad_left (TIString &s, typename TIString::size_type required_size, typename TIString::value_type pad_char)
 pad_left
 
template<typename TIString >
void etl::pad_right (TIString &s, typename TIString::size_type required_size, typename TIString::value_type pad_char)
 pad_right
 
template<typename TIString >
void etl::pad (TIString &s, typename TIString::size_type required_size, string_pad_direction pad_direction, typename TIString::value_type pad_char)
 pad
 
template<typename TString >
void etl::to_upper_case (TString &s)
 to_upper_case
 
template<typename TString >
void etl::to_lower_case (TString &s)
 to_lower_case
 
template<typename TString >
void etl::to_sentence_case (TString &s)
 to_sentence_case