Extracted from Pike v7.6 release 112 at 2010-04-06.
pike.ida.liu.se
[Top]
7.2::
String

Method String.count()


Method count

string String.count(string haystack, string needle)

Description

This function counts the number of times the needle can be found in haystack .

Note

Intersections between needles are not counted, ie count("....","..") is 2.