Function TextEdit.search

Perform a search inside the text. Search flags can be specified in the searchflags enum. Returns an empty PoolIntArray if no result was found. Otherwise, the result line and column can be accessed at indices specified in the searchresult enum, e.g:

PoolArray!(int) search (
  const(String) key,
  const(long) flags,
  const(long) from_line,
  const(long) from_column
) nothrow @nogc const;

var result = search(key, flags, line, column) if result.size() > 0: # Result found. var res_line = resultTextEdit.SEARCH_RESULT_LINE var res_column = resultTextEdit.SEARCH_RESULT_COLUMN