WOLFRAM SYSTEM MODELER
AdvancedAdvanced scanning functions |
Scan a signed real number |
|
Scan signed integer number |
|
Scan string |
|
Scan simple identifiers |
|
Scan white space |
|
Scan comments and white space |
This information is part of the Modelica Standard Library maintained by the Modelica Association.
Package Strings.Advanced contains basic scanning functions. These functions should be not called directly, because it is much simpler to utilize the higher level functions "Strings.scanXXX". The functions of the "Strings.Advanced" library provide the basic interface in order to implement the higher level functions in package "Strings".
Library "Advanced" provides the following functions:
(nextIndex, realNumber) = scanReal (string, startIndex, unsigned=false); (nextIndex, integerNumber) = scanInteger (string, startIndex, unsigned=false); (nextIndex, string2) = scanString (string, startIndex); (nextIndex, identifier) = scanIdentifier (string, startIndex); nextIndex = skipWhiteSpace (string, startIndex); nextIndex = skipLineComments(string, startIndex);
All functions perform the following actions:
The following additional rules apply for the scanning:
SystemModel["Modelica.Utilities.Strings.Advanced"]