string_tokenizer_1 1.0.2 string_tokenizer_1: ^1.0.2 copied to clipboard
A package that splits Strings into multiple tokens.
A more advanced String Tokenizer than the available split()
method in dart.
Features #
- Splitting Strings into multiple chunks based on delimeters, and the ability to change those delimeters anytime.
- Checking if the String has more Tokens,
hasMoreTokens()
. - Use every Token for any processing on the go, while still having the non-tokenized part of the Input String with
nextToken()
. - Can Tokenize all Input String similarlly to
split()
method, by usingtokenizeAll()
.
Getting started #
dart pub add string_tokenizer_1
Usage #
Longer examples in
/example
folder.
import 'package:string_tokenizer_1/string_tokenizer_1.dart';
final input2 =
"package:string_tokenizer/...";
final objkt2 = StringTokenizer(input2, [':']);
final res = objkt2.nextToken();
print(res); // package
Additional information #
- All information, source code: Github Repo.
- All Contributions are welcome via pull-requests, please make sure to submit cleaner code, with documenting changes or providing a basic info for other users of this Package.
- Issues, suggestions, are all welcome via Github Issues.
Please note that this package was intended only for a personal project of mine, there's a high chance of not contributing to this package later.