Mudlet  0
Mudclient
irccommandparser.cpp File Reference
#include "irccommandparser.h"
#include "irccommandparser_p.h"
#include "irctoken_p.h"
#include <climits>
#include "moc_irccommandparser.cpp"

Go to the source code of this file.

Functions

static bool isOptional (const QString &token)
 
static bool isMultiWord (const QString &token)
 
static bool isChannel (const QString &token)
 
static bool isCurrent (const QString &token)
 

Function Documentation

◆ isOptional()

static bool isOptional ( const QString token)
inlinestatic

Definition at line 195 of file irccommandparser.cpp.

Referenced by IrcCommandParserPrivate::parseSyntax().

196 {
197  return token.startsWith(QLatin1Char('(')) && token.endsWith(QLatin1Char(')'));
198 }
+ Here is the caller graph for this function:

◆ isMultiWord()

static bool isMultiWord ( const QString token)
inlinestatic

Definition at line 200 of file irccommandparser.cpp.

Referenced by IrcCommandParserPrivate::parseSyntax().

201 {
202  return token.contains(QLatin1String("..."));
203 }
+ Here is the caller graph for this function:

◆ isChannel()

static bool isChannel ( const QString token)
inlinestatic

Definition at line 205 of file irccommandparser.cpp.

Referenced by IrcCompleterPrivate::completeWords(), IrcBufferModelPrivate::insertBuffer(), IrcCommandParserPrivate::parseSyntax(), and IrcBufferModelPrivate::removeBuffer().

206 {
207  return token.contains(QLatin1Char('#'));
208 }
+ Here is the caller graph for this function:

◆ isCurrent()

static bool isCurrent ( const QString token)
inlinestatic

Definition at line 210 of file irccommandparser.cpp.

Referenced by IrcCommandParserPrivate::parseSyntax().

211 {
212  return token.startsWith(QLatin1Char('[')) && token.endsWith(QLatin1Char(']'));
213 }
+ Here is the caller graph for this function: