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.