update
This commit is contained in:
parent
90104e0e9e
commit
97763d28e8
|
@ -129,18 +129,6 @@ Any::Any(const QList<std::shared_ptr<const IBasicRule>> mbrs) : mbrs_store(mbrs)
|
|||
|
||||
QList<std::shared_ptr<const IBasicRule>> Any::children() const { return mbrs_store; }
|
||||
|
||||
class words_span {
|
||||
public:
|
||||
int row_span, column_span;
|
||||
words_span(int rspan, int cspan) :row_span(rspan), column_span(cspan) {}
|
||||
bool operator>(const words_span& other) {
|
||||
if (row_span > other.row_span)
|
||||
return true;
|
||||
if (row_span == other.row_span)
|
||||
return column_span > other.column_span;
|
||||
return false;
|
||||
}
|
||||
};
|
||||
std::tuple<IBasicRule::MatchResult, std::shared_ptr<const IWordBase>> Any::parse(std::shared_ptr<IContext> rt_inst, std::shared_ptr<const IWordBase> head) const {
|
||||
std::tuple<std::shared_ptr<const IBasicRule>, uint64_t> temp_result = std::make_tuple(nullptr, 0);
|
||||
auto rule_present = this->token_present();
|
||||
|
|
|
@ -20,8 +20,8 @@ auto frag_key = std::make_shared<Keywords>(u8"
|
|||
auto volume_key = std::make_shared<Keywords>(u8"分卷", 0xACu); // 分卷
|
||||
auto article_key = std::make_shared<Keywords>(u8"章节", 0xADu); // 章节
|
||||
auto split_mark = std::make_shared<Split>(); // &
|
||||
auto vtext = std::make_shared<VTextSection>(); // ^([^\\{\\}\\n@&]+)
|
||||
auto name_text = std::make_shared<NameSection>(); // ^([^:\\{\\}\\n@&][^\\{\\}\\n@&]*)
|
||||
auto vtext = std::make_shared<VTextSection>(); // ^([^\\{\\}\@&]+)
|
||||
auto name_text = std::make_shared<NameSection>(); // ^([^\\{\\}@&]+)
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue