topstrcnt
Text, String
Return value
Number of occurances of substring in string.
Parameters
strn
in
required
type: string
substrn
in
required
type: string
startpos
in
required
Keywords
HELP
Version history
Version
$Id: strcnt.pro 163 2006-08-29 12:59:46Z navarro $
History
$Log: strcnt.pro,v $
Revision 1.3 1996/06/14 20:00:27 mcraig
Updated Copyright info.
Revision 1.2 1996/05/09 00:22:17 mcraig
Added fast processing using BYTE arrays if we are counting occurences of
a single character. Added error handling.
Revision 1.1 1996/01/31 18:47:37 mcraig
Initial revision
Copyright (C) 1996 The Regents of the University of California, All
Rights Reserved. Written by Matthew W. Craig.
See the file COPYRIGHT for restrictions on distrubting this code.
This code comes with absolutely NO warranty; see DISCLAIMER for details.
Known issues
Restrictions
Overlapping occurances are not counted separately. For
example, counting occurances of 'bb' in 'blah bbb' returns one
occurance.
Statistics
McCabe cyclic | 7 |
McCabe essential | 1 |
McCabe modular design | 1 |