Translator::TranslateInfo::SetResult

Translator::TranslateInfo::SetResult
void SetResult(const wchar_t* presultText, UPInt resultLen = SF_MAX_UPINT);
void SetResult(const char* presultTextUTF8, UPInt resultUTF8Len = SF_MAX_UPINT);
Description

SetResult sets the translated string as a plain text. Wide character and UTF-8 variants are supported. Length is optional; and null-terminated string should be used if length is omitted.

Parameters
Parameters 
Description 
const wchar_t* presultText 
Translated string in wide-character format. 
UPInt resultLen = SF_MAX_UPINT 
For UTF-8 encoded string this indicates number of bytes (not characters) in the string and for UCS encoded string this indicates number of characters (not bytes) in the string. 
const char* presultTextUTF8 
Translated string in UTF-8 format.