@Override
   public int matches( S sequenceA, int indexA, S sequenceB, int indexB, int count )
   {
      for (int i = 0; i < count; i++)
      {
         if (sequenceA.charAt( indexA + i ) != sequenceB.charAt( indexB + i ))
         {
            return i;
         }
      }

      return count;
   }