//
//  NSString+AttributedString.h
//  Open
//
//  Created by 雷俊博 on 2019/7/24.
//  Copyright © 2019 黄江涛 . All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSString (AttributedString)
+(NSAttributedString *)stringWithParagraphlineSpeace:(CGFloat)lineSpacing
                                           textColor:(UIColor *)textcolor
                                            textFont:(UIFont *)font text:(NSString *)text;

+(CGFloat)getSpaceLabelHeightwithSpeace:(CGFloat)lineSpeace withFont:(UIFont*)font withWidth:(CGFloat)width text:(NSString *)text;

//判断字符串是否为nil;
+ (BOOL)blankString:(NSString *)string;

+(NSString *)validBlankStr:(NSString *)string;

+(NSString *)reviseString:(NSString *)str;


//编码
- (NSString *)CT_MD5;
- (NSString *)CT_SHA1;
- (NSString *)CT_Base64Encode;

- (CGFloat)MF_widthWithfont:(UIFont *)font size:(CGSize)size;
+ (NSAttributedString *)getAttributedWithString:(NSString *)string WithLineSpace:(CGFloat)lineSpace kern:(CGFloat)kern font:(UIFont *)font;
+ (BOOL)validateWithStartTime:(NSString *)startTime withExpireTime:(NSString *)expireTime;
@end

NS_ASSUME_NONNULL_END
