search_engine library Null safety

Searching in a list of lines or a given text file.

Glossary: A "position" is a well known location in the text, given by a line index (0..N) and a column index (0..M) A "region" is a part of the text given by a start and an end position. The end position of the region is outside the region (exclusive).

The search engine contains a "current region". The operations will be done only inside this region.

Classes

Block
BlockEntry
Class
Stores a dart class.
DartParser
Import
Stores one import line.
LastMatch
Stores the properties of the last match done by search().
ParserItem
Base class of the items found by the parser.
Position
Stores a position in a text represented by a line index and a column index.
RegExpSearcher
Region
Manages a part of the text defined by a start and end position.
SearchEngine
Offers search and replace services in a text represented as list of lines. The service is only executed within in a region named currentRegion. Note: currentRegion can include the whole text (but does not have to be). The service starts at the currentPosition.
SearchEngineIo
Extension of SearchEngine with functionality depending on dart:io.
Searcher
SearcherGroupHandler
StringInsensitiveSearcher
Searcher for a simple string, case insensitive.
StringSearcher
Searcher for a simple string.
TextEngine
Offers services in a text represented as list of lines like insert/delete text or text lines.
Unknown
Some parts of the dart file can be unknown. They will be stored here.
Variable
Stores a class variable or a module variable.

Constants

int52MaxValue → const int
4503599627370496

Properties

dummyBlock Block
final
dummyRegion Region
We want to use null safety: So we define a Region for class variable initializing, that will be replaced in the constructor.
final
dummySearchEngine SearchEngine
final
dummySearcher StringSearcher
final
dummyTextEngine TextEngine
We want to use null safety: So we define a TextEngine for class variable initializing, that will be replaced in the constructor.
final

Enums

BlockEntryType
LastMatchType
ParserItemType
RelativePosition