PrevUpHomeNext

Function template collation_search

boost::text::v1::collation_search

Synopsis

// In header: <boost/text/collation_search.hpp>


template<code_point_range R1, code_point_range R2> 
  unspecified collation_search(R1 && str, R2 && pattern, 
                               collation_table const & table, 
                               collation_flags flags = collation_flags::none);

Description

Returns a code point range indicating the first occurrence of pattern in str, or an empty range if no such occurrence is found. A match must begin and end at a grapheme boundary. This function uses the same simple brute-force matching approach as std::search(). Returns a collation_search_result; in C++20 and later, if std::ranges::borrowed_range<R1> is false, this function returns a std::ranges::dangling instead.

Returns a code point range indicating the first occurrence of pattern in str, or an empty range if no such occurrence is found. A match must begin and end at a grapheme boundary. This function uses the same simple brute-force matching approach as std::search(). Returns a grapheme_view; in C++20 and later, if std::ranges::borrowed_range<R1> is false, this function returns a std::ranges::dangling instead.


PrevUpHomeNext