|
Sequoia
|
A collection of functions for finding patterns within text. More...
#include <string>Go to the source code of this file.
Functions | |
| std::pair< std::string::size_type, std::string::size_type > | sequoia::find_matched_delimiters (std::string_view text, const char open, const char close, std::string::size_type pos) |
| std::pair< std::string::size_type, std::string::size_type > | sequoia::find_sandwiched_text (std::string_view s, std::string_view leftPattern, std::string_view rightPattern, std::string::size_type pos) |
A collection of functions for finding patterns within text.
| std::pair< std::string::size_type, std::string::size_type > sequoia::find_matched_delimiters | ( | std::string_view | s, |
| char | open, | ||
| char | close, | ||
| std::string::size_type | pos = {} |
||
| ) |
Searchs for matched delimiters; if found returns the positions of the opening and one past closing.