string2 = Strings.repeat(n); string2 = Strings.repeat(n, string=" ");
The first form returns a string consisting of n blanks.
The second form returns a string consisting of n substrings defined by the optional argument "string".
function repeat extends Modelica.Icons.Function; input Integer n(min = 0) = 1 "Number of occurrences"; input String string = " " "String that is repeated"; output String repeatedString "String containing n concatenated strings"; end repeat;