TEC (also known as Text Encoding Conversion Manager) has these APIs, declared in TextEncodingConverter.h:
extern OSStatus
TECCopyTextEncodingInternetNameAndMIB(
TextEncoding textEncoding,
TECInternetNameUsageMask usage,
CFStringRef * encodingNamePtr, /* can be NULL */
SInt32 * mibEnumPtr) /* can be NULL */ __OSX_AVAILABLE_STARTING(__MAC_10_3, __IPHONE_NA);
extern OSStatus
TECGetTextEncodingFromInternetNameOrMIB(
TextEncoding * textEncodingPtr,
TECInternetNameUsageMask usage,
CFStringRef encodingName,
SInt32 mibEnum) __OSX_AVAILABLE_STARTING(__MAC_10_3, __IPHONE_NA);
The documentation in the header says that the MIB parameter… takes/returns a MIB enum value. But there s only one such enum defined: kTEC_MIBEnumDontCare
. There are no others. (The documentation for the former function also notes that “valid MIB enums begin at 3”.)
头脑中没有任何东西界定了MIB(甚至不说这些信函的用意),而本年度的剩余 Apple果文件也没有解释过。 虽然命名为<条码>TECGetTextEncoding InternetName和TECGetTextEncodingFromInternetName
的旧职能是: 文件,但使用CFStrings和采用/return a MIB的新功能是tn。
因此,地球上什么是?