.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 2024-12-24T19:25:53Z by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos