cxxomfort  rel.20210622
Simple backports for C++ - http://ryan.gulix.cl/fossil.cgi/cxxomfort/
Namespaces | Functions
string_helpers.hpp File Reference

Implementation of global string accessors for C++.This header adds global functions to access the functionality of the following std::string and sibling members: More...

Namespaces

 cxxomfort
 Namespace of the cxxomfort library.
 

Functions

template<typename Ch , typename ChT , typename A >
std::basic_string< Ch, ChT, A >::size_type find (std::basic_string< Ch, ChT, A > const &str1, std::basic_string_view< Ch, ChT > const str2, size_t pos=0) CXXO_NOEXCEPT
 Finds string str2 in str1 starting from index pos .
 
template<typename Ch , typename ChT , typename A , typename R >
std::basic_string< Ch, ChT, A >::size_type find (std::basic_string< Ch, ChT, A > const &str1, R const &str2, size_t pos=0) CXXO_NOEXCEPT
 Finds string str2 (converted to basic_string_view ) in str1 starting from index pos .
 
template<typename Ch , typename ChT >
std::basic_string< Ch, ChT >::size_type find (std::basic_string_view< Ch, ChT > const str1, std::basic_string_view< Ch, ChT > const str2, size_t pos=0) CXXO_NOEXCEPT
 Finds string str2 in str1 starting from index pos .
 
template<typename Ch , typename ChT , typename R >
std::basic_string< Ch, ChT >::size_type find (std::basic_string_view< Ch, ChT > const str1, R const &str2, size_t pos=0) CXXO_NOEXCEPT
 Finds string str2 (converted to basic_string_view ) in str1 starting from index pos .
 

Detailed Description

Implementation of global string accessors for C++.

This header adds global functions to access the functionality of the following std::string and sibling members:

And global accessors to the following std::string_view and sibling members: