Foundry.FileSearchMatch¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r |
|||
r |
|||
r |
|||
r |
|||
r |
|||
r |
|||
r |
|||
r |
|||
r |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Foundry.FileSearchMatch(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
A file search match result.
[class`Foundry`.FileSearchMatch] represents a search match result containing information about where a search term was found in a file, including the file location, line number, character offset, and text length.
New in version 1.1.
- dup_after_context()¶
-
Gets the text after the search text.
New in version 1.1.
- dup_before_context()¶
-
Gets the text before the search text.
New in version 1.1.
- dup_file()¶
-
Gets a copy of the file associated with the search match.
New in version 1.1.
- dup_icon()¶
-
Gets the icon for the file associated with the search match.
New in version 1.1.
- dup_text()¶
-
Gets the matched text.
New in version 1.1.
- get_length()¶
- Returns:
the length of the text in characters
- Return type:
Gets the length of the search text in characters.
New in version 1.1.
- get_line()¶
- Returns:
the line number (0-based)
- Return type:
Gets the line number where the search match was found.
New in version 1.1.
- get_line_offset()¶
- Returns:
the character offset within the line (0-based)
- Return type:
Gets the character offset within the line where the search match starts.
New in version 1.1.
- do_dup_after_context() virtual¶
-
Gets the text after the search text.
New in version 1.1.
- do_dup_before_context() virtual¶
-
Gets the text before the search text.
New in version 1.1.
- do_dup_file() virtual¶
-
Gets a copy of the file associated with the search match.
New in version 1.1.
- do_dup_text() virtual¶
-
Gets the matched text.
New in version 1.1.
- do_get_length() virtual¶
- Returns:
the length of the text in characters
- Return type:
Gets the length of the search text in characters.
New in version 1.1.
- do_get_line() virtual¶
- Returns:
the line number (0-based)
- Return type:
Gets the line number where the search match was found.
New in version 1.1.
Property Details¶
- Foundry.FileSearchMatch.props.after_context¶
- Foundry.FileSearchMatch.props.before_context¶
- Foundry.FileSearchMatch.props.line_offset¶