C# Class JsonFx.BuildTools.HtmlDistiller.Filters.HyperlinkFilter

Defines a filter which optionally auto-links URLs in literals
Inheritance: WordBreakFilter
Datei anzeigen Open project: pocket-playlab/jsonfx-v1

Public Methods

Method Description
FilterLiteral ( string source, int start, int end, string &replacement ) : bool

Optionally finds any URLs and wraps them with a hyperlink

HyperlinkFilter ( ) : System

Ctor

HyperlinkFilter ( bool autoLink ) : System

Ctor

HyperlinkFilter ( int maxWordLength ) : System

Ctor

HyperlinkFilter ( int maxWordLength, bool autoLink ) : System

Ctor

Protected Methods

Method Description
FilterUrl ( string source, int start, int end, string &replacement ) : bool

Allows filtering of which URLs are allowed.

Private Methods

Method Description
DetectUrl ( string source, int start, int end, int &index, int &length ) : bool

Finds the location of URLs within the literal string.

Method Details

FilterLiteral() public method

Optionally finds any URLs and wraps them with a hyperlink
public FilterLiteral ( string source, int start, int end, string &replacement ) : bool
source string original string
start int starting index inclusive
end int ending index exclusive
replacement string a replacement string
return bool

FilterUrl() protected method

Allows filtering of which URLs are allowed.
protected FilterUrl ( string source, int start, int end, string &replacement ) : bool
source string
start int
end int
replacement string the value to replace with
return bool

HyperlinkFilter() public method

Ctor
public HyperlinkFilter ( ) : System
return System

HyperlinkFilter() public method

Ctor
public HyperlinkFilter ( bool autoLink ) : System
autoLink bool
return System

HyperlinkFilter() public method

Ctor
public HyperlinkFilter ( int maxWordLength ) : System
maxWordLength int
return System

HyperlinkFilter() public method

Ctor
public HyperlinkFilter ( int maxWordLength, bool autoLink ) : System
maxWordLength int
autoLink bool
return System