.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 2025-02-21T19:24:40Z by OpenModelicaOpenModelica 1.24.4 using GenerateDoc.mos