StringInsensitiveSearcher class
Searcher for a simple string, case insensitive.
- Inheritance
-
- Object
- SearcherGroupHandler
- RegExpSearcher
- StringInsensitiveSearcher
Constructors
- StringInsensitiveSearcher(SearchEngine engine, String toSearch)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- regExp ↔ RegExp
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- searchEngine → SearchEngine
-
finalinherited
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.inherited -
groups(
) → int -
Returns the number of groups of the last hit.
inherited
-
hitStart(
) → int? -
Returns the column of the last hit found by this instance.
inherited
-
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.inherited -
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.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited