mirror of
https://github.com/darlinghq/darling-corefoundation.git
synced 2024-11-27 05:40:26 +00:00
27 lines
365 B
Objective-C
27 lines
365 B
Objective-C
//
|
|
// NSConstantString.m
|
|
// CoreFoundation
|
|
//
|
|
// Copyright (c) 2014 Apportable. All rights reserved.
|
|
//
|
|
|
|
#import "NSStringInternal.h"
|
|
|
|
#import <objc/runtime.h>
|
|
|
|
@implementation __NSCFConstantString
|
|
|
|
SINGLETON_RR()
|
|
|
|
- (id)copyWithZone:(NSZone *)zone
|
|
{
|
|
return self;
|
|
}
|
|
|
|
- (BOOL)isKindOfClass:(Class)cls
|
|
{
|
|
return cls == objc_lookUpClass("NSString");
|
|
}
|
|
|
|
@end
|