Example #1
0
        public static List <int> FindTest(IStringSearcher searcher, string subString)
        {
            IEnumerable <int> values = searcher.Find(s, subString);
            var result = new List <int>();

            result.AddRange(values);

            return(result);
        }
 public override IDecorationOf <IStringSearcher> ApplyThisDecorationTo(IStringSearcher thing)
 {
     return(new NonOverlappingStringSearcherDecoration(thing as IByPositionStringSearcher));
 }
 public override IDecorationOf<IStringSearcher> ApplyThisDecorationTo(IStringSearcher thing)
 {
     return new NonOverlappingStringSearcherDecoration(thing as IByPositionStringSearcher);
 }
Example #4
0
 public override IDecorationOf <IStringSearcher> ApplyThisDecorationTo(IStringSearcher thing)
 {
     return(new PostMatchCursorMovingStringSearcherDecoration(thing as IByPositionStringSearcher, this.PostMatchCursorMoveLogic));
 }
 public override IDecorationOf<IStringSearcher> ApplyThisDecorationTo(IStringSearcher thing)
 {
     return new ByPositionTrieDecoration(thing as ITrie);
 }
Example #6
0
 public override IDecorationOf <IStringSearcher> ApplyThisDecorationTo(IStringSearcher thing)
 {
     return(new ByPositionTrieDecoration(thing as ITrie));
 }
 public override IDecorationOf<IStringSearcher> ApplyThisDecorationTo(IStringSearcher thing)
 {
     return new PostMatchCursorMovingStringSearcherDecoration(thing as IByPositionStringSearcher, this.PostMatchCursorMoveLogic);
 }