From 5a1f654c74a0b164cb2a7e2650dcdac1770a2baa Mon Sep 17 00:00:00 2001 From: Andreas <38031952+AnHeuermann@users.noreply.github.com> Date: Fri, 8 Sep 2023 16:59:34 +0200 Subject: [PATCH] Document interface.mos (#11129) --- doc/UsersGuide/interface.mos | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/doc/UsersGuide/interface.mos b/doc/UsersGuide/interface.mos index 1397652ec48..af15a09dad1 100644 --- a/doc/UsersGuide/interface.mos +++ b/doc/UsersGuide/interface.mos @@ -1,5 +1,5 @@ loadString(" -function trim +function trim \" Trim leading whitespace\" input String s; output String o; protected @@ -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 @@ -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();