MCPcopy Create free account
hub / github.com/TeXworks/texworks / howPublished

Method howPublished

src/BibTeXFile.cpp:37–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37QString BibTeXFile::Entry::howPublished() const
38{
39 if (_cache.valid) {
40 return _cache.howPublished;
41 }
42 if (hasField(QString::fromLatin1("howpublished"))) {
43 return value(QString::fromLatin1("howpublished"));
44 }
45 if (hasField(QStringLiteral("journal"))) {
46 return value(QString::fromLatin1("journal"));
47 }
48 return value(QString::fromLatin1("booktitle"));
49}
50
51QString BibTeXFile::Entry::value(const QString & key) const
52{

Callers 3

entry_howPublishedMethod · 0.80
dataMethod · 0.80
filterAcceptsRowMethod · 0.80

Calls

no outgoing calls

Tested by 1

entry_howPublishedMethod · 0.64