Files
harbour-core/contrib/hbnf/tests/findith.prg
vszakats 9687850865 2013-03-16 02:10 UTC+0100 Viktor Szakats (harbour syenar.net)
* (all files)
    * stripped svn header
    * minor cleanups
    ; use following command to find out the history of files:
       git log
       git log --follow
       git blame
       git annotate
2013-03-16 02:11:42 +01:00

21 lines
429 B
Plaintext

#require "hbnf"
PROCEDURE Main( cCk, cStr, nOcc, xCase )
LOCAL nFind
IF PCount() != 4
? "usage: findith cCk cStr nOcc xCase"
ELSE
xCase := iif( xCase == "Y", .T., .F. )
nOcc := Val( nOcc )
? iif( xCase, "Ignoring ", "Observing " ) + "case:"
? cStr
nFind := ft_FindITh( cCk, cStr, nOcc, xCase )
? iif( nFind > 0, Space( nFind - 1 ) + "^", "Not found" )
ENDIF
RETURN