Class EditScriptApplier
Applies an edit script to a translation unit.
Inherited Members
Namespace: SdlSdl.LanguagePlatformTranslationMemoryEditScripts
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 |
|
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 |
IListTranslationUnit | tus | The list of translation units to apply the script to |
Returns
Type | Description |
---|---|
Listbool | 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 |
IListTranslationUnit | tus | The list of translation units to apply the script to |
FilterExpression | filter | An optional filter |
Returns
Type | Description |
---|---|
Listbool | A bool list of equal length as the input TU list, where a corresponding 'true' value indicates that the respective TU has been changed. |