Remove API to set skip offset when performing a search

This commit is contained in:
Allan Odgaard
2020-06-01 15:09:53 +07:00
parent b96bfad7b2
commit f700b8d960
2 changed files with 0 additions and 6 deletions

View File

@@ -41,8 +41,6 @@ namespace find
protected:
find_implementation_t () : skip_first(0), skip_last(0) { }
virtual ~find_implementation_t () { }
virtual void set_skip_first (ssize_t offset) { skip_first = offset; }
virtual void set_skip_last (ssize_t offset) { skip_last = offset; }
virtual std::pair<ssize_t, ssize_t> match (char const* buf, ssize_t len, std::map<std::string, std::string>* captures) = 0;
ssize_t skip_first, skip_last;
@@ -443,7 +441,5 @@ namespace find
}
std::pair<ssize_t, ssize_t> find_t::match (char const* buf, ssize_t len, std::map<std::string, std::string>* captures) { return pimpl->match(buf, len, captures); }
void find_t::set_skip_first (ssize_t offset) { pimpl->set_skip_first(offset); }
void find_t::set_skip_last (ssize_t offset) { pimpl->set_skip_last(offset); }
} /* find */

View File

@@ -34,8 +34,6 @@ namespace find
find_t (std::string const& str, options_t options = none);
std::pair<ssize_t, ssize_t> match (char const* buf, ssize_t len, std::map<std::string, std::string>* captures = NULL);
void set_skip_first (ssize_t offset);
void set_skip_last (ssize_t offset);
private:
std::shared_ptr<find_implementation_t> pimpl;