removeFirstName function
Requirements.Internal.removeFirstName
ยท source
Remove first name of a Modelica path name
Extends Modelica.Icons.Function
Returns the Modelica path name path without its first name and the following dot:
removeFirstName("Root.a.b") = "a.b". If path contains no dot, or the first
dot is its last character, path is returned unchanged. The counterpart is
getFirstName.
The first name of an instance path is the name of the simulated root model. The function removes it from the requirement names in the summary of printViolationsToOutput, and the FFT blocks of ChecksInFixedWindow_withFFT use it to build the names of their result files from their instance name.
Inputs
| Name | Type | Description |
|---|---|---|
path input | String | Modelica path name, e.g. \"Root.a.b\" |
Outputs
| Name | Type | Description |
|---|---|---|
tail output | String | = path where part upto first \".\" is removed (if \".\" not present, tail=path) |