Show / Hide Table of Contents

    Class StringHelper

    Inheritance
    Object
    StringHelper
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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
    Type Name Description
    Regex regex
    String src
    Int32 index
    Returns
    Type Description
    String[]
    | Improve this Doc View Source

    DecodeURIComponent(String)

    Declaration
    public static string DecodeURIComponent(string str)
    Parameters
    Type Name Description
    String str
    Returns
    Type Description
    String
    | Improve this Doc View Source

    Escape(String, Boolean)

    Declaration
    public static string Escape(string html, bool encode = false)
    Parameters
    Type Name Description
    String html
    Boolean encode
    Returns
    Type Description
    String
    | Improve this Doc View Source

    HtmlDecode(String)

    Declaration
    public static string HtmlDecode(string html)
    Parameters
    Type Name Description
    String html
    Returns
    Type Description
    String
    | Improve this Doc View Source

    HtmlEncode(String)

    Declaration
    public static string HtmlEncode(string html)
    Parameters
    Type Name Description
    String html
    Returns
    Type Description
    String
    | Improve this Doc View Source

    Match(String, Regex)

    Declaration
    public static string[] Match(this string src, Regex regex)
    Parameters
    Type Name Description
    String src
    Regex regex
    Returns
    Type Description
    String[]
    | Improve this Doc View Source

    NotEmpty(IList<String>, Int32, Int32)

    Declaration
    public static string NotEmpty(IList<string> source, int index1, int index2)
    Parameters
    Type Name Description
    IList<String> source
    Int32 index1
    Int32 index2
    Returns
    Type Description
    String
    | Improve this Doc View Source

    ReplaceRegex(String, Regex, String)

    Declaration
    public static string ReplaceRegex(this string input, Regex pattern, string replacement)
    Parameters
    Type Name Description
    String input
    Regex pattern
    String replacement
    Returns
    Type Description
    String
    | Improve this Doc View Source

    SplitRegex(String, Regex)

    Declaration
    public static string[] SplitRegex(this string input, Regex pattern)
    Parameters
    Type Name Description
    String input
    Regex pattern
    Returns
    Type Description
    String[]
    | Improve this Doc View Source

    Unescape(String)

    Declaration
    public static string Unescape(string html)
    Parameters
    Type Name Description
    String html
    Returns
    Type Description
    String
    • Improve this Doc
    • View Source
    Back to top Copyright © 2015-2016 Microsoft
    Generated by DocFX