Fawkes API
Fawkes Development Version
tracwiki.h
1
2
/***************************************************************************
3
* tracwiki.h - Trac wiki style formatter
4
*
5
* Created: Wed May 11 17:02:18 2011
6
* Copyright 2006-2011 Tim Niemueller [www.niemueller.de]
7
*
8
****************************************************************************/
9
10
/* This program is free software; you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation; either version 2 of the License, or
13
* (at your option) any later version.
14
*
15
* This program is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU Library General Public License for more details.
19
*
20
* Read the full text in the LICENSE.GPL file in the doc directory.
21
*/
22
23
#ifndef __LIBS_WEBVIEW_FORMATTERS_TRACWIKI_H_
24
#define __LIBS_WEBVIEW_FORMATTERS_TRACWIKI_H_
25
26
#include <regex.h>
27
#include <string>
28
29
namespace
fawkes
{
30
#if 0
/* just to make Emacs auto-indent happy */
31
}
32
#endif
33
34
class
TracWikiHeadingFormatter
35
{
36
public
:
37
TracWikiHeadingFormatter
();
38
virtual
~TracWikiHeadingFormatter
();
39
40
virtual
std::string
format
(std::string &text);
41
42
private
:
43
regex_t __re_heading;
44
};
45
46
}
// end namespace fawkes
47
48
#endif
fawkes
Fawkes library namespace.
fawkes::TracWikiHeadingFormatter
Translate Trac wiki heading syntax to HTML.
Definition:
tracwiki.h:34
fawkes::TracWikiHeadingFormatter::TracWikiHeadingFormatter
TracWikiHeadingFormatter()
Constructor.
Definition:
tracwiki.cpp:44
fawkes::TracWikiHeadingFormatter::~TracWikiHeadingFormatter
virtual ~TracWikiHeadingFormatter()
Destructor.
Definition:
tracwiki.cpp:54
fawkes::TracWikiHeadingFormatter::format
virtual std::string format(std::string &text)
Format string.
Definition:
tracwiki.cpp:65
src
libs
webview
formatters
tracwiki.h
Generated by
1.8.13