SkString str1("Hello"); SkString str2(" world!"); str1.append(str2); // Output: "Hello world!"
SkString str("Hello"); str.append(" world!"); // Output: "Hello world!"This example creates an SkString object "Hello" and then appends a C-style string " world!" using the append function. In both examples, the append function is used to concatenate strings, resulting in a new SkString object. SkString is part of the Skia graphics library, which is an open-source 2D graphics library developed by Google.