functionrepeat
Repeat a string n times
Extends from Modelica.Icons.Function (Icon for functions).
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".
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | n | 1 | Number of occurrences |
| String | string | " " | String that is repeated |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| String | repeatedString | String containing n concatenated strings |