Split a Line
line, rem = source.splitline(p, txt)
line, rem = source.splitline(txt)
Performs a split of the line, looking for CR or LF characters.
This function is not normally required as the process of reading data and converting it into lines of ASCII is handled by the function source.readline.
Parameter | Type | Description |
---|---|---|
p |
table | Protocol table |
txt |
string | Raw text to split |
Returns | Type | Description |
---|---|---|
line |
string | First line of the text, or nil if not found |
rem |
string | Remainder of the raw text |