SubstringPosition Type

Designates the position of a substring in a list of words.

Constructors

Constructor Description

SubstringPosition(wordIndex, start, count)

Full Usage: SubstringPosition(wordIndex, start, count)

Parameters:
    wordIndex : int - Index of the word in the word list.
    start : int - Starting position of the substring in the word.
    count : int - Number of elements of the substring.

Initializes a new instance of the SubstringPosition struct.

wordIndex : int

Index of the word in the word list.

start : int

Starting position of the substring in the word.

count : int

Number of elements of the substring.

Instance members

Instance member Description

this.Count

Full Usage: this.Count

Returns: int

Number of characters of the substring.

Returns: int

this.End

Full Usage: this.End

Returns: int

Ending position of the substring in the word (next position after the last character of the word).

Returns: int

this.GetCommonSubstring

Full Usage: this.GetCommonSubstring

Parameters:
    words : IList<string> - The words that were originally used to build the common substring query.

Returns: string The common substring that is represented by this instance.

Gets the common substring.

words : IList<string>

The words that were originally used to build the common substring query.

Returns: string

The common substring that is represented by this instance.

this.GetCommonSubstring

Full Usage: this.GetCommonSubstring

Parameters:
    words : IList<IList<'T>> - The words that were originally used to build the common substring query. If the original words were strings, please use the non-generic version of this function..

Returns: List<'T> The common substring that is represented by this instance.

Gets the common substring.

words : IList<IList<'T>>

The words that were originally used to build the common substring query. If the original words were strings, please use the non-generic version of this function..

Returns: List<'T>

The common substring that is represented by this instance.

this.Start

Full Usage: this.Start

Returns: int

Starting position of the substring in the word.

Returns: int

this.ToString

Full Usage: this.ToString

Returns: string
Modifiers: abstract

Returns: string

this.WordIndex

Full Usage: this.WordIndex

Returns: int

Number of the word in the list of words.

Returns: int