string_algorithm.hpp File Reference

Generic algorithms on strings. More...

`#include <cstddef>`
`#include <claw/impl/string_algorithm.tpp>`

Go to the source code of this file.

## Namespaces

| claw
| This is the main namespace.
| claw::text
| Everything about text processing.

## Functions

template<typename StreamType , typename StringType >
StreamType & | claw::text::getline (StreamType &is, StringType &str)
template<typename StringType >
void | claw::text::trim_left (StringType &str, const typename StringType::value_type *const s=" ")
template<typename StringType >
void | claw::text::trim_right (StringType &str, const typename StringType::value_type *const s=" ")
template<typename StringType >
void | claw::text::trim (StringType &str, const typename StringType::value_type *const s=" ")
template<typename StringType >
void | claw::text::squeeze (StringType &str, const typename StringType::value_type *const s)
template<typename StringType >
std::size_t | claw::text::replace (StringType &str, const StringType &e1, const StringType &e2)
template<typename T , typename StringType >
bool | claw::text::is_of_type (const StringType &str)
template<typename Sequence >
void | claw::text::split (Sequence &sequence, const typename Sequence::value_type &str, const typename Sequence::value_type::value_type sep)
template<typename Sequence >
void | claw::text::split (Sequence &sequence, typename Sequence::value_type::const_iterator first, typename Sequence::value_type::const_iterator last, const typename Sequence::value_type::value_type sep)
template<typename InputIterator , typename OutputIterator >
void | claw::text::c_escape (InputIterator first, InputIterator last, OutputIterator out)
template<typename StringType >
bool | claw::text::glob_match (const StringType &pattern, const StringType &text, const typename StringType::value_type any_sequence=' *', const typename StringType::value_type zero_or_one='?', const typename StringType::value_type any='.')
template<typename StringType >
bool | claw::text::glob_potential_match (const StringType &pattern, const StringType &text, const typename StringType::value_type any_sequence=' *', const typename StringType::value_type zero_or_one='?', const typename StringType::value_type any='.')

## Detailed Description

Generic algorithms on strings.

Author
  Julien Jorge

Definition in file string_algorithm.hpp.