* Makefile
* config/*
* contrib/*
* doc/*
* extras/*
* include/*
* lib/*
* package/*
* src/*
* tests/*
* utils/*
* removed empty lines left after removed '$' + 'Id' + '$' identifiers
20 lines
428 B
Plaintext
20 lines
428 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
|