![]() |
![]() |
![]() |
![]() |
![]() |
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Translate characters from UTF-8
#include <photon/PxProto.h>
int PxTranslateFromUTF( struct PxTransCtrl *ctrl,
const char *src,
int maxsrc,
int *srctaken,
char *dst,
int maxdst,
int *dstmade);
phexlib
PxTranslateFromUTF() is used to translate a block of characters from UTF-8 (the internal Photon character set). The ctrl parameter specifies the encoding of the destination characters and must be the pointer returned by a previous call to PxTranslateSet() to install this encoding.
The parameters are as follows:
Photon
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |
PxTranslateList(), PxTranslateSet(), PxTranslateStateFromUTF(), PxTranslateStateToUTF(), PxTranslateToUTF(), PxTranslateUnknown()
Unicode Multilingual Support in the Photon Programmer's Guide
mbtowc(), wctomb() in the QNX Neutrino Library Reference
![]() |
![]() |
![]() |
![]() |