Share via


ITokenizedStringList Interface

Definition

A tokenized representation of a string into abutting and non-overlapping segments.

public interface class ITokenizedStringList : System::Collections::Generic::ICollection<System::String ^>, System::Collections::Generic::IEnumerable<System::String ^>, System::Collections::Generic::IList<System::String ^>
public interface ITokenizedStringList : System.Collections.Generic.ICollection<string>, System.Collections.Generic.IEnumerable<string>, System.Collections.Generic.IList<string>
type ITokenizedStringList = interface
    interface IList<string>
    interface ICollection<string>
    interface seq<string>
    interface IEnumerable
Public Interface ITokenizedStringList
Implements ICollection(Of String), IEnumerable(Of String), IList(Of String)
Implements

Remarks

This interface implements IList so that it can be used with IDifferenceService, which finds the differences between two sequences represented as ILists.

Properties

Original

The original string that was tokenized.

Methods

GetElementInOriginal(Int32)

Maps the index of an element to its span in the original list.

GetSpanInOriginal(Span)

Maps a span of elements in this list to the span in the original list.

Extension Methods

EmptyIfNull<T>(IEnumerable<T>)

Return this enumeration in case it is not null. In case it is null return empty enumeration.

Applies to