.Modelica.Utilities.Strings.repeat

Information

Syntax

string2 = Strings.repeat(n);
string2 = Strings.repeat(n, string=" ");

Description

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".

Interface

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;

Generated at 2020-06-05T07:38:22Z by OpenModelica 1.16.0~dev-420-gc007a39