lazy_string 0.0.4 copy "lazy_string: ^0.0.4" to clipboard
lazy_string: ^0.0.4 copied to clipboard

This package can help people who are lazier and beginner to the faster when they use String and make a lot of function.

example/lazy_string_example.dart

import 'package:lazy_string/lazy_string.dart';

void main() {
  // for camelize
  LazyString.camelize('lazy-string'); // => "lazyString"
  LazyString.camelize('-lazy-string'); // => "LazyString"
  LazyString.camelize('_lazy_string'); // => "LazyString"
  LazyString.camelize('Lazy_string'); // => "LazyString"

  // for underscored
  LazyString.underscored('LazyString'); // => "lazy_string"

  // for dasherize
  LazyString.dasherize('LazyString'); // => "-lazy-string"

  // for humanize
  LazyString.humanize('  capitalize dash-CamelCase_underscore trim  ');
  // => "Capitalize dash camel case underscore trim"

  // for words
  LazyString.words('   lazy   string   '); // => ["lazy", "string"]
  LazyString.words('lazy_string', delimiter: '_'); // => ["lazy", "string"]

  // for repeat
  LazyString.repeat('lazy', count: 3); // => "lazylazylazy"
  LazyString.repeat('lazy', count: 2, separator: 'string');
  // => "lazystringlazy"

  // for count
  LazyString.count('Hello world', 'l'); // => 3

  // for reverse
  LazyString.reverse('Music 𝄞 make happy'); // => "yppah ekam 𝄞 cisuM"

  // for clean
  LazyString.clean('   lazy    string   '); // => "lazy string"

  // for chars
  LazyString.chars('lazystring');
  // => ["l", "a", "z", "y", "s", "t", "r", "i", "n", "g"]

  // for classify
  LazyString.classify('lazy_string'); // => "LazyString"
}
3
likes
130
pub points
19%
popularity

Publisher

unverified uploader

This package can help people who are lazier and beginner to the faster when they use String and make a lot of function.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on lazy_string