string_tokenizer_1 1.0.2 copy "string_tokenizer_1: ^1.0.2" to clipboard
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 #

  1. Splitting Strings into multiple chunks based on delimeters, and the ability to change those delimeters anytime.
  2. Checking if the String has more Tokens, hasMoreTokens().
  3. Use every Token for any processing on the go, while still having the non-tokenized part of the Input String with nextToken().
  4. Can Tokenize all Input String similarlly to split() method, by using tokenizeAll().

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.

1
likes
140
pub points
0%
popularity

Publisher

unverified uploader

A package that splits Strings into multiple tokens.

Repository (GitHub)
View/report issues

Topics

#string #tokens #string-manipulation

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on string_tokenizer_1