36 while ((pos =
str.find(search, pos)) != std::string::npos) {
37 str.replace(pos, search.length(), replacement);
38 pos += replacement.length();
56 char buffer[BUF_SIZE];
62 (buffer, BUF_SIZE,
format, args);
73 operator std::string& () {
98 static const std::string NL(
"\n");
99 for (
auto&
line : lines)
Toolset to build a string content.
StringBuilder & line(const std::string &append)
StringBuilder(std::string &workspace)
void dump(std::string filename)
StringBuilder & printf(const char *format,...)
StringBuilder & operator()(const std::string &append)
StringBuilder & replace(const std::string &search, const std::string &replacement)
StringBuilder including a string container.
String(std::initializer_list< const char * > lines)
StringBuilder & operator=(const std::string &content)
String(const String &content)
String(const std::string &content)
JNIEnv jobject jint format
JNIEnv jlong jstring filename
JNIEnv jlong jstring jboolean append