DeltaQt
Version 0.2.0 End user documentation
A C++/Qt library for parsing DELTA (DEscription Language for TAxonomy) files
|
#include <delimitedbuffer.h>
Public Types | |
enum | MapStatus { MAP_NOTINITIALISED, MAP_OK, MAP_ERROR_UNBALANCED_DELIMS, MAP_ERROR_SPLIT_EXCEPT_INVALID_DELIM } |
Public Member Functions | |
DelimitedBuffer () | |
DelimitedBuffer (QString &other) | |
DelimitedBuffer (const char *str) | |
DelimitedBuffer (const QString &other) | |
DelimitedBuffer (const char *str, char startDelim, char endDelim, QString legalPreChars=QString(), QString legalPostChars=QString()) | |
DelimitedBuffer (const QString &other, char startDelim, char endDelim, QString legalPreChars=QString(), QString legalPostChars=QString()) | |
bool | isMapped (void) const |
bool | indexIsBetweenDelims (int idx) const |
int | numLevels (void) const |
DelimPairBoundaries | getChunkBoundaries (void) const |
void | clear () |
DelimitedBuffer | noWhitespace (void) const |
QString | getChunk (DelimPairBoundary boundary) const |
QString | getChunk (int startPos, int endPos=-1) const |
QStringList | getChunkStrings (int minLevel=-1, int maxLevel=-1) |
QString | getStringsAppended (QChar delimWith, int minLevel=-1, int maxLevel=-1, bool simplify=true) |
DelimitedBuffer::MapStatus | status (void) const |
bool | initMap (QChar startDelim, QChar endDelim, QString legalPreChars=QString(), QString legalPostChars=QString()) |
bool | mapDelimBoundaries (QChar startDelim, QChar endDelim, QString legalPreChars=QString(), QString legalPostChars=QString()) |
bool | mapDelimBoundaries_EqDelims (QChar delim, QString legalPreChars=QString(), QString legalPostChars=QString()) |
bool | getTokens (QList< QString > *dest, char searchChar, QChar startDelim, QChar endDelim, QString legalPreChars=QString(), QString legalPostChars=QString(), bool splitOnPreIsSpace=false, bool splitOnPostIsSpace=false, bool removeSearchCharFromStart=false) |
QString | operator= (const QString &other) |
QString | operator= (const char *other) |
bool | preCharOk (QChar c, QString legalPreChars) |
bool | postCharOk (QChar c, QString legalPostChars) |
DelimitedBuffer::DelimitedBuffer | ( | ) |
DelimitedBuffer::DelimitedBuffer | ( | QString & | other | ) |
DelimitedBuffer::DelimitedBuffer | ( | const char * | str | ) |
DelimitedBuffer::DelimitedBuffer | ( | const QString & | other | ) |
DelimitedBuffer::DelimitedBuffer | ( | const char * | str, |
char | startDelim, | ||
char | endDelim, | ||
QString | legalPreChars = QString() , |
||
QString | legalPostChars = QString() |
||
) |
DelimitedBuffer::DelimitedBuffer | ( | const QString & | other, |
char | startDelim, | ||
char | endDelim, | ||
QString | legalPreChars = QString() , |
||
QString | legalPostChars = QString() |
||
) |
void DelimitedBuffer::clear | ( | void | ) |
QString DelimitedBuffer::getChunk | ( | DelimPairBoundary | boundary | ) | const |
QString DelimitedBuffer::getChunk | ( | int | startPos, |
int | endPos = -1 |
||
) | const |
DelimPairBoundaries DelimitedBuffer::getChunkBoundaries | ( | void | ) | const |
QStringList DelimitedBuffer::getChunkStrings | ( | int | minLevel = -1 , |
int | maxLevel = -1 |
||
) |
QString DelimitedBuffer::getStringsAppended | ( | QChar | delimWith, |
int | minLevel = -1 , |
||
int | maxLevel = -1 , |
||
bool | simplify = true |
||
) |
bool DelimitedBuffer::getTokens | ( | QList< QString > * | dest, |
char | searchChar, | ||
QChar | startDelim, | ||
QChar | endDelim, | ||
QString | legalPreChars = QString() , |
||
QString | legalPostChars = QString() , |
||
bool | splitOnPreIsSpace = false , |
||
bool | splitOnPostIsSpace = false , |
||
bool | removeSearchCharFromStart = false |
||
) |
bool DelimitedBuffer::indexIsBetweenDelims | ( | int | idx | ) | const |
bool DelimitedBuffer::initMap | ( | QChar | startDelim, |
QChar | endDelim, | ||
QString | legalPreChars = QString() , |
||
QString | legalPostChars = QString() |
||
) |
bool DelimitedBuffer::isMapped | ( | void | ) | const |
bool DelimitedBuffer::mapDelimBoundaries | ( | QChar | startDelim, |
QChar | endDelim, | ||
QString | legalPreChars = QString() , |
||
QString | legalPostChars = QString() |
||
) |
bool DelimitedBuffer::mapDelimBoundaries_EqDelims | ( | QChar | delim, |
QString | legalPreChars = QString() , |
||
QString | legalPostChars = QString() |
||
) |
DelimitedBuffer DelimitedBuffer::noWhitespace | ( | void | ) | const |
int DelimitedBuffer::numLevels | ( | void | ) | const |
QString DelimitedBuffer::operator= | ( | const QString & | other | ) | [inline] |
QString DelimitedBuffer::operator= | ( | const char * | other | ) | [inline] |
bool DelimitedBuffer::postCharOk | ( | QChar | c, |
QString | legalPostChars | ||
) |
bool DelimitedBuffer::preCharOk | ( | QChar | c, |
QString | legalPreChars | ||
) |
DelimitedBuffer::MapStatus DelimitedBuffer::status | ( | void | ) | const |