Now with the ability to ask for formtted text

This commit is contained in:
Greg Hellings
2025-02-25 10:46:07 -06:00
parent a2fcfb1724
commit be7d2873e6
7 changed files with 99 additions and 46 deletions
+19
View File
@@ -0,0 +1,19 @@
#include "module.h"
namespace sword_rs {
Module::Module(sword::SWModule* module) : module(module) { }
rust::String Module::get_name() const {
return rust::String(this->module->getName());
}
rust::String Module::strip_text() {
return std::string(
(const char*) this->module->stripText()
);
}
void Module::set_key_text(const rust::String& keyText) {
this->module->setKeyText(std::string(keyText).c_str());
}
}