Now with the ability to ask for formtted text
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user