/**
* Count the number of occurrences of the specified code point.
*/
public static int occurrencesOf(String string, final int value)
{
return StringIterate.count(string, new CodePointPredicate()
{
public boolean accept(int codePoint)
{
return value == codePoint;
}