Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 1.54 KB

Assorted.Utils.Text.KMPSearch.md

File metadata and controls

44 lines (28 loc) · 1.54 KB

KMPSearch Class

Namespace: Assorted.Utils.Text
Assembly: Assorted.Utils (Assorted.Utils.dll) version 1.1.0.0
Inheritance: object KMPSearch

Implements Knuth–Morris–Pratt string-search algorithm.

Syntax

public class KMPSearch

Constructors

Constructor Description
KMPSearch(string) Initializes a new instance of KMPSearch class.

Properties

Property Description
Target Gets the string to search for.

Methods

Method Description
SearchIn(string) Reports the zero-based indexes of all occurrences of the Target string in a given text.
SearchIn(TextReader, int) Reports the zero-based indexes of all occurrences of the Target string in the text contained by a specific System.IO.TextReader object.

Thread Safety

Any public member of this type, either static or instance, is thread-safe.

See Also


This document is generated by DG.