X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fircdecoder.cpp;fp=src%2Fcommon%2Fircdecoder.cpp;h=cadefbf71d9e31d77f1def07af7a085f9a91d21b;hp=e642ef1b9529de1d1aafc7f2447fc7c6e7619ec3;hb=71253052c7152711f7f1b96f274d6f06d97f2cdb;hpb=926e41c2d511fd0ac68b50f6d109243d6457a999 diff --git a/src/common/ircdecoder.cpp b/src/common/ircdecoder.cpp index e642ef1b..cadefbf7 100644 --- a/src/common/ircdecoder.cpp +++ b/src/common/ircdecoder.cpp @@ -63,16 +63,7 @@ QString IrcDecoder::parseTagValue(const QString& value) return result; } -/** - * Extracts a space-delimited fragment from an IRC message - * @param raw Raw Message - * @param start Current index into the message, will be advanced automatically - * @param end End of fragment, if already known. Default is -1, in which case it will be set to the next whitespace - * character or the end of the string - * @param prefix Required prefix. Default is 0. If set, this only parses a fragment if it starts with the given prefix. - * @return Fragment - */ -QByteArray extractFragment(const QByteArray& raw, int& start, int end = -1, char prefix = 0) +QByteArray IrcDecoder::extractFragment(const QByteArray& raw, int& start, int end, char prefix) { // Try to set find the end of the space-delimited fragment if (end == -1) { @@ -100,12 +91,7 @@ QByteArray extractFragment(const QByteArray& raw, int& start, int end = -1, char return fragment; } -/** - * Skips empty parts in the message - * @param raw Raw Message - * @param start Current index into the message, will be advanced automatically - */ -void skipEmptyParts(const QByteArray& raw, int& start) +void IrcDecoder::skipEmptyParts(const QByteArray& raw, int& start) { while (start < raw.length() && raw[start] == ' ') { start++;