Creating and Copying String Objects

String Services gives you a variety of ways to create CFString objects: from constant strings, from buffers, from formatted strings, and by using existing CFString objects. The following sections describe each of these techniques.

Some functions that return references to CFString objects are described elsewhere. The CFStringCreateWithBytes function is described in Converting Between String Encodings. The section Handling External Representations of Strings describes the CFStringCreateFromExternalRepresentation function.

Creating CFString Objects From Constant Strings

Creating CFString Objects From String Buffers

Creating String Objects From Formatted Strings

Creating Mutable String Objects


© 1999 Apple Computer, Inc. – (Last Updated 07 September 99)