NSString+LZBTranscoding.h 656 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // NSString+LZBTranscoding.h
  3. // LZBKeyBoardView
  4. //
  5. // demo地址:https://github.com/lzbgithubcode/LZBKeyBoardView.git
  6. // Created by zibin on 16/12/6.
  7. // Copyright © 2016年 apple. All rights reserved.
  8. //
  9. #import <Foundation/Foundation.h>
  10. @interface NSString (LZBTranscoding)
  11. /**
  12. * 将十六进制的编码转为emoji字符
  13. */
  14. + (NSString *)emojiWithByIntCode:(int)intCode;
  15. /**
  16. * 将十六进制字符串编码转为emoji字符
  17. */
  18. + (NSString *)emojiWithByStringCode:(NSString *)stringCode;
  19. /**
  20. * 字符串对象转为emoji字符
  21. */
  22. - (NSString *)emoji;
  23. /**
  24. * 字符串是否包含为emoji字符
  25. */
  26. - (BOOL)isContainsEmoji;
  27. @end