Attached the implementation of the Boyer-Moore string search
algorithm for the new textsearch infrastructure.
I've added as well a note about the limitations that this approach
presents, as Thomas has remarked.
Signed-off-by: Pablo Neira Ayuso <pablo@eurodev.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
config TEXTSEARCH_KMP
tristate
+config TEXTSEARCH_BM
+ depends on TEXTSEARCH
+ tristate "Boyer-Moore"
+ help
+ Say Y here if you want to be able to search text using the
+ Boyer-Moore textsearch algorithm.
+
+ To compile this code as a module, choose M here: the
+ module will be called ts_bm.
+
config TEXTSEARCH_FSM
tristate
obj-$(CONFIG_TEXTSEARCH) += textsearch.o
obj-$(CONFIG_TEXTSEARCH_KMP) += ts_kmp.o
+obj-$(CONFIG_TEXTSEARCH_BM) += ts_bm.o
obj-$(CONFIG_TEXTSEARCH_FSM) += ts_fsm.o
hostprogs-y := gen_crc32table