back to Table of Contents


ParseLine (function)

Does parse the given input line and break the line up into its individual words or components according to the given separators and quoting chars.

Any kind and number of the given separator chars will split the components unless they appear in quoted sections. Parts of the line enclosed by the given quotation char(s) will be handled as one word or component. For more specific information see the PARSING RULES below.


SYNTAX:

ub& = ParseLine& (inpLine$, sepChars$, quoChars$, outArray$(), minUB&)

INPUTS:

inpLine$ (STRING)

sepChars$ (STRING)

quoChars$ (STRING)

outArray$() (STRING array)

minUB& (LONG)


RESULT:

ub& (LONG)


PARSING RULES:

Note that a char cannot be a separator and a quoting char at the same time, if required you've to workaround that by performing several parsing stages !!
Quoting rules: (one char mode)
Quoting rules: (two chars mode)

back to Table of Contents