"Fossies" - the Fresh Open Source Software Archive

Member "cb2bib-2.0.1/src/c2b/monthDB.h" (12 Feb 2021, 863 Bytes) of package /linux/privat/cb2bib-2.0.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "monthDB.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 2.0.0_vs_2.0.1.

    1 /***************************************************************************
    2  *   Copyright (C) 2004-2021 by Pere Constans
    3  *   constans@molspaces.com
    4  *   cb2Bib version 2.0.1. Licensed under the GNU GPL version 3.
    5  *   See the LICENSE file that comes with this distribution.
    6  ***************************************************************************/
    7 #ifndef MONTHDB_H
    8 #define MONTHDB_H
    9 
   10 #include <QRegExp>
   11 #include <QStringList>
   12 
   13 
   14 /**
   15     Post processing of tag 'month'
   16 
   17     @author Pere Constans
   18 */
   19 class monthDB
   20 {
   21 
   22 public:
   23     monthDB();
   24     inline ~monthDB() {}
   25 
   26     QString retrieve(const QString& month_query);
   27 
   28 
   29 private:
   30     QRegExp _day_rx;
   31     QRegExp _month_rx;
   32     QString abbreviated(const QString& month) const;
   33     QString full(const QString& month) const;
   34     const QStringList _month_abbreviated;
   35     const QStringList _month_full;
   36 };
   37 
   38 #endif