Search Results for

    Show / Hide Table of Contents

    Class StringManipulator

    Provides the ability to manipulate strings.

    Inheritance
    Object
    StringManipulator
    Implements
    ISequenceManipulator<String, Char>
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Microsoft.ML.Probabilistic.Distributions.Automata
    Assembly: Microsoft.ML.Probabilistic.dll
    Syntax
    [Serializable]
    public class StringManipulator : ISequenceManipulator<string, char>

    Properties

    SequenceEqualityComparer

    Declaration
    public IEqualityComparer<string> SequenceEqualityComparer { get; }
    Property Value
    Type Description
    IEqualityComparer<String>

    Methods

    Concat(String, String)

    Creates a string by copying the first string and then appending the second string to it.

    Declaration
    public string Concat(string sequence1, string sequence2)
    Parameters
    Type Name Description
    String sequence1

    The first string.

    String sequence2

    The second string.

    Returns
    Type Description
    String

    The created string.

    GetElement(String, Int32)

    Gets the character at a given position in a given string.

    Declaration
    public char GetElement(string sequence, int index)
    Parameters
    Type Name Description
    String sequence

    The string.

    Int32 index

    The position.

    Returns
    Type Description
    Char

    The character at the given position in the string.

    GetLength(String)

    Gets the length of a given string.

    Declaration
    public int GetLength(string sequence)
    Parameters
    Type Name Description
    String sequence

    The string.

    Returns
    Type Description
    Int32

    The length of the string.

    ToSequence(IEnumerable<Char>)

    Converts a given sequence of characters to a string.

    Declaration
    public string ToSequence(IEnumerable<char> elements)
    Parameters
    Type Name Description
    IEnumerable<Char> elements

    The sequence of characters.

    Returns
    Type Description
    String

    The string.

    Implements

    ISequenceManipulator<TSequence, TElement>
    In This Article
    Back to top Copyright © .NET Foundation. All rights reserved.