Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d781336

Browse files
committed
Add Table of Features section
1 parent df7a63e commit d781336

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

‎README.md‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
**KMP Algorithm .NET** is the .NET implementation of Knuth–Morris–Pratt algorithm. The project defines a set of extension methods that apply the algorithm to strings and lists.
66

7-
Unlike traditional KMP algorithm uses which are focused on string instances, the project provides a set of generic APIs that apply KMP algorithm to [IEnumerable(T)](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.ienumerable-1), [IList(T)](https://docs.microsoft.com/en-us/dotnet/core/api/system.collections.generic.ilist-1) and [IReadOnlyList(T)](https://docs.microsoft.com/en-us/dotnet/core/api/system.collections.generic.ireadonlylist-1), as long as type T is [equatable](https://docs.microsoft.com/en-us/dotnet/core/api/system.iequatable-1). This expands the applicability of the algorithm, making searching an array of bytes in a longer array, or a collection of floats in an array of floats with same algorithm possible. In some cases, you may specify optional parameter [IEqualityComparer(T)](https://docs.microsoft.com/en-us/dotnet/core/api/system.collections.generic.iequalitycomparer-1) instance to provide different comparison behavior for type `T`.
7+
Unlike traditional KMP algorithm uses which are focused on string instances, the project provides a set of generic APIs that apply KMP algorithm to [IEnumerable(T)](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.ienumerable-1), [IList(T)](https://docs.microsoft.com/en-us/dotnet/core/api/system.collections.generic.ilist-1) and [IReadOnlyList(T)](https://docs.microsoft.com/en-us/dotnet/core/api/system.collections.generic.ireadonlylist-1), as long as type ``T`` is [equatable](https://docs.microsoft.com/en-us/dotnet/core/api/system.iequatable-1). This expands the applicability of the algorithm, making searching an array of bytes in a longer array, or a collection of floats in an array of floats with same algorithm possible. In some cases, you may specify optional parameter [IEqualityComparer(T)](https://docs.microsoft.com/en-us/dotnet/core/api/system.collections.generic.iequalitycomparer-1) instance to provide different comparison behavior for type `T`.
88

99
The project also includes a "backward" version of KMP algorithm that searches the last occurrence of the target within the instance.
1010

@@ -95,6 +95,14 @@ A set of APIs that wrap [TextReader](https://docs.microsoft.com/en-us/dotnet/api
9595
}
9696
```
9797

98+
## Table of Features
99+
100+
| Search In\Search With | IEnumerable(T) | IReadOnlyList(T) | string |
101+
|-----------------------|----------------|------------------|--------|
102+
| IEnumerable(T) | Not Supported | IndexOf() | IndexOf() |
103+
| IReadOnlyList(T) | Not Supported | IndexOf(), LastIndexOf(), IndexesOf(), LastIndexesOf() | IndexOf(), LastIndexOf(), IndexesOf(), LastIndexesOf() |
104+
| string | Not Supported | IndexOf(). LastIndexOf(), IndexesOf(), LastIndexesOf() | Native APIs, IndexesOf(), LastIndexesOf() |
105+
98106
## Future Works
99107

100108
* `IndexOfAny()` and `IndexesOfAll()` implementation

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /