//
// NSDictionary+ZXPUnicode.m
// House
//
// Created by coffee on 15/9/14.
// Copyright (c) 2015年 cylkj. All rights reserved.
//
#import "NSDictionary+ZXPUnicode.h"
#import "NSObject+ZXPUnicode.h"
#import <objc/runtime.h>
@implementation NSDictionary (ZXPUnicode)
+ (void)load {
method_exchangeImplementations(class_getInstanceMethod([self class], @selector(description)), class_getInstanceMethod([self class], @selector(replaceDescription)));
method_exchangeImplementations(class_getInstanceMethod([self class], @selector(descriptionWithLocale:)), class_getInstanceMethod([self class], @selector(replaceDescriptionWithLocale:)));
method_exchangeImplementations(class_getInstanceMethod([self class], @selector(descriptionWithLocale:indent:)), class_getInstanceMethod([self class], @selector(replaceDescriptionWithLocale:indent:)));
}
- (NSString *)replaceDescription {
return [NSObject stringByReplaceUnicode:[self replaceDescription]];
}
- (NSString *)replaceDescriptionWithLocale:(nullable id)locale {
return [NSObject stringByReplaceUnicode:[self replaceDescriptionWithLocale:locale]];
}
- (NSString *)replaceDescriptionWithLocale:(nullable id)locale indent:(NSUInteger)level {
return [NSObject stringByReplaceUnicode:[self replaceDescriptionWithLocale:locale indent:level]];
}
@end
-
曹云霄 authored419a69f8