[fpc-pascal]Word count function

Petr Titera 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 :))

Petr
>
> Jonas
>
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fastsearch.pp
Type: application/octet-stream
Size: 11277 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20011003/1de908c0/attachment.obj>


More information about the fpc-pascal mailing list