Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
#import "NSString+DDXML.h"
#if ! __has_feature(objc_arc)
#warning This file must be compiled with ARC. Use -fobjc-arc flag (or convert project to ARC).
#endif
@implementation NSString (DDXML)
- (const xmlChar *)xmlChar
{
return (const xmlChar *)[self UTF8String];
}
#ifdef GNUSTEP
- (NSString *)stringByTrimming
{
return [self stringByTrimmingSpaces];
}
#else
- (NSString *)stringByTrimming
{
NSMutableString *mStr = [self mutableCopy];
CFStringTrimWhitespace((__bridge CFMutableStringRef)mStr);
NSString *result = [mStr copy];
return result;
}
#endif
@end
3dd603b0fThis file is pinned to the selected release. Download the original to open it in your design tool.