CFStringConvertEncodingToNSStringEncoding

Header: CFString.h Carbon status: Supported

Obtains the Cocoa (Yellow Box) encoding constant that maps most closely to a given Core Foundation encoding constant.

UInt32 CFStringConvertEncodingToNSStringEncoding (
    CFStringEncoding encoding
);
Parameter descriptions
encoding

Pass a constant that identifies a supported Core Foundation string encoding.

function result

An integer constant that identifies a Cocoa (Yellow Box) encoding of type NSStringEncoding. Returns the constant kCFStringEncodingInvalidId if the mapping is not known.

DISCUSSION

The CFStringConvertNSStringEncodingToEncoding function is complementary to this function.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)