scanNoToken

Scan string and check that it contains no more token

Information

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

Syntax

Strings.scanNoToken(string, startIndex=1, message="");

Description

Function scanNoToken scans the string starting at index "startIndex" and checks whether there is no more token in the string. An assert is triggered if this is not the case, using the "message" argument as additional explanation in the error text.

Syntax

scanNoToken(string, startIndex, message)

Inputs (3)

string

Type: String

Description: String to be scanned

startIndex

Default Value: 1

Type: Integer

Description: Start scanning of string at character startIndex

message

Default Value: ""

Type: String

Description: Message used in error message if scan is not successful