KVIrc  4.9.2
DeveloperAPIs
Macros
KviKvsParserMacros.h File Reference

Go to the source code of this file.

Macros

#define KVSP_ASSERT(_x)
 
#define KVSP_backChar   m_ptr--
 
#define KVSP_backNChars(n)   m_ptr -= n
 
#define KVSP_curCharIsEndOfBuffer   (m_ptr->unicode() == 0)
 
#define KVSP_curCharIsEndOfCommand   ((m_ptr->unicode() == ';') || (m_ptr->unicode() == 0) || (m_ptr->unicode() == '\n') || (m_ptr->unicode() == '\r'))
 
#define KVSP_curCharIsFunctionStart   (m_ptr->isLetterOrNumber() || (m_ptr->unicode() == '(') || (m_ptr->unicode() == '{') || (m_ptr->unicode() == '$') || (m_ptr->unicode() == '#'))
 
#define KVSP_curCharIsLetter   (m_ptr->isLetter())
 
#define KVSP_curCharIsLetterOrNumber   (m_ptr->isLetterOrNumber())
 
#define KVSP_curCharIsNumber   (m_ptr->isNumber())
 
#define KVSP_curCharPointer   m_ptr
 
#define KVSP_curCharUnicode   (m_ptr->unicode())
 
#define KVSP_setCurCharPointer(_ptr)   m_ptr = _ptr
 
#define KVSP_skipChar   m_ptr++
 
#define KVSP_skipNChars(n)   m_ptr += n
 

Macro Definition Documentation

#define KVSP_ASSERT (   _x)
#define KVSP_backChar   m_ptr--
#define KVSP_backNChars (   n)    m_ptr -= n
#define KVSP_curCharIsEndOfBuffer   (m_ptr->unicode() == 0)
#define KVSP_curCharIsEndOfCommand   ((m_ptr->unicode() == ';') || (m_ptr->unicode() == 0) || (m_ptr->unicode() == '\n') || (m_ptr->unicode() == '\r'))
#define KVSP_curCharIsFunctionStart   (m_ptr->isLetterOrNumber() || (m_ptr->unicode() == '(') || (m_ptr->unicode() == '{') || (m_ptr->unicode() == '$') || (m_ptr->unicode() == '#'))
#define KVSP_curCharIsLetter   (m_ptr->isLetter())
#define KVSP_curCharIsLetterOrNumber   (m_ptr->isLetterOrNumber())
#define KVSP_curCharIsNumber   (m_ptr->isNumber())
#define KVSP_curCharPointer   m_ptr

Referenced by KviKvsParser::parseBindingOperation(), KviKvsParser::parseBindingOperationParameter(), KviKvsParser::parseCommand(), KviKvsParser::parseCommandParameterList(), KviKvsParser::parseCommandSwitchList(), KviKvsParser::parseCommaSeparatedParameterList(), KviKvsParser::parseCommaSeparatedParameterListNoTree(), KviKvsParser::parseComment(), KviKvsParser::parseDollar(), KviKvsParser::parseExpression(), KviKvsParser::parseExpressionBinaryOperator(), KviKvsParser::parseExpressionOperand(), KviKvsParser::parseExpressionOperandCore(), KviKvsParser::parseInstruction(), KviKvsParser::parseInstructionBlock(), KviKvsParser::parseInstructionList(), KviKvsParser::parseOperation(), KviKvsParser::parseOperationRightSide(), KviKvsParser::parseParameterPercentOrDollar(), KviKvsParser::parsePercent(), KviKvsParser::parsePercentOrDollar(), KviKvsParser::parseSpecialCommandBreak(), KviKvsParser::parseSpecialCommandClass(), KviKvsParser::parseSpecialCommandContinue(), KviKvsParser::parseSpecialCommandDefpopup(), KviKvsParser::parseSpecialCommandDefpopupLabelPopup(), KviKvsParser::parseSpecialCommandDo(), KviKvsParser::parseSpecialCommandFor(), KviKvsParser::parseSpecialCommandForeach(), KviKvsParser::parseSpecialCommandGlobal(), KviKvsParser::parseSpecialCommandHelp(), KviKvsParser::parseSpecialCommandIf(), KviKvsParser::parseSpecialCommandSwitch(), KviKvsParser::parseSpecialCommandUnset(), KviKvsParser::parseSpecialCommandWhile(), KviKvsParser::parseVoidFunctionCallOrOperation(), and KviKvsParser::skipToEndOfForControlBlock().

#define KVSP_curCharUnicode   (m_ptr->unicode())

Referenced by KviKvsParser::parseBindingOperation(), KviKvsParser::parseBindingOperationParameter(), KviKvsParser::parseCommand(), KviKvsParser::parseCommandParameterList(), KviKvsParser::parseCommandSwitchList(), KviKvsParser::parseCommaSeparatedParameterList(), KviKvsParser::parseCommaSeparatedParameterListNoTree(), KviKvsParser::parseComment(), KviKvsParser::parseDollar(), KviKvsParser::parseExpression(), KviKvsParser::parseExpressionBinaryOperator(), KviKvsParser::parseExpressionMightPointToOperator(), KviKvsParser::parseExpressionOperand(), KviKvsParser::parseExpressionOperandCore(), KviKvsParser::parseInstruction(), KviKvsParser::parseInstructionBlock(), KviKvsParser::parseInstructionList(), KviKvsParser::parseOperation(), KviKvsParser::parseOperationRightSide(), KviKvsParser::parseParameterPercentOrDollar(), KviKvsParser::parsePercent(), KviKvsParser::parsePercentOrDollar(), KviKvsParser::parseSpecialCommandClass(), KviKvsParser::parseSpecialCommandDefpopup(), KviKvsParser::parseSpecialCommandDefpopupLabelPopup(), KviKvsParser::parseSpecialCommandDo(), KviKvsParser::parseSpecialCommandFor(), KviKvsParser::parseSpecialCommandForeach(), KviKvsParser::parseSpecialCommandGlobal(), KviKvsParser::parseSpecialCommandIf(), KviKvsParser::parseSpecialCommandSwitch(), KviKvsParser::parseSpecialCommandUnset(), KviKvsParser::parseSpecialCommandWhile(), KviKvsParser::parseVoidFunctionCallOrOperation(), KviKvsParser::skipSpaces(), KviKvsParser::skipSpacesAndNewlines(), KviKvsParser::skipToEndOfForControlBlock(), and KviKvsParser::skipToNextLine().

#define KVSP_setCurCharPointer (   _ptr)    m_ptr = _ptr
#define KVSP_skipChar   m_ptr++

Referenced by KviKvsParser::parseBindingOperation(), KviKvsParser::parseCommand(), KviKvsParser::parseCommandParameterList(), KviKvsParser::parseCommandSwitchList(), KviKvsParser::parseCommaSeparatedParameterList(), KviKvsParser::parseCommaSeparatedParameterListNoTree(), KviKvsParser::parseComment(), KviKvsParser::parseDollar(), KviKvsParser::parseExpression(), KviKvsParser::parseExpressionBinaryOperator(), KviKvsParser::parseExpressionMightPointToOperator(), KviKvsParser::parseExpressionOperand(), KviKvsParser::parseExpressionOperandCore(), KviKvsParser::parseInstruction(), KviKvsParser::parseInstructionBlock(), KviKvsParser::parseOperation(), KviKvsParser::parseOperationRightSide(), KviKvsParser::parseParameterPercentOrDollar(), KviKvsParser::parsePercent(), KviKvsParser::parsePercentOrDollar(), KviKvsParser::parseSpecialCommandBreak(), KviKvsParser::parseSpecialCommandClass(), KviKvsParser::parseSpecialCommandContinue(), KviKvsParser::parseSpecialCommandDefpopup(), KviKvsParser::parseSpecialCommandDefpopupLabelPopup(), KviKvsParser::parseSpecialCommandDo(), KviKvsParser::parseSpecialCommandFor(), KviKvsParser::parseSpecialCommandForeach(), KviKvsParser::parseSpecialCommandGlobal(), KviKvsParser::parseSpecialCommandHelp(), KviKvsParser::parseSpecialCommandIf(), KviKvsParser::parseSpecialCommandSwitch(), KviKvsParser::parseSpecialCommandUnset(), KviKvsParser::parseSpecialCommandWhile(), KviKvsParser::parseVoidFunctionCallOrOperation(), KviKvsParser::skipSpaces(), KviKvsParser::skipSpacesAndNewlines(), KviKvsParser::skipToEndOfForControlBlock(), and KviKvsParser::skipToNextLine().

#define KVSP_skipNChars (   n)    m_ptr += n