//
//  The MIT License (MIT)
//  Copyright (c) 2016 Wayne Liu <liuweiself@126.com>
//
//  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
//銆€銆€The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
//  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
//
//
//  LWTextParser.h
//  LWAsyncLayerDemo
//
//  Created by 鍒樺井 on 16/3/7.
//  Copyright 漏 2016骞?Wayne Liu. All rights reserved.
//  https://github.com/waynezxcv/LWAsyncDisplayView
//  See LICENSE for this sample鈥檚 licensing information
//

#import <Foundation/Foundation.h>
#import "LWTextLayout.h"

@interface LWTextParser : NSObject


/**
 *  瑙f瀽琛ㄦ儏鏇夸唬涓虹浉搴旂殑鍥剧墖
 *  鏍煎紡锛歵ext锛欯鈥渉ello,world~![寰瑧]鈥? ----> @"hello锛寃orld~锛侊紙[UIImage imageNamed锛欯鈥淸寰瑧]鈥漖锛?
 *
 */
+ (void)parseEmojiWithTextLayout:(LWTextLayout *)textLayout;


/**
 *  瑙f瀽HTTP(s):// 骞舵坊鍔犻摼鎺? *
 */
+ (void)parseHttpURLWithTextLayout:(LWTextLayout *)textLayout
                         linkColor:(UIColor *)linkColor
                    highlightColor:(UIColor *)higlightColor
                    underlineStyle:(NSUnderlineStyle)underlineStyle;

/**
 *  瑙f瀽 @鐢ㄦ埛 骞舵坊鍔犻摼鎺? *
 */

+ (void)parseAccountWithTextLayout:(LWTextLayout *)textLayout
                         linkColor:(UIColor *)linkColor
                    highlightColor:(UIColor *)higlightColor
                    underlineStyle:(NSUnderlineStyle)underlineStyle;


/**
 *  瑙f瀽 #涓婚# 骞舵坊鍔犻摼鎺? *
 */
+ (void)parseTopicWithTextLayout:(LWTextLayout *)textLayout
                       linkColor:(UIColor *)linkColor
                  highlightColor:(UIColor *)higlightColor
                  underlineStyle:(NSUnderlineStyle)underlineStyle;
@end
// 鐗堟潈灞炰簬鍘熶綔鑰?// http://code4app.com (cn) http://code4app.net (en)
// 鍙戝竷浠g爜浜庢渶涓撲笟鐨勬簮鐮佸垎浜綉绔? Code4App.com