Sequoia
Loading...
Searching...
No Matches
Functions
Patterns.cpp File Reference

Definitions for Patterns.hpp. More...

#include "sequoia/TextProcessing/Patterns.hpp"
#include <cstdint>

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)
 

Detailed Description

Definitions for Patterns.hpp.

Function Documentation

◆ find_matched_delimiters()

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.