Skip to content

Commit

Permalink
Merge pull request #297 from OverOrion/filterx-startswith-cached
Browse files Browse the repository at this point in the history
lib/filterx: add startswith / endswith / includes functions
  • Loading branch information
alltilla authored Oct 2, 2024
2 parents 3ebb1bb + 6f663ae commit ba344fa
Show file tree
Hide file tree
Showing 6 changed files with 520 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/filterx/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ set(FILTERX_HEADERS
filterx/func-len.h
filterx/func-vars.h
filterx/func-unset-empties.h
filterx/func-str.h
filterx/func-str-transform.h
filterx/func-flatten.h
filterx/func-sdata.h
Expand Down Expand Up @@ -104,6 +105,7 @@ set(FILTERX_SOURCES
filterx/func-len.c
filterx/func-vars.c
filterx/func-unset-empties.c
filterx/func-str.c
filterx/func-str-transform.c
filterx/func-flatten.c
filterx/func-sdata.c
Expand Down
2 changes: 2 additions & 0 deletions lib/filterx/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ filterxinclude_HEADERS = \
lib/filterx/func-vars.h \
lib/filterx/func-unset-empties.h \
lib/filterx/func-str-transform.h \
lib/filterx/func-str.h \
lib/filterx/func-flatten.h \
lib/filterx/func-sdata.h \
lib/filterx/filterx-private.h \
Expand Down Expand Up @@ -107,6 +108,7 @@ filterx_sources = \
lib/filterx/func-vars.c \
lib/filterx/func-unset-empties.c \
lib/filterx/func-str-transform.c \
lib/filterx/func-str.c \
lib/filterx/func-flatten.c \
lib/filterx/func-sdata.c \
lib/filterx/filterx-private.c \
Expand Down
4 changes: 4 additions & 0 deletions lib/filterx/filterx-globals.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include "filterx/func-len.h"
#include "filterx/func-vars.h"
#include "filterx/func-unset-empties.h"
#include "filterx/func-str.h"
#include "filterx/func-str-transform.h"
#include "filterx/func-flatten.h"
#include "filterx/func-sdata.h"
Expand Down Expand Up @@ -134,6 +135,9 @@ _ctors_init(void)
g_assert(filterx_builtin_function_ctor_register("flatten", filterx_function_flatten_new));
g_assert(filterx_builtin_function_ctor_register("is_sdata_from_enterprise",
filterx_function_is_sdata_from_enterprise_new));
g_assert(filterx_builtin_function_ctor_register("startswith", filterx_function_startswith_new));
g_assert(filterx_builtin_function_ctor_register("endswith", filterx_function_endswith_new));
g_assert(filterx_builtin_function_ctor_register("includes", filterx_function_includes_new));
}

static void
Expand Down
Loading

0 comments on commit ba344fa

Please sign in to comment.