Now with skipping consecutive links

This commit is contained in:
Greg Hellings
2025-02-25 15:45:58 -06:00
parent 93b2cb6447
commit fc904b33b3
5 changed files with 25 additions and 2 deletions
+10 -2
View File
@@ -15,6 +15,10 @@ namespace sword_rs {
this->module->increment();
}
bool Module::is_skip_consecutive_links() const {
return this->module->isSkipConsecutiveLinks();
}
rust::String Module::render_text() {
return std::string(
(const char*) this->module->renderText()
@@ -22,8 +26,12 @@ namespace sword_rs {
}
void Module::set_key_text(const rust::String& keyText) {
this->module->setKeyText(std::string(keyText).c_str());
}
this->module->setKeyText(std::string(keyText).c_str());
}
void Module::set_skip_consecutive_links(bool skip) {
this->module->setSkipConsecutiveLinks(skip);
}
rust::String Module::strip_text() {
return std::string(