YOUPAINIMInputEmoticonParser.h 560 B

123456789101112131415161718192021222324252627
  1. //
  2. // YOUPAINIMInputEmoticonParser.h
  3. // NIMKit
  4. //
  5. // Created by chris.
  6. // Copyright (c) 2015 Netease. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. typedef enum : NSUInteger
  10. {
  11. NIMInputTokenTypeText,
  12. NIMInputTokenTypeEmoticon,
  13. } NIMInputTokenType;
  14. @interface NIMInputTextToken : NSObject
  15. @property (nonatomic,copy) NSString *text;
  16. @property (nonatomic,assign) NIMInputTokenType type;
  17. @end
  18. @interface YOUPAINIMInputEmoticonParser : NSObject
  19. + (instancetype)currentParser;
  20. - (NSArray *)tokens:(NSString *)text;
  21. @end