Important: The information in this document is obsolete and should not be used for new development.
Identifies where your application can safely break a multibyte string to be converted to Unicode so that the string is not broken in the middle of a multibyte character.
pascal OSStatus TruncateForTextToUnicode(
Your application can use this function to break a string properly before you call the function ConvertFromTextToUnicode so that the string you pass it is terminated with complete characters. You can call this function repeatedly to properly divide up a text segment, each time identifying the new beginning of the string, until the last portion of the text is less than or equal to the maximum allowable length. Each time you use the function, you get a properly terminated string within the allowable length range. You use the function as many times as necessary to be able to convert the entire text segment.
Because the TruncateForTextToUnicode function does not modify the contents of the Unicode converter object, you can call this function safely between calls to the function ConvertFromTextToUnicode.
If the function returns paramErr, kTECGlobalsUnavailableErr, or kTECTableFormatErr the value returned by the oTruncatedLen parameter is invalid.