The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information.... |
Home BasePack Stringl Procedures and Functions ParseQuotedName | |||||||||
See also: ReadHeaderOfASC, TQuotedStrState | |||||||||
ParseQuotedName |
|||||||||
The function ParseQuotedName can be used to parse a string for quoted names. A quoted name is either a single word consisting of printable characters without spaces, or a string of several words enclosed by quotes (e.g. "This is a quoted name"). The enclosed string may contain non-printable characters (i.e. a CRLF combination) which are considered to be part of the quoted name. The routine implements a finite state machine which is controlled by the variable parameter State. In order to parse a stream for a quoted name you have first to clear the variable parameter CurrentName and to set the state variable to vsState. Next, you have to pass the characters of the stream to be parsed to the function (using the parameter cc). The function returns TRUE if the variable name is complete. The parameter QuoteChar determines which character is used as the quotation character.
|