Breno G. de Oliveira > Padre-0.45 > Padre::Search

Download:
Padre-0.45.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.45   Source   Latest Release: Padre-1.00

NAME ^

Padre::Search - The Padre Search API

SYNOPSIS

  # Create the search object
  my $search = Padre::Search->new(
      find_term => 'foo',
  );  
  
  # Execute the search on the current editor
  $search->search_next(Padre::Current->editor);

DESCRIPTION

This is the Padre Search API. It allows the creation of abstract objects object that can independantly search and/or replace in an editor object.

METHODS

matches

Parameters:

* The text in which we need to search

* The regular expression

* The offset within the text where we the last match started so the next forward match must start after this.

* The offset within the text where we the last match ended so the next backward match must end before this.

* backward bit (1 = search backward, 0 = search forward)

COPYRIGHT & LICENSE ^

Copyright 2008-2009 The Padre development team as listed in Padre.pm.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5 itself.

syntax highlighting: