.TRANSFORM.Utilities.Strings.fillNumString

Information

Creates an array of strings with the option to enumerate the strings starting from a user specified number.

fillString(2,"hi",iStart=1,number=true)

= {"hi_1","hi_2"}

Interface

function fillNumString
  extends Modelica.Icons.Function;
  input Integer n(min = 0) = 1 "Number of occurrences";
  input String string = " " "String value";
  input Integer iStart = 1 "Value to start numbering if number=true";
  input Boolean number = true "=true to add extensions to string (i.e., {string_1, string_n...})";
  output String[n] arrayString "String array";
end fillNumString;

Generated at 2024-11-23T19:25:52Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos