Pascal
function tsStringAnsiToWide(pText: pAnsiChar): pWideChar;
C/C++
WideChar * tsStringAnsiToWide(char * pText);
Converts a ansi string to an wide string which is used by the library. For the conversion the actual codepage will be used. This can be changed with tsSetParameter. The codepage is a part of the active Context so you will need to have an active Context to use this function.
Contains an nullterminated string with ansi chars.
Return value is an null terminated widestring which contains the converted string.
If any error occours the return value will be nil / NULL.
The internal garbage collection needs to register the strings so the TextSuite library needs to be initialized. See also tsInit.
This error will ocour if you havn't bound an context.
If you try to convert a string that is to large.
This could happen if there are some uninitialited internal values. But in normal case this wouldn't happen. If you get this error please send me an mail.
If you pass nil / NULL to this function
There was an unknown error. Please inform me in which case this happens.