Beispiel #1
0
 public PartedString Filter(PartedString ToFilter)
 {
     for (int i = 0; i < ToFilter.Count; i++)
     {
         if (_config.BlackList.Contains(ToFilter[i]))
         {
             ToFilter.RemoveAt(i);
             i--;
         }
         else
         {
             string dummy = "";
             foreach (var curse in Curses)
             {
                 dummy = curse.TryFix(ToFilter[i]);
                 if (curse.Fixed)
                 {
                     ToFilter[i] = dummy;
                     break;
                 }
             }
         }
     }
     return ToFilter;
 }
Beispiel #2
0
 //-----------------------------------------------------------------------------------------------------------------------
 //-----------------------------------------------------------------------------------------------------------------------
 private void SeekAndDestroy(PartedString ps)
 {
     for (int i = 0; i < ps.Count; i++)
     {
         if (StringsToDelete.Contains(ps[i]))
         {
             ps.RemoveAt(i);
             i--;
         }
     }
 }
 // just look for macthing string
 // hand remove this part
 private void execute(PartedString parted)
 {
     for (int i = 0; i < parted.Count; i++)
     {
         var match = Reg.Match(parted[i]);
         if (match.Success)
         {
             parted.RemoveAt(i);
             i--;
         }
     }
 }