Project

General

Profile

Up

strfind2List

Like strfind. strfind2List gives all positions found

Prototype :

fun [S S I] [I r1]

  • S : any string
  • S : a sub-string to search
  • I : a position to begin

Return : [I r1] a list of positions or nil

See also :

strfind

strfindi

strfindAnyChar (in Syspack too)

Example :

fun main ()=
	_showconsole;
	_fooIList strfind2List "Scol is a good language." "a" 0;
	_fooIList strfind2List "Scol is a good language." "good" 12;
	0;;