CFStringCreateWithCharactersNoCopy
UniChar文字列からコピーせず文字オブジェクトを作って返します
CFStringRef CFStringCreateWithCharactersNoCopy (
CFAllocatorRef alloc ,
const UniChar * chars ,
CFIndex numChars ,
CFAllocatorRef contentsDeallocator );
解説
UniChar文字列からコピーせず文字オブジェクトを作って返します。
返り値
引数
( CFAllocatorRef )alloc
( const UniChar * )chars
( CFIndex )numChars
( CFAllocatorRef )contentsDeallocator
クラス
CFString
Function
使用可能
10.0
参照
例文
#include <CoreFoundation/CoreFoundation.h> int main (int argc, const char * argv[]) { UniChar theChar[255] = {64,115,116,114,105,110,103}; CFStringRef theString = CFStringCreateWithCharactersNoCopy (kCFAllocatorDefault,theChar,7,kCFAllocatorNull); CFShow(theString); return 0; }