Skip to content

LineParser

Members

Constructors

Properties

Methods


LineParser

Constructor

Arguments

Arguments Default Description
target   Target to forward events to. If omitted, events are sent to this object.

Description

Constructor


currentLineNumber

Property \ Access: r/w

Description

Gets the number of the line processed so far


init

Method

Arguments

Arguments Default Description
text   Text.

Description

Initializes the text to process


initStorage

Method

Arguments

Arguments Default Description
filename   File name of the text.
utf8 false true for a UTF-8 file.

Description

Initializes the text to process


getNextLine

Method

Return value

The line.

Description

Gets the next line as a string


parse

Method

Arguments

Arguments Default Description
text   Text. If omitted, the currently set text is parsed.

Description

Parses text

Calls the doLine() event for each line.


parseStorage

Method

Arguments

Arguments Default Description
filename   File name of the text.
utf8 false true for a UTF-8 file.

Description

Parses text


doLine

Method

Arguments

Arguments Default Description
text   Text of the line.
lineNo   Line number (starting at 1).

Description

Event called from parse/parseStorage