123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- //
- // NSData+YLData.h
- // YoungCatogory
- //
- // Created by kuxuan on 2017/7/14.
- // Copyright © 2017年 kuxuan. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- @interface NSData (YLData)
- /**
- * Convert the given NSData to UTF8 NSString
- *
- * @param data The NSData to be converted
- *
- * @return Returns the converted NSData as UTF8 NSString
- */
- + (NSString * _Nonnull)convertToUTF8String:(NSData * _Nonnull)data;
- /**
- * Convert self to a UTF8 NSString
- *
- * @return Returns self as UTF8 NSString
- */
- - (NSString * _Nonnull)convertToUTF8String;
- /**
- * Convert the given NSData to ASCII NSString
- *
- * @param data The NSData to be converted
- *
- * @return Returns the converted NSData as ASCII NSString
- */
- + (NSString * _Nonnull)convertToASCIIString:(NSData * _Nonnull)data;
- /**
- * Convert self to a ASCII NSString
- *
- * @return Returns self as ASCII NSString
- */
- - (NSString * _Nonnull)convertToASCIIString;
- /**
- * Convert self UUID to NSString.
- * Useful for push notifications
- *
- * @return Returns self as NSString from UUID
- */
- - (NSString * _Nullable)convertUUIDToString;
- @end
|