9#ifndef OO_EXCLUDE_DEBUG_SUPPORT
18 static NSMutableDictionary *sStrings =
nil;
20 NSString *value =
nil;
24 sStrings = [[NSMutableDictionary alloc] init];
27 key = [NSValue valueWithPointer:string];
28 value = [sStrings objectForKey:key];
32 value = [NSString stringWithUTF8String:string];
33 if (value !=
nil) [sStrings setObject:value forKey:key];
48 return [[object class] description];
54 return [object isKindOfClass:[NSString class]];
60 return [[NSString alloc] initWithFormat:format arguments:args];
66 return [object isKindOfClass:[NSDictionary class]];
72 return [dictionary objectForKey:key];
78 return [object isKindOfClass:[NSData class]];
84 return [[NSMutableData alloc] initWithCapacity:capacity];
90 [data appendBytes:bytes length:length];
102 return [data length];
108 return [[NSAutoreleasePool alloc] init];
114 id result = [NSPropertyListSerialization propertyListFromData:data
115 mutabilityOption:NSPropertyListImmutable
117 errorDescription:errStr];
120#if !OOLITE_RELEASE_PLIST_ERROR_STRINGS
const struct NSAutoreleasePool * OOALAutoreleasePoolRef
const struct NSString * OOALStringRef
const void * OOALObjectRef
const struct NSDictionary * OOALDictionaryRef
struct NSData * OOALMutableDataRef
const struct NSData * OOALDataRef
OOALStringRef OOTypeDescription(OOALObjectRef object)
bool OOALIsDictionary(OOALObjectRef object)
OOALStringRef OOALStringCreateWithFormatAndArguments(OOALStringRef format, va_list args)
void OOALMutableDataAppendBytes(OOALMutableDataRef data, const void *bytes, size_t length)
const void * OOALDataGetBytePtr(OOALDataRef data)
size_t OOALDataGetLength(OOALDataRef data)
OOALObjectRef OOALDictionaryGetValue(OOALDictionaryRef dictionary, OOALObjectRef key)
bool OOALIsData(OOALObjectRef object)
OOALStringRef OOALGetConstantString(const char *string)
bool OOALIsString(OOALObjectRef object)
OOALAutoreleasePoolRef OOALCreateAutoreleasePool(void)
OOALMutableDataRef OOALDataCreateMutable(size_t capacity)
void OOALRelease(OOALObjectRef object)
OOALObjectRef OOALPropertyListFromData(OOALMutableDataRef data, OOALStringRef *errStr)