stringmatching

package
v0.0.0-...-6786673 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BruteForceMatching

func BruteForceMatching(str, substr string) (index int, found bool)

func KnuthMorrisPrattMatching

func KnuthMorrisPrattMatching(str, substr string) (index int, found bool)

func RabinKarpMatching

func RabinKarpMatching(str, substr string) (index int, found bool)

func UnknownMatching

func UnknownMatching(str, substr string) (index int, found bool)

I don't know what it's called, so i call it "unknown"

Types

type StringMatchingFunction

type StringMatchingFunction func(str, substr string) (index int, found bool)