Files
sword_rs/src/cxx/module.cc
T

26 lines
632 B
C++
Raw Normal View History

#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());
}
2025-02-25 14:55:39 -06:00
rust::String Module::render_text() {
return std::string(
(const char*) this->module->renderText()
);
}
void Module::set_key_text(const rust::String& keyText) {
this->module->setKeyText(std::string(keyText).c_str());
}
rust::String Module::strip_text() {
return std::string(
(const char*) this->module->stripText()
);
}
}