functionchar
The character of a given string str at index i is returned.
Extends from Modelica.Icons.Function (Icon for functions).
Information
Syntax
str2 = char(str, i);
Description
The character of a given string str at index i is returned.
Example
str2 := char("Hello", 2);
-> str2 = "e"
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| String | str | string to be considered | |
| Integer | i | index of chararcter inside str |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| String | str2 | substring(str, i, i) | result character |