#pragma once
#include <stddef.h>

enum search_scope
{
    kScopeInside = 0,
    kScopeWhole,
    KScopeMax
};

struct element_rule
{
    enum search_scope scope;
    int distane_from_matching;
    char * start_indicator;
    char *element_treatment;
    char * contained_keyword;
};

size_t execute_edit_element_rule(const char * in, size_t in_sz, const struct element_rule *rules, size_t n_rule, char** out, int options);
enum search_scope scope_name_to_id(const char * name);

