/************************************************************ * * 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 "EaseConvertToCommonEmoticonsHelper.h" #import "EaseEmoji.h" @implementation EaseConvertToCommonEmoticonsHelper #pragma mark - emotics + (NSString *)convertToCommonEmoticons:(NSString *)text { int allEmoticsCount = (int)[EaseEmoji allEmoji].count; NSMutableString *retText = [[NSMutableString alloc] initWithString:text]; for(int i=0; i