blob: 7571fc206bc2d4ba10af8e75aa02a4fc5e4def81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include "../includes/compiler.hpp"
#include <regex>
static const unsigned short N_ITEMS = 4;
/* Encoded regexes using the Type enum (convert to integer) */
static const std::regex REGEXES[] = {
std::regex("\\*\\*(.*?)\\*\\*"), std::regex("\\*(.*?)\\*"),
std::regex("_(.*?)_"), std::regex("~(.*?)~")};
/* Encoded replacement strings using the Type enum (convert to integer) */
static const char *REPLACEMENTS[] = {"<strong>$1</strong>", "<i>$1</i>",
"<u>$1</u>", "<s>$1</s>"};
|