Interface ISubsegmentTranslationMemoryLanguageDirection
Exposes translation provider subsegment functionality for a specific language direction.
Namespace: Sdl.LanguagePlatform.TranslationMemoryApi
Assembly: Sdl.LanguagePlatform.TranslationMemoryApi.dll
Syntax
public interface ISubsegmentTranslationMemoryLanguageDirection
Methods
SearchSegmentsMasked(SearchSettings, SubsegmentSearchSettings, SubsegmentSearchCondition, Segment[], bool[])
Performs a segment-level search, and optionally a subsegment search, for an array of segments, specifying a mask which specifies which segments should actually be
searched (only those for which the corresponding mask bit is true are searched). If the mask is null, the method
search all segments. Passing a mask only makes sense in document search contexts (IsDocumentSearch
set to true).
Declaration
SegmentAndSubsegmentSearchResults[] SearchSegmentsMasked(SearchSettings settings, SubsegmentSearchSettings subsegmentSettings, SubsegmentSearchCondition condition, Segment[] segments, bool[] mask)
Parameters
| Type | Name | Description |
|---|---|---|
| SearchSettings | settings | The settings that define the segment-level search parameters. |
| SubsegmentSearchSettings | subsegmentSettings | The settings that define the subsegment search parameters, or null if a subsegment search should not be performed. |
| SubsegmentSearchCondition | condition | If |
| Segment[] | segments | The array containing the segments to search for. |
| bool[] | mask | The array containing the segments to search for. |
Returns
| Type | Description |
|---|---|
| SegmentAndSubsegmentSearchResults[] | An array of SearchResults objects, which mirrors the segments array. It has the exact same size and contains the search results for each segment with the same index within the segments array. |
SearchTranslationUnitsMasked(SearchSettings, SubsegmentSearchSettings, SubsegmentSearchCondition, TranslationUnit[], bool[])
Performs a translation unit search, and optionally a subsegment search on the source segment, for an array of translation units, allows passing a mask which specifies which TUs are actually searched. This is useful in document search contexts where some TUs are passed which should be used to establish a (text) context, but which should not be processed.
Declaration
SegmentAndSubsegmentSearchResults[] SearchTranslationUnitsMasked(SearchSettings settings, SubsegmentSearchSettings subsegmentSettings, SubsegmentSearchCondition condition, TranslationUnit[] translationUnits, bool[] mask)
Parameters
| Type | Name | Description |
|---|---|---|
| SearchSettings | settings | The settings that define the segment-level search parameters. |
| SubsegmentSearchSettings | subsegmentSettings | The settings that define the subsegment search parameters, or null if a subsegment search should not be performed. |
| SubsegmentSearchCondition | condition | If |
| TranslationUnit[] | translationUnits | The array containing the translation units to search for. |
| bool[] | mask | A |
Returns
| Type | Description |
|---|---|
| SegmentAndSubsegmentSearchResults[] | An array of objects, which mirrors the translation unit array. It has the exact same size and contains the search results for each translation unit with the same index within the translation unit array. |