1Padre::Search(3)      User Contributed Perl Documentation     Padre::Search(3)
2
3
4

NAME

6       Padre::Search - The Padre Search API
7
8   SYNOPSIS
9         # Create the search object
10         my $search = Padre::Search->new(
11             find_term => 'foo',
12         );
13
14         # Execute the search on the current editor
15         $search->search_next(Padre::Current->editor);
16
17   DESCRIPTION
18       This is the Padre Search API. It allows the creation of abstract search
19       object that can independently search and/or replace in an editor
20       object.
21
22   METHODS
23   matches
24         my ($first_char, $last_char, @all) = $search->matches(
25             $search_text,
26             $search_regexp,
27             $
28       Parameters:
29
30       * The text in which we need to search
31
32       * The regular expression
33
34       * The offset within the text where we the last match started so the
35       next
36         forward match must start after this.
37
38       * The offset within the text where we the last match ended so the next
39         backward match must end before this.
40
41       * backward bit (1 = search backward, 0 = search forward)
42
44       Copyright 2008-2011 The Padre development team as listed in Padre.pm.
45
46       This program is free software; you can redistribute it and/or modify it
47       under the same terms as Perl 5 itself.
48
49
50
51perl v5.32.1                      2021-01-27                  Padre::Search(3)
Impressum