stringprocess 0.0.3

stringprocess

A library for string manipulation.

Status

Build Status

Usage

A simple usage example:

import 'package:stringprocess/stringprocess.dart';

main() {
  // A few simple examples.
  StringProcessor tps = new StringProcessor();

  // Print the numbers 1 to 10.
  print(tps.getSequenceString(1, 10, 1));

  // Repeat Something!
  print(tps.getRepeatedString("Mine!", 42));

  // Word count.
  print(tps.getWordCount("Dart is Awesome and cool!"));

  // Line count.
  print(tps.getLineCount("hello\ngood\nevening\nwelcome!\n"));
}

Unit Testing

pub run test test/stringprocess_test.dart -p chrome

Acknowledgements

This package makes use of the following Dart packages:

  • html_unescape
  • markdown

Features and bugs

Please file feature requests and bugs!

Changelog

0.0.3

  • Update to prepare for Dart 2.0.

0.0.2

  • Documentation added.
  • Minor refactoring and renaming.

0.0.1

  • Initial version extracted from NP8080.

1. Depend on it

Add this to your package's pubspec.yaml file:

dependencies:
  stringprocess: "^0.0.3"

2. Install it

You can install packages from the command line:

$ pub get

Alternatively, your editor might support 'pub get'. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:stringprocess/stringprocess.dart';

About

A collection of string manipulation functions.

Author

Email daftspaniel@gmail.com daftspaniel

Homepage

github.com/daftspaniel/stringprocess/

Documentation

www.dartdocs.org/documentation/stringprocess/0.0.3/

Source code (hyperlinked)

www.crossdart.info/p/stringprocess/0.0.3/

Uploader

daftspaniel@gmail.com

Share