CFStringConvertEncodingToNSStringEncodingHeader: CFString.h

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

UInt32 CFStringConvertEncodingToNSStringEncoding (
    CFStringEncoding encoding
);
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.


© 1999 Apple Computer, Inc. — (Last Updated 9/15/99)