[fpc-pascal]Word count function
owl at volny.cz
Wed Oct 3 20:03:29 CEST 2001
timized for just a character.
> We do have a separate version of pos for use with a character as first
> parameter. The reason it's much faster has been already explained with
> someone else (set ~ array[char] of boolean)
By the way, pos() is sometimes too slow itself, especially for searching
lage strings. Using attached unit I saw big difference.
(Selection of start positions is free :))
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 11277 bytes
Desc: not available
More information about the fpc-pascal