C# (CSharp) CK.Text StringMatcher - 10 examples found. These are the top rated real world C# (CSharp) examples of CK.Text.StringMatcher extracted from open source projects. You can rate examples to help us improve the quality of examples.
This class supports "Match and Forward" pattern. On a failed match, the SetError method sets the ErrorMessage. On a successful match, the StartIndex is updated by a call to Forward so that the Head is positioned after the match (and any existing error is cleared). There are 2 main kind of methods: TryMatchXXX that when the match fails returns false but do not call SetErrorand MatchXXX that do set an error on failure. This class does not actually hide/encapsulate a lot of things: it is designed to be extended through extension methods.