Search Results for

    Show / Hide Table of Contents

    Class SubsegmentSearchResults

    Represents a set of results returned by the translation memory after a subsegment search operation for a given input (segment/translation unit/string).

    Inheritance
    object
    SubsegmentSearchResults
    Implements
    IEnumerable<SubsegmentSearchResult>
    IEnumerable
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Sdl.LanguagePlatform.TranslationMemory
    Assembly: Sdl.LanguagePlatform.TranslationMemory.dll
    Syntax
    [DataContract]
    public class SubsegmentSearchResults : IEnumerable<SubsegmentSearchResult>, IEnumerable
    Remarks

    Each SubsegmentSearchResults lists the results retrieved and translation proposals generated for a feature-generating-token fragment query. The individual SubsegmentSearchResult entries contain information about specifically which tokens in the query they match, some of which may provide different coverage depending on whether leading/trailing non-feature-generating tokens could be matched.

    Constructors

    SubsegmentSearchResults(short, short, short)

    Initializes a new instance

    Declaration
    public SubsegmentSearchResults(short sourceFeatureStartIndex, short sourceFeatureCount, short significantFeatureCount)
    Parameters
    Type Name Description
    short sourceFeatureStartIndex
    short sourceFeatureCount
    short significantFeatureCount

    Properties

    Count

    Gets the number of results in this instance.

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    int

    SignificantFeatureCount

    Declaration
    public short SignificantFeatureCount { get; }
    Property Value
    Type Description
    short

    SourceFeatureCount

    Declaration
    public short SourceFeatureCount { get; }
    Property Value
    Type Description
    short

    SourceFeatureStartIndex

    Declaration
    public short SourceFeatureStartIndex { get; }
    Property Value
    Type Description
    short

    Methods

    Add(SubsegmentSearchResult)

    Declaration
    public void Add(SubsegmentSearchResult result)
    Parameters
    Type Name Description
    SubsegmentSearchResult result

    Remove(SubsegmentSearchResult)

    Declaration
    public void Remove(SubsegmentSearchResult result)
    Parameters
    Type Name Description
    SubsegmentSearchResult result

    RemoveAll(Func<SubsegmentSearchResult, bool>)

    Removes all the elements that match the condition defined by the specified predicate

    Declaration
    public int RemoveAll(Func<SubsegmentSearchResult, bool> predicate)
    Parameters
    Type Name Description
    Func<SubsegmentSearchResult, bool> predicate

    the predicate to use

    Returns
    Type Description
    int

    Implements

    IEnumerable<T>
    IEnumerable
    In this article
    • Constructors
      • SubsegmentSearchResults(short, short, short)
    • Properties
      • Count
      • SignificantFeatureCount
      • SourceFeatureCount
      • SourceFeatureStartIndex
    • Methods
      • Add(SubsegmentSearchResult)
      • Remove(SubsegmentSearchResult)
      • RemoveAll(Func<SubsegmentSearchResult, bool>)
    • Implements
    Back to top Generated by DocFX