countItem

fnint countItem(IStr str, IStr item) @safe nothrow @nogc

Counts the number of occurrences of the specified substring in the string.

fnint countItem(IStr str, char item) @safe nothrow @nogc

Counts the number of occurrences of the specified character in the string.