.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-11-23T19:25:52Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos