* Replace text string */
| 375 | * Replace text string |
| 376 | */ |
| 377 | RLCPP_MAYBEUNUSED RLCPPAPI std::string |
| 378 | TextReplace(const std::string& text, const std::string& replace, const std::string& by) { |
| 379 | const char* output = ::TextReplace(text.c_str(), replace.c_str(), by.c_str()); |
| 380 | if (output != NULL) { |
| 381 | return std::string(output); |
| 382 | } |
| 383 | return ""; |
| 384 | } |
| 385 | |
| 386 | /** |
| 387 | * Insert text in a position |