v2

package
v0.0.0-...-48c9e09 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//MaxArraySize Need modify this value if your pattern is much learger than 100
	MaxArraySize int = 100
)

Variables

This section is empty.

Functions

func KMP

func KMP(haystack string, needle string) []int

KMP Return index list if target string contain want string

func Strchr

func Strchr(haystack string, needle string) int

Strchr :Returns a pointer to the last occurrence of string in the string str

func Strstr

func Strstr(haystack string, needle string) int

Strstr :Use kmp for strstr function

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL