| 123456789101112131415161718192021222324252627282930313233343536 |
- /************************************************************
- * * Hyphenate CONFIDENTIAL
- * __________________
- * Copyright (C) 2016 Hyphenate Inc. All rights reserved.
- *
- * NOTICE: All information contained herein is, and remains
- * the property of Hyphenate Inc.
- * Dissemination of this information or reproduction of this material
- * is strictly forbidden unless prior written permission is obtained
- * from Hyphenate Inc.
- */
- #import <Foundation/Foundation.h>
- #define MAKE_Q(x) @#x
- #define MAKE_EM(x,y) MAKE_Q(x##y)
- #pragma clang diagnostic push
- #pragma clang diagnostic ignored "-Wunicode"
- #define MAKE_EMOJI(x) MAKE_EM(\U000,x)
- #pragma clang diagnostic pop
- #define EMOJI_METHOD(x,y) + (NSString *)x { return MAKE_EMOJI(y); }
- #define EMOJI_HMETHOD(x) + (NSString *)x;
- #define EMOJI_CODE_TO_SYMBOL(x) ((((0x808080F0 | (x & 0x3F000) >> 4) | (x & 0xFC0) << 10) | (x & 0x1C0000) << 18) | (x & 0x3F) << 24);
- @interface EaseEmoji : NSObject
- + (NSString *)emojiWithCode:(int)code;
- + (NSArray *)allEmoji;
- + (BOOL)stringContainsEmoji:(NSString *)string;
- @end
|