str2 = char(str, i);
The character of a given string str at index i is returned.
str2 := char("Hello", 2); -> str2 = "e"
function char import Modelica.Utilities.Strings.*; extends Modelica.Icons.Function; input String str "string to be considered"; input Integer i "index of chararcter inside str"; output String str2 = substring(str, i, i) "result character"; end char;