aho_corasick 1.0.0 copy "aho_corasick: ^1.0.0" to clipboard
aho_corasick: ^1.0.0 copied to clipboard

outdated

A starting point for Dart libraries or applications.

example/aho_corasick_example.dart

import 'package:aho_corasick/aho_corasick.dart';

main() {
  final aho = AhoCorasick.fromWordList(['abc', 'bcd', 'bcde']);
  final results = aho.matches('search in abcd');
  print(results
      .map((match) => 'found ${match.word} at ${match.startIndex}')
      .join('\n'));

  final longest = aho.firstMatch('bcde', longest: true);
  print(longest.word);
}
4
likes
0
pub points
57%
popularity

Publisher

unverified uploader

A starting point for Dart libraries or applications.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

meta

More

Packages that depend on aho_corasick