Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 402 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 402 Bytes

StringMatcher

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

Usage

Direct use of StringMatcherBuilder

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

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