.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-04-28T18:16:21Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos