This information is part of the Modelica Standard Library maintained by the Modelica Association.

Strings

Operations on strings

Package Contents

Advanced
Advanced scanning functions
compare
Compare two strings lexicographically
count
Count the number of non-overlapping occurrences of a string
find
Find first occurrence of a string within another string
findLast
Find last occurrence of a string within another string
isEqual
Determine whether two strings are identical
length
Returns length of string
repeat
Repeat a string n times
replace
Replace non-overlapping occurrences of a string from left to right
scanBoolean
Scan for the next Boolean number and trigger an assert if not present
scanDelimiter
Scan for the next delimiter and trigger an assert if not present
scanIdentifier
Scan for the next Identifier and trigger an assert if not present
scanInteger
Scan for the next Integer number and trigger an assert if not present
scanNoToken
Scan string and check that it contains no more token
scanReal
Scan for the next Real number and trigger an assert if not present
scanString
Scan for the next Modelica string and trigger an assert if not present
scanToken
Scan for the next token and return it
sort
Sort vector of strings in alphabetic order
substring
Returns a substring defined by start and end index
syntaxError
Print an error message, a string and the index at which scanning detected an error
Information