Logo Search packages:      
Sourcecode: cb2bib version File versions

coreBibParser Class Reference

#include <coreBibParser.h>

Inheritance diagram for coreBibParser:

bibParser c2bBibParser

List of all members.


Detailed Description

Class for bibliographic reference parsing

Author:
Pere Constans

Definition at line 24 of file coreBibParser.h.


Public Member Functions

QString & authorFromBibTeX (QString &as)
const QStringList & bibliographicFields () const
const QStringList & bibliographicTypes () const
 coreBibParser (QObject *parento=0)
int fieldCount (const bibReference &ref) const
bool hasBibTeX (const QString &str) const
void initReferenceParsing (const QString &dir, const QStringList &fields, bibReference *ref)
bool referenceAtKey (const QString &key, const QString &str, bibReference *ref)
bool referencesIn (const QString &str, bibReference *ref)
QString referenceToBibTeX (const bibReference &ref) const
QString referenceToFomattedBibTeX (const bibReference &ref) const
void setReferenceParsingDir (const QString &dir)
const QStringList & sortedBibliographicFields () const
bibReference wholeReference (const QString &str)

Protected Member Functions

QString adjacentNumbers (const QString &numbers) const

Protected Attributes

authorString _authorString
QStringList _bibliographic_fields
QStringList _bibliographic_types
QRegExp _field_re
settings * _settingsP
QStringList _sorted_bibliographic_fields

Private Member Functions

QString referenceAt (const QString &str, int *pos) const
void referenceContents (const QString &str, bibReference *ref, int pos)
int referenceEnds (const QString &str, int pos=0) const
int referenceStarts (const QString &key, const QString &str) const
int referenceStarts (const QString &str, int pos=0) const
void setFields ()
void setRegularExpressions ()
void setTypes ()

Private Attributes

QRegExp _bib_begin0_re
QRegExp _bib_begin1_re
QRegExp _bib_begin_re
QList< QRegExp > _bib_fields_nb_re
QList< QRegExp > _bib_fields_re
QString _bib_file_dir
QRegExp _bib_key_re
QRegExp _bib_type_re

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index