Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/marcolink/stringmatcher

A simple String Matcher
https://github.com/marcolink/stringmatcher

builder csharp string-matcher unity unity3d

Last synced: 16 days ago
JSON representation

A simple String Matcher

Awesome Lists containing this project

README

        

# StringMatcher
A Simple string matcher builder for Unity (works also on normal c# projects).

## Usage

### Direct use of *StringMatcherBuilder*

```csharp
var matcher = new StringMatcherBuilder()
.addMatcher(new StringBeginsWithMatcher("Hell"))
.addMatcher(new StringContainsMatcher("World"));

Assert.IsTrue(matcher.Match("Hello World"));
Assert.IsFalse(matcher.Match("Hello Planet"));
```