Mercurial > clickerconvert
comparison src/constants.h @ 78:f230ed9022e0
Rework questions to new logic for multilne questions
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Wed, 05 Oct 2016 14:24:53 +0200 |
parents | 9412d60c8ac1 |
children |
comparison
equal
deleted
inserted
replaced
77:9412d60c8ac1 | 78:f230ed9022e0 |
---|---|
53 * @brief Regular expression to define a question. | 53 * @brief Regular expression to define a question. |
54 * | 54 * |
55 * A new question is the first unquoted string after the position | 55 * A new question is the first unquoted string after the position |
56 * that is followed after a newline by the word "Answer" | 56 * that is followed after a newline by the word "Answer" |
57 */ | 57 */ |
58 #define QUESTION_PATTERN "\n\n(.*)\n+(Answer.*$)", QRegularExpression::MultilineOption | 58 #define QUESTION_PATTERN "(Answer.*)" |
59 | |
60 #define FIRST_QUESTION_PATTERN "(.*)\n+(Answer.*$)", QRegularExpression::MultilineOption | |
61 | 59 |
62 /** | 60 /** |
63 * @brief Identifiying line that shows a question is a choice question. */ | 61 * @brief Identifiying line that shows a question is a choice question. */ |
64 #define CHOICE_IDENTIFIER "Answer,Votes,Percent" | 62 #define CHOICE_IDENTIFIER "Answer,Votes,Percent" |
65 | 63 |