   # You don't need to call the functions below this point manually
 
   searchForSlice: (text, slice, expectedStartLoc) ->
-#    console.log "searchForSlice: '" + text + "', '" + slice + "', " + expectedStartLoc
+#    console.log "searchForSlice: '" + text + "', '" + slice + "', " +
+#        expectedStartLoc
 
     r1 = @dmp.match_main text, slice, expectedStartLoc
     startIndex = r1.index

      pattern = pattern.toLowerCase()
    while (i = text.indexOf pattern) > -1
      do =>
#        console.log "Found '" + pattern + "' @ " + i + " (=" + (index + i) + ")"
        results.push
          start: index + i
          end: index + i + pLen

  #
  # If no match is found, the function returns null.
  search: (text, pattern, expectedStartLoc = 0, options = {}) ->
#    console.log "In dtm search. text: '" + text + "', pattern: '" + pattern +
#       "', expectedStartLoc: " + expectedStartLoc + ", options:"
#    console.log options
    if expectedStartLoc < 0 then throw new Error "Can't search at negative indices!"

