Skip to content

Commit

Permalink
Document interface.mos (#11129)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnHeuermann committed Sep 8, 2023
1 parent 2ab0055 commit 5a1f654
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions doc/UsersGuide/interface.mos
@@ -1,5 +1,5 @@
loadString("
function trim
function trim \" Trim leading whitespace\"
input String s;
output String o;
protected
Expand All @@ -9,7 +9,7 @@ algorithm
o := a[1];
end trim;

function reSTInterface
function reSTInterface \"Generate re-structured text documentation for MetaModelica function\"
input OpenModelica.Scripting.TypeName cl;
output String out;
protected
Expand All @@ -35,17 +35,11 @@ algorithm
end if;
end reSTInterface;

function isDeprecatedVersion
function isDeprecatedVersion \"Return true if version of type name is deprecated.\"
input OpenModelica.Scripting.TypeName cl;
output Boolean deprecated;
protected
String version = OpenModelica.Scripting.getVersion(cl);
algorithm
if stringEq(version, \"Deprecated\") then
deprecated := true;
else
deprecated := false;
end if;
deprecated := stringEq(OpenModelica.Scripting.getVersion(cl), \"Deprecated\");
end isDeprecatedVersion;
");
getErrorString();
Expand Down

0 comments on commit 5a1f654

Please sign in to comment.