"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/c2bTests.h" between
cb2bib-1.9.9.tar.gz and cb2bib-2.0.0.tar.gz

About: cb2Bib is a multiplatform application for rapidly extracting unformatted, or unstandardized bibliographic references from email alerts, journal Web pages, and PDF files.

c2bTests.h  (cb2bib-1.9.9):c2bTests.h  (cb2bib-2.0.0)
/*************************************************************************** /***************************************************************************
* Copyright (C) 2004-2018 by Pere Constans * Copyright (C) 2004-2019 by Pere Constans
* constans@molspaces.com * constans@molspaces.com
* cb2Bib version 1.9.9. Licensed under the GNU GPL version 3. * cb2Bib version 2.0.0. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution. * See the LICENSE file that comes with this distribution.
***************************************************************************/ ***************************************************************************/
#ifndef C2BTESTS_H #ifndef C2BTESTS_H
#define C2BTESTS_H #define C2BTESTS_H
#include <QString> #include <QString>
class QTextStream; class QTextStream;
class bibParser; class bibParser;
class bibReference; class bibReference;
skipping to change at line 30 skipping to change at line 30
{ {
public: public:
c2bTests(); c2bTests();
~c2bTests(); ~c2bTests();
int allTests(); int allTests();
private: private:
QString _bibliographic_dir; QString _bibliographic_dir;
QString decomposition(const QChar& c);
QTextStream& cout; QTextStream& cout;
int _failed_test_count; int _failed_test_count;
int _test_count; int _test_count;
void author_parser(); void author_parser();
void check_abbreviations_txt(); void check_abbreviations_txt();
void check_test(const bool passed, const QString& input, const QString& outp ut); void check_test(const bool passed, const QString& input, const QString& outp ut);
void compression_check(); void compression_check();
void heuristic(bibParser& bp, const bibReference& reference, const QString& text); void heuristic(bibParser& bp, const bibReference& reference, const QString& text);
void heuristic_author(); void heuristic_author();
void heuristic_check_patterns(); void heuristic_check_patterns();
void heuristic_journal(); void heuristic_journal();
void heuristic_misc(); void heuristic_misc();
void heuristic_pvny(); void heuristic_pvny();
void write(const bibParser& bp, const bibReference& reference); void write(const bibParser& bp, const bibReference& reference);
void write_information(); void write_information();
inline const char* boolToStr(bool b) static QString decomposition(const QChar& c);
inline static const char* boolToStr(bool b)
{ {
if (b) if (b)
return "passed"; return "passed";
else else
return "failed"; return "failed";
} }
}; };
#endif #endif
 End of changes. 5 change blocks. 
5 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)