SkString str1("Hello "); SkString str2("world!"); str1.append(str2); std::cout << str1.c_str() << std::endl; // Output: "Hello world!"
SkString str("Hello world!"); SkString sub = str.substr(6, 5); std::cout << sub.c_str() << std::endl; // Output: "world"SkString is part of the Skia graphics library package.