class Crystalg::Strings::AhoCorasick

Defined in:

crystalg/strings/aho_corasick.cr

Constant Summary

ROOT = 0

Constructors

Instance Method Summary

Constructor Detail

def self.new(max_node) #

[View source]

Instance Method Detail

def add(str) #

[View source]
def contain?(target : String) #

[View source]
def failure(id) #

[View source]
def goto(id, char) #

[View source]
def match_prefixes(target : String) : Array(String) #

[View source]
def match_suffix?(target : String) #

[View source]
def nodes : Array(Node) #

[View source]
def nodes=(nodes : Array(Node)) #

[View source]
def size : Int32 #

[View source]
def size=(size : Int32) #

[View source]