parseGeneralCases

Takes a slice of a raw IRC string and continues parsing it into an IRCEvent struct.

This function only focuses on applying general heuristics to the remaining line, dividing it into fields like target, channel, content, etc; not based by its type but rather by how the string looks.

The IRCEvent is finished at the end of this function.

private pure @safe
void
parseGeneralCases
(
const ref IRCParser parser
,,
ref string slice
)

Parameters

parser IRCParser

Reference to the current IRCParser.

event IRCEvent

Reference to the IRCEvent to continue working on.

slice string

Reference to the slice of the raw IRC string.