.FaultTriggering.Utilities.Internal.Records.OutputHandling.char

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"

Interface

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;

Generated at 2024-12-22T19:25:51Z by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos