| FileBasedTranslationMemoryLanguageDirectionEditTranslationUnitsWithIterator Method |
Applies an EditScript to the translation units, using an iterator.
Namespace: Sdl.LanguagePlatform.TranslationMemoryApiAssembly: Sdl.LanguagePlatform.TranslationMemoryApi (in Sdl.LanguagePlatform.TranslationMemoryApi.dll) Version: 1.6.0.0 (1.14.4157.0)
Syntaxpublic int EditTranslationUnitsWithIterator(
EditScript editScript,
EditUpdateMode updateMode,
ref RegularIterator iterator
)
Public Function EditTranslationUnitsWithIterator (
editScript As EditScript,
updateMode As EditUpdateMode,
ByRef iterator As RegularIterator
) As Integer
public:
virtual int EditTranslationUnitsWithIterator(
EditScript^ editScript,
EditUpdateMode updateMode,
RegularIterator^% iterator
) sealed
abstract EditTranslationUnitsWithIterator :
editScript : EditScript *
updateMode : EditUpdateMode *
iterator : RegularIterator byref -> int
override EditTranslationUnitsWithIterator :
editScript : EditScript *
updateMode : EditUpdateMode *
iterator : RegularIterator byref -> int Parameters
- editScript
- Type: EditScript
The edit script to apply - updateMode
- Type: EditUpdateMode
The update mode, which can be to update changed
translation units in-place or add new translation units to the TM (which is only relevant
if segment data has been changed). - iterator
- Type: RegularIterator
The iterator to use. Note that a filter condition can be set on the
iterator in which case the script will only be applied to those translation units
which satisfy the filter condition.
Return Value
Type:
Int32
The number of changed or edited translation units
Implements
ITranslationMemoryLanguageDirectionEditTranslationUnitsWithIterator(EditScript, EditUpdateMode, RegularIterator)
RemarksNote that a filter condition can also be set on the editScript
instead of the iterator. Depending on the back-end storage, it may be more efficient to
set it on the iterator than on the edit script.
See Also
Comments