Class StringHelper
Namespace:Microsoft.DocAsCode.MarkdownLite
Assembly:Microsoft.DocAsCode.MarkdownLite.dll
Syntax
public static class StringHelper
Methods
|
Improve this Doc
View Source
Apply(Regex, String, Int32)
Declaration
public static string[] Apply(this Regex regex, string src, int index = 0)
Parameters
Returns
|
Improve this Doc
View Source
DecodeURIComponent(String)
Declaration
public static string DecodeURIComponent(string str)
Parameters
Type |
Name |
Description |
String |
str |
|
Returns
|
Improve this Doc
View Source
Escape(String, Boolean)
Declaration
public static string Escape(string html, bool encode = false)
Parameters
Returns
|
Improve this Doc
View Source
HtmlDecode(String)
Declaration
public static string HtmlDecode(string html)
Parameters
Type |
Name |
Description |
String |
html |
|
Returns
|
Improve this Doc
View Source
HtmlEncode(String)
Declaration
public static string HtmlEncode(string html)
Parameters
Type |
Name |
Description |
String |
html |
|
Returns
|
Improve this Doc
View Source
Match(String, Regex)
Declaration
public static string[] Match(this string src, Regex regex)
Parameters
Returns
|
Improve this Doc
View Source
NotEmpty(IList<String>, Int32, Int32)
Declaration
public static string NotEmpty(IList<string> source, int index1, int index2)
Parameters
Returns
|
Improve this Doc
View Source
ReplaceRegex(String, Regex, String)
Declaration
public static string ReplaceRegex(this string input, Regex pattern, string replacement)
Parameters
Returns
|
Improve this Doc
View Source
SplitRegex(String, Regex)
Declaration
public static string[] SplitRegex(this string input, Regex pattern)
Parameters
Returns
|
Improve this Doc
View Source
Unescape(String)
Declaration
public static string Unescape(string html)
Parameters
Type |
Name |
Description |
String |
html |
|
Returns