StringContainer class
class StringContainer { String _string; StringContainer(this._string); String get string => _string; Iterable<Match> allMatches(RegExp regExp) { return regExp.allMatches(string); } Iterable<Match> allMatchesFromMultiRegExp(MultiRegExp multiRegExp) { return new MultiRegExpIterable(multiRegExp, this); } }
Constructors
new StringContainer(String _string) #
Creates a new Object
instance.
Object
instances have no meaningful state, and are only useful
through their identity. An Object
instance is equal to itself
only.
docs inherited from Object
StringContainer(this._string);
Properties
final String string #
String get string => _string;
Methods
Iterable<Match> allMatches(RegExp regExp) #
Iterable<Match> allMatches(RegExp regExp) { return regExp.allMatches(string); }
Iterable<Match> allMatchesFromMultiRegExp(MultiRegExp multiRegExp) #
Iterable<Match> allMatchesFromMultiRegExp(MultiRegExp multiRegExp) { return new MultiRegExpIterable(multiRegExp, this); }