Search Results for

    Show / Hide Table of Contents

    Class EditScriptApplier

    Applies an edit script to a translation unit.

    Inheritance
    object
    EditScriptApplier
    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.EditScripts
    Assembly: Sdl.LanguagePlatform.TranslationMemory.dll
    Syntax
    public class EditScriptApplier

    Constructors

    EditScriptApplier()

    Declaration
    public EditScriptApplier()

    Methods

    Apply(EditScript, TranslationUnit)

    Applies the edit script to a TU.

    Declaration
    public static bool Apply(EditScript script, TranslationUnit tu)
    Parameters
    Type Name Description
    EditScript script

    The script to apply

    TranslationUnit tu

    The translation unit to apply the script to

    Returns
    Type Description
    bool

    true if the TU has been changed, and false otherwise.

    Apply(EditScript, IList<TranslationUnit>)

    Applies an edit script to a list of translation units.

    Declaration
    public static List<bool> Apply(EditScript script, IList<TranslationUnit> tus)
    Parameters
    Type Name Description
    EditScript script

    The script to apply

    IList<TranslationUnit> tus

    The list of translation units to apply the script to

    Returns
    Type Description
    List<bool>

    A bool list of equal length as the input TU list, where a corresponding 'true' value indicates that the respective TU has been changed.

    Apply(EditScript, IList<TranslationUnit>, FilterExpression)

    Applies an edit script to a list of translation units, but only to those which match the filter. If the filter is null, the edit script will be applied to all TUs in the list.

    Declaration
    public static List<bool> Apply(EditScript script, IList<TranslationUnit> tus, FilterExpression filter)
    Parameters
    Type Name Description
    EditScript script

    The script to apply

    IList<TranslationUnit> tus

    The list of translation units to apply the script to

    FilterExpression filter

    An optional filter

    Returns
    Type Description
    List<bool>

    A bool list of equal length as the input TU list, where a corresponding 'true' value indicates that the respective TU has been changed.

    In this article
    • Constructors
      • EditScriptApplier()
    • Methods
      • Apply(EditScript, TranslationUnit)
      • Apply(EditScript, IList<TranslationUnit>)
      • Apply(EditScript, IList<TranslationUnit>, FilterExpression)
    Back to top Generated by DocFX