Go to the first, previous, next, last section, table of contents.


|scanTokenToChar

Function: |scanTokenToChar { [mss char quote] -> [mss bytestart bytestop lineloc] }
file: job.t
package: muf
status: alpha

The |scanTokenToChar function reads token chars from message stream mss until it finds a char char (which is included in the token). If quote is not nil, it is a quote char (typically backslash), and char terminates the token only if not preceded by an unquoted quote.

The |scanTokenToChar function returns lineloc, the line on which the token began (for diagnostic purposes). The remaining arguments may be passed to |readTokenChars to obtain the actual chars in the token. (These are sometimes unwanted, for example in comment tokens.)

The terminating character is included in the token.


Go to the first, previous, next, last section, table of contents.