functionfillNumString
Create array of strings with option to number
Extends from Modelica.Icons.Function (Icon for functions).
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"}
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | n | 1 | Number of occurrences |
| String | string | " " | String value |
| Integer | iStart | 1 | Value to start numbering if number=true |
| Boolean | number | true | =true to add extensions to string (i.e., {string_1, string_n...}) |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| String | arrayString | String array |