CFStringConvertNSStringEncodingToEncoding

Header: CFString.h Carbon status: Supported

Obtains the Core Foundation encoding constant that is the closest mapping to a given Cocoa (Yellow Box) encoding.

CFStringEncoding CFStringConvertNSStringEncodingToEncoding (
    UInt32 encoding
);
Parameter descriptions
encoding

Integer value of Cocoa type NSStringEncoding.

function result

An integer constant that identifies a supported string encoding in Core Foundation. Returns the constant kCFStringEncodingInvalidId if the mapping is not known.

DISCUSSION

The CFStringConvertEncodingToNSStringEncoding 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)