CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
24 namespace catapult {
namespace utils {
29 return '\\' == ch ||
'/' == ch;
37 const auto* pEnd = str;
38 while (*pEnd !=
'\0') ++pEnd;
46 for (
const auto* pCh = pEnd - 1; pCh >= fullPath; --pCh) {
60 const auto* pCh = pEnd - 1;
61 for (; pCh >= fullPath; --pCh) {
67 for (; pCh >= fullPath; --pCh) {
81 const auto* pCh = pDirectoryName;
82 for (; pCh < pEnd; ++pCh) {
87 return { pDirectoryName, static_cast<size_t>(pCh - pDirectoryName) };
def clearNameStackAndFindSemiColon(self)
Definition: Parser.py:380
def _parseNormalEquals(self, tok)
Definition: Parser.py:261
def collectClass(self, tok)
Definition: Parser.py:493
constexpr RawString ExtractDirectoryName(const char *fullPath)
Definition: PathUtils.h:77
lineNumber
Definition: Parser.py:134
templateBracketLevel
Definition: Parser.py:138
def collectEnum(self, tok)
Definition: Parser.py:514
constexpr bool IsDirectorySeparator(char ch)
Gets a value indicating whether or not ch is a directory separator.
Definition: PathUtils.h:27
def debug(*args)
Definition: Parser.py:46
def clearNameStack(self)
Definition: Parser.py:376
namespaces
Definition: Parser.py:148
currentParenLevel
Definition: Parser.py:146
def __setattr__(self, key, value)
Definition: Parser.py:79
def switchToNormal(self)
Definition: Parser.py:446
def __repr__(self)
Definition: Parser.py:116
def _quitIfNoNamestack(self, token)
Definition: Parser.py:156
def parseNormal(self, tok)
Definition: Parser.py:160
def collectTemplate(self, tok)
Definition: Parser.py:463
def _operatorMinus(self, nextToken)
Definition: Parser.py:292
templateContent
Definition: Parser.py:140
hadTest
Definition: Parser.py:92
def warning(*args)
Definition: colorPrint.py:10
def has(tokenName, stack)
Definition: Parser.py:56
def addNamespace(self)
Definition: Parser.py:351
def __eq__(self, other)
Definition: Parser.py:110
insideTemplateCallback
Definition: Parser.py:150
def collectNs(self, tok)
Definition: Parser.py:450
def findSemiColon(self, tok)
Definition: Parser.py:598
def info(*args)
Definition: Parser.py:41
hadForward
Definition: Parser.py:87
currentBraceLevel
Definition: Parser.py:143
hadFuncOrVar
Definition: Parser.py:88
Definition: Parser.py:130
currentColonBraceLevel
Definition: Parser.py:144
def __init__(self, name, line)
Definition: Parser.py:64
nameStack
Definition: Parser.py:145
def saveTokenOrBye(self, previousToken, token, tokenName)
Definition: Parser.py:266
mode
Definition: Parser.py:135
Definition: colorPrint.py:1
constexpr const char * ExtractDirectoryAndFilename(const char *fullPath)
Definition: PathUtils.h:56
def findClassEnd(self, tok)
Definition: Parser.py:536
name
Definition: Parser.py:74
hadEnum
Definition: Parser.py:90
def addTemplateError(self, line)
Definition: Parser.py:371
hadUsing
Definition: Parser.py:91
def _operatorPlus(self, nextToken)
Definition: Parser.py:282
def __init__(self, current)
Definition: Parser.py:71
hadDefineMacro
Definition: Parser.py:96
def findCloseParen(self, tok)
Definition: Parser.py:613
line
Definition: Parser.py:66
constexpr const char * ExtractFilename(const char *fullPath)
Definition: PathUtils.h:44
path
Definition: Parser.py:133
def parseFile(self, inputStream)
Definition: Parser.py:392
name
Definition: Parser.py:65
def __hash__(self)
Definition: Parser.py:113
def trace_print(*args)
Definition: Parser.py:51
closingBraceCallback
Definition: Parser.py:147
def quit(self, tok)
Definition: Parser.py:416
def __getattr__(self, key)
Definition: Parser.py:76
def __ior__(self, other)
Definition: Parser.py:86
templateErrors
Definition: Parser.py:149
def empty(self)
Definition: Parser.py:99
def checkProperties(self)
Definition: Parser.py:578
A const string buffer.
Definition: RawBuffer.h:68
wasTemplateInstantiation
Definition: Parser.py:141
def collectOperator(self)
Definition: Parser.py:312
templateHadClass
Definition: Parser.py:139
def _parseNormalOpenBracket(self, tok)
Definition: Parser.py:218
hadInclude
Definition: Parser.py:94
def _parseNormalStringLiteral(self, tok)
Definition: Parser.py:213
def _parseNormalSemiColon(self, tok)
Definition: Parser.py:251
properties
Definition: Parser.py:72
hadClass
Definition: Parser.py:89
tok
Definition: Parser.py:152
def findCloseBrace(self, tok)
Definition: Parser.py:548
hadConstant
Definition: Parser.py:93
Definition: AddressExtractionExtension.cpp:28
def _parseNormalPrecompMacro(self, tok)
Definition: Parser.py:224
def _operatorLessThan(self, nextToken)
Definition: Parser.py:302
hadParens
Definition: Parser.py:142
def _parseNormalBrace(self, tok)
Definition: Parser.py:240
def _checkFuncOrVar(self)
Definition: Parser.py:563
def _parseNormalOpenParen(self, tok)
Definition: Parser.py:233
errorReporter
Definition: Parser.py:132
namespaceStack
Definition: Parser.py:137
current
Definition: Parser.py:73
def _operatorEquals(self, nextToken)
Definition: Parser.py:273
def __init__(self, errorReporter, path)
Definition: Parser.py:131
constexpr const char * AdvanceToEnd(const char *str)
Advances str to its end (the NUL terminator).
Definition: PathUtils.h:36
def _parseNormalName(self, tok)
Definition: Parser.py:185
curNsPart
Definition: Parser.py:136