Search Results for

    Show / Hide Table of Contents

    Class StringUtilities

    Inheritance
    System.Object
    StringUtilities
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Sdl.LanguagePlatform.Core
    Assembly: Sdl.LanguagePlatform.Core.dll
    Syntax
    public static class StringUtilities

    Methods

    DetermineCasing(String)

    Declaration
    public static StringUtilities.Casing DetermineCasing(string s)
    Parameters
    Type Name Description
    System.String s
    Returns
    Type Description
    StringUtilities.Casing

    EndsWithAny(String, Char[])

    Declaration
    public static bool EndsWithAny(string s, char[] characterList)
    Parameters
    Type Name Description
    System.String s
    System.Char[] characterList
    Returns
    Type Description
    System.Boolean

    EscapeString(String)

    Declaration
    public static string EscapeString(string s)
    Parameters
    Type Name Description
    System.String s
    Returns
    Type Description
    System.String

    EscapeString(String, String)

    Declaration
    public static string EscapeString(string s, string charactersToEscape)
    Parameters
    Type Name Description
    System.String s
    System.String charactersToEscape
    Returns
    Type Description
    System.String

    GenerateRandomWord(Int32, Boolean)

    Declaration
    public static string GenerateRandomWord(int length, bool initialUpper)
    Parameters
    Type Name Description
    System.Int32 length
    System.Boolean initialUpper
    Returns
    Type Description
    System.String

    GetPrefixLength(String, Char[])

    Declaration
    public static int GetPrefixLength(string s, char[] prefixChars)
    Parameters
    Type Name Description
    System.String s
    System.Char[] prefixChars
    Returns
    Type Description
    System.Int32

    GetSuffixLength(String, Char[])

    Declaration
    public static int GetSuffixLength(string s, char[] suffixChars)
    Parameters
    Type Name Description
    System.String s
    System.Char[] suffixChars
    Returns
    Type Description
    System.Int32

    HalfWidthToFullWidth(String)

    Declaration
    public static string HalfWidthToFullWidth(string input)
    Parameters
    Type Name Description
    System.String input
    Returns
    Type Description
    System.String

    HalfWidthToFullWidth2(String)

    Declaration
    public static string HalfWidthToFullWidth2(string input)
    Parameters
    Type Name Description
    System.String input
    Returns
    Type Description
    System.String

    IsAllWhitespace(String)

    Declaration
    public static bool IsAllWhitespace(string t)
    Parameters
    Type Name Description
    System.String t
    Returns
    Type Description
    System.Boolean

    MergeStrings(String, String)

    Declaration
    public static string MergeStrings(string a, string b)
    Parameters
    Type Name Description
    System.String a
    System.String b
    Returns
    Type Description
    System.String

    RemoveAll(String, Predicate<Char>)

    Declaration
    public static string RemoveAll(string s, Predicate<char> property)
    Parameters
    Type Name Description
    System.String s
    System.Predicate<System.Char> property
    Returns
    Type Description
    System.String

    StartWithAny(String, Char[])

    Declaration
    public static bool StartWithAny(string s, char[] characterList)
    Parameters
    Type Name Description
    System.String s
    System.Char[] characterList
    Returns
    Type Description
    System.Boolean

    TrimEnd(String, Char[], out String)

    Declaration
    public static string TrimEnd(string s, char[] trimCharacters, out string trimmedSuffix)
    Parameters
    Type Name Description
    System.String s
    System.Char[] trimCharacters
    System.String trimmedSuffix
    Returns
    Type Description
    System.String

    TrimStart(String, Char[], out String)

    Declaration
    public static string TrimStart(string s, char[] trimCharacters, out string trimmedPrefix)
    Parameters
    Type Name Description
    System.String s
    System.Char[] trimCharacters
    System.String trimmedPrefix
    Returns
    Type Description
    System.String

    On this page

    • Methods
      • DetermineCasing(String)
      • EndsWithAny(String, Char[])
      • EscapeString(String)
      • EscapeString(String, String)
      • GenerateRandomWord(Int32, Boolean)
      • GetPrefixLength(String, Char[])
      • GetSuffixLength(String, Char[])
      • HalfWidthToFullWidth(String)
      • HalfWidthToFullWidth2(String)
      • IsAllWhitespace(String)
      • MergeStrings(String, String)
      • RemoveAll(String, Predicate<Char>)
      • StartWithAny(String, Char[])
      • TrimEnd(String, Char[], out String)
      • TrimStart(String, Char[], out String)
    Back to top Generated by DocFX