public final class PensieveUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static ITextUnit |
convertToTextUnit(TranslationUnit tu)
Converts a TranslationUnit to a TextUnit
|
static TranslationUnit |
convertToTranslationUnit(LocaleId sourceLoc,
LocaleId targetLoc,
ITextUnit textUnit)
Converts an un-segmented TextUnit into a TranslationUnit.
|
public static TranslationUnit convertToTranslationUnit(LocaleId sourceLoc, LocaleId targetLoc, ITextUnit textUnit)
sourceLoc - the source locale to transform.targetLoc - the target locale to transform.textUnit - the text unit to convert.public static ITextUnit convertToTextUnit(TranslationUnit tu)
tu - The TranslationUnit to convert.Copyright © 2018. All rights reserved.