mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Path constructing operands
This commit is contained in:
@ -533,6 +533,17 @@ QByteArray PDFLexicalAnalyzer::fetchByteArray(PDFInteger length)
|
||||
return result;
|
||||
}
|
||||
|
||||
QString PDFLexicalAnalyzer::getStringFromOperandType(TokenType type)
|
||||
{
|
||||
QMetaEnum metaEnum = QMetaEnum::fromType<TokenType>();
|
||||
Q_ASSERT(metaEnum.isValid());
|
||||
|
||||
const char* typeName = metaEnum.valueToKey(static_cast<int>(type));
|
||||
Q_ASSERT(typeName);
|
||||
|
||||
return typeName;
|
||||
}
|
||||
|
||||
bool PDFLexicalAnalyzer::fetchChar(const char character)
|
||||
{
|
||||
if (!isAtEnd() && lookChar() == character)
|
||||
|
Reference in New Issue
Block a user