read(untilString:throwOnOverflow:skipToEnd:)

Read from buffer until we hit a string. By default the position after this is of the beginning of the string we were checking for

HBParser.swift:238
@discardableResult mutating func read(untilString: String, throwOnOverflow: Bool = true, skipToEnd: Bool = false) throws -> Parser

Parameters

untilString

String to check for

throwOnOverflow

Throw errors if we hit the end of the buffer

skipToEnd

Should we set the position to after the found string

Returns

String read from buffer

Throws

.overflow, .emptyString