Skip to content

Ahmad-Mtr/string_tokenizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Languages