function findAll extends Modelica.Icons.Function; import Modelica.Utilities.Strings.find; import Modelica.Utilities.Strings.count; input String string "String that is analyzed"; input String searchString "String that is searched for in string"; input Boolean caseSensitive = true "= false, if lower and upper case are ignored for the search"; output Integer index[count(string, searchString, 1, caseSensitive)] "Index of the beginning of the first occurrence of 'searchString' within 'string', or zero if not present"; end findAll;