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