猎豆优选

ALSLExtensions.h 649B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //
  2. // ALSLExtensions.h
  3. // AlibcLinkPartnerSDK
  4. //
  5. // Created by 诺夏 on 2019/3/13.
  6. // Copyright © 2019 czp. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @interface NSString (ALSL)
  10. /**
  11. * URL编码
  12. */
  13. - (NSString * _Nullable)alsl_encode;
  14. /**
  15. * URL解码
  16. */
  17. - (NSString * _Nullable)alsl_decode;
  18. /**
  19. * 获取URL中的参数
  20. */
  21. - (NSDictionary * _Nullable)alsl_urlparams;
  22. /**
  23. * Base64编码
  24. */
  25. - (NSString * _Nullable)alsl_base64Encoded;
  26. /**
  27. * MD5加密
  28. */
  29. - (NSString * _Nullable)alsl_md5;
  30. @end
  31. @interface NSDictionary (ALSL)
  32. /**
  33. * JSONObject 转 JSONString
  34. */
  35. - (NSString *_Nullable)alsl_jsonString;
  36. @end