functionfindAll

Find all indexes of 'subString' within 'string'

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

TypeNameDefaultDescription
StringstringString that is analyzed
StringsearchStringString that is searched for in string
BooleancaseSensitivetrue= false, if lower and upper case are ignored for the search

Outputs

TypeNameDefaultDescription
Integer[count(string, searchString, 1, caseSensitive)]indexIndex of the beginning of the first occurrence of 'searchString' within 'string', or zero if not present