#ifndef filter_hh_INCLUDED #define filter_hh_INCLUDED #include "function_group.hh" #include "function_registry.hh" #include "memoryview.hh" #include "string.hh" #include "utils.hh" #include namespace Kakoune { class Buffer; struct Selection; // 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; using FilterAndId = std::pair; using FilterGroup = FunctionGroup; using FilterParameters = memoryview; using FilterFactory = std::function; struct FilterRegistry : FunctionRegistry, Singleton {}; } #endif // filter_hh_INCLUDED