StringSearcher class
Searcher for a simple string.
- Inheritance
-
- Object
- SearcherGroupHandler
- StringSearcher
- Implemented types
Constructors
- StringSearcher(SearchEngine searchEngine, String toSearch)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- searchEngine → SearchEngine
-
finalinherited
- toSearch ↔ String
-
getter/setter pair
Methods
-
group(
int groupNo) → String? -
Returns the group with
groupNo
of the last hit. IfgroupNo
is 0 the full match is returned. Returns null if this group does not exist, the group otherwise.override -
groups(
) → int -
Returns the number of groups of the last hit.
override
-
hitStart(
) → int? -
Returns the column of the last hit found by this instance.
override
-
next(
String line, [int start = 0]) → int? -
Looks for the next current pattern.
The search starts at index
start
inline
. Returns null if not found or the index of the hit.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
previous(
String line, [int? start]) → int? -
Looks for the previous current pattern.
start
: If null the whole line is inspected. Otherwise the search starts at this index Returns null if not found or the index of the hit.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited