SplitLines is a procedure used to separate the character values in AData into individual lines in AStrings. AData is the buffer to be examined for
CR or
LF markers that indicate the end of a line. AData will examine up to and including ADataSize characters in the AData buffer. When a
CR,
LF, or CRLF sequence is encountered, the string and a Pointer to the beginning of the current line are stored in AStrings using the TStrings.AddObject method.
Note: AStrings calls the TStrings.BeginUpdate and TString.Clear methods propr to locating and adding lines to the TStrings object instance. AStrings calls the TStrings.EndUpdate method when ADataSize characters have been handled in the Data buffer.