Initial import of the ircii-pana-1.1-final source tree.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/tags/ircii-pana-1.1-final@1 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
19
bitchx-docs/6_Functions/count
Normal file
19
bitchx-docs/6_Functions/count
Normal file
@@ -0,0 +1,19 @@
|
||||
Synopsis:
|
||||
$count(<string> <text>)
|
||||
|
||||
Technical:
|
||||
This function counts how many times <string> appears in the text specified
|
||||
by <text>, possibly overlapping.
|
||||
|
||||
Practical:
|
||||
The uses for a function like this are unlimited. One may be to count how
|
||||
many times a person's nick appears in a public message, for logging
|
||||
purposes.
|
||||
|
||||
Returns:
|
||||
number of times <string> is found in <text>
|
||||
|
||||
Examples:
|
||||
$count(. one.two.three) returns 2
|
||||
$count(zz zzzz) returns 3
|
||||
|
||||
Reference in New Issue
Block a user