21
SGFParser(BoardHandler *bh);
24
bool parse(const QString &fileName, const QString &filter=0, bool fastLoad=false);
25
bool parseString(const QString &toParse);
26
bool doWrite(const QString &fileName, Tree *tree);
27
bool exportSGFtoClipB(QString *str, Tree *tree);
28
bool parseASCII(const QString &fileName, ASCII_Import *charset, bool isFilename=true);
31
QString loadFile(const QString &fileName);
32
bool doParse(const QString &toParseStr, bool fastLoad=false);
33
bool corruptSgf(int where=0, QString reason=NULL);
34
int minPos(int n1, int n2, int n3);
35
bool initGame(const QString &toParse, const QString &fileName);
36
bool parseProperty(const QString &toParse, const QString &prop, QString &result);
37
void traverse(Move *t, GameData *gameData);
38
void writeGameHeader(GameData *gameData);
39
bool parseASCIIStream(QTextStream *stream, ASCII_Import *charset);
40
bool doASCIIParse(const QString &toParse, int &y, ASCII_Import *charset);
41
bool checkBoardSize(const QString &toParse, ASCII_Import *charset);
42
// void convertOldSgf(QString &toParse);
43
bool initStream(QTextStream *stream);
44
bool writeStream(Tree *tree);
47
BoardHandler *boardHandler;
51
int asciiOffsetX, asciiOffsetY;