kakoune/src/filter.hh

24 lines
527 B
C++
Raw Normal View History

#ifndef filter_hh_INCLUDED
#define filter_hh_INCLUDED
#include "string.hh"
#include "selection.hh"
#include <functional>
namespace Kakoune
{
class Buffer;
class BufferIterator;
// A Filter is a function which is applied to a Buffer and a pending
// Modification in order to mutate the Buffer or the Modification
// prior to it's application.
using FilterFunc = std::function<void (Buffer& buffer, Selection& selection, String& content)>;
using FilterAndId = std::pair<String, FilterFunc>;
}
#endif // filter_hh_INCLUDED