BString str1("Hello, world!"); BString str2("BeOS"); str1.CopyInto(str2, 0, 4, 3); // Copy 3 characters from str1 starting at index 4 to str2 at index 0.
BString str1("Hello, world!"); BString str2("BeOS"); str1.CopyInto(str2, 2, 0, 5); // Copy 5 characters from str1 starting at index 0 to str2 at index 2.In this example, `str2` becomes "HelloBeOS". In both examples, `CopyInto` is used to copy characters from one BString object to another. Package library: BeOS API.