text: //
  //  NSString+Extention.h
  //  loveonly
  //
  //  Created by jiaguanglei on 15/10/29.
  //  Copyright (c) 2015年 roseonly. All rights reserved.
  //
  
  #import <Foundation/Foundation.h>
  #import <UIKit/UIKit.h>
  
  @interface NSString (Extention)
  
  #pragma mark - 字符串转换成日期
  /*!
   @function   string2Date:
   @abstract   Change given string to NSDate
   @discussion If the given str is wrong, should return the current system date
   @param      dateStr A string include the date like "2009-11-09 11:14:41"
   @result     The NSDate object with given format
   */
  
  + (NSDate *)string2Date:(NSString *)dateStr;
  
  /*!
   @function   stringFromCurrent:
   @abstract   Change given date string to "xxx ago" format
   @discussion If the given str is wrong, should return the current date
   @param      dateStr A string include the date like "2009-11-09 11:14:41" at least 10 characters
   @result     The string with "xxx ago", xxx: years, months, days, hours, minutes, seconds
   */
  + (NSString *)stringFromCurrent:(NSString *)dateStr;
  
  //时间戳转化为时间字符串
  +(NSString*)timeStamp:(NSString *)stamp;
  
  + (BOOL)stringContainsEmoji:(NSString *)string;
  
  
  #pragma mark - 是否是汉字
  -(BOOL)isChinese;
  
  
  #pragma mark - 计算字符串尺寸
  - (CGSize)sizeWithFont:(UIFont *)font maxW:(CGFloat)maxW;
  - (CGSize)sizeWithFont:(UIFont *)font;
  
  /**
   *  计算当前文件\文件夹的内容大小
   */
  - (NSInteger)fileSize;
  
  #pragma mark - Emoji字符
  /**
   *  将十六进制的编码转为emoji字符
   */
  + (NSString *)emojiWithIntCode:(int)intCode;
  
  /**
   *  将十六进制的编码转为emoji字符
   */
  + (NSString *)emojiWithStringCode:(NSString *)stringCode;
  - (NSString *)emoji;
  
  /**
   *  是否为emoji字符
   */
  - (BOOL)isEmoji;
  @end
  