home/src/regex_selector.hh

26 lines
379 B
C++
Raw Normal View History

2011-09-02 18:51:20 +02:00
#ifndef regex_selector_hh_INCLUDED
#define regex_selector_hh_INCLUDED
#include "buffer.hh"
#include "window.hh"
#include <boost/regex.hpp>
namespace Kakoune
{
class RegexSelector
{
public:
RegexSelector(const std::string& exp);
Selection operator()(const BufferIterator& cursor) const;
private:
boost::regex m_regex;
};
}
#endif // regex_selector_hh_INCLUDED