Count extension

Extension bundling functionalities related to counting string units

on

Methods

count() int
Counts the characters in a string
countGrapheme() int
Counts the graphemes in a string
countOccurences(String find) int
Counts the occurences of find in a string
countWhere(dynamic predicate(String character)) int
Counts the characters in a string for which predicate returns true
countWords({String pattern = ""}) int
Count the number of words in a string