| 44 | } |
| 45 | |
| 46 | std::string DeviceOperateWrapper::setText(const std::string &text) { |
| 47 | this->_text = text; |
| 48 | if (this->_text.length() > 1000) { |
| 49 | this->_text = this->_text.substr(0, 999); |
| 50 | } |
| 51 | if (!this->editable) { |
| 52 | LOGW("set text to a none editable node %s", this->toString().c_str()); |
| 53 | } |
| 54 | return this->_text; |
| 55 | } |
| 56 | |
| 57 | #define BOOL_TO_STR(b) (b?"true":"false") |
| 58 |
no test coverage detected