C# Class TextHelper.AutoLinker.AutoLinkReplacer

Mostra file Open project: tylermercier/TextHelper

Public Methods

Method Description
AutoLinkReplacer ( string>.IDictionary dictionary, string>.Func textReplacer, LinkMode linkMode ) : System
GetTextFor ( string link ) : string
OnEmailMatch ( Match match ) : string
OnUrlMatch ( Match match ) : string
Replace ( string text ) : string

Private Methods

Method Description
GetAttributesFromDictionary ( string>.IDictionary dictionary ) : string
GetHyperlink ( string format, string link ) : string

Method Details

AutoLinkReplacer() public method

public AutoLinkReplacer ( string>.IDictionary dictionary, string>.Func textReplacer, LinkMode linkMode ) : System
dictionary string>.IDictionary
textReplacer string>.Func
linkMode LinkMode
return System

GetTextFor() public method

public GetTextFor ( string link ) : string
link string
return string

OnEmailMatch() public method

public OnEmailMatch ( Match match ) : string
match System.Text.RegularExpressions.Match
return string

OnUrlMatch() public method

public OnUrlMatch ( Match match ) : string
match System.Text.RegularExpressions.Match
return string

Replace() public method

public Replace ( string text ) : string
text string
return string