![]() |
CFStringGetSmallestEncoding | Header: CFString.h |
Obtains the smallest encoding on the current system for the character contents of a CFString object.
CFStringEncoding CFStringGetSmallestEncoding ( CFStringRef theString );
Pass a reference to the CFString object for which you want to find the smallest encoding.
A constant of type CFStringEncoding that identifies a supported encoding.
The CFStringGetSmallestEncoding function obtains the supported encoding that requires the least space (in terms of bytes needed to represent one character) to represent the character contents of a CFString object. This information is not always immediately available, so this function might need to compute it.