void SF_STDCALL EncodeChar(char* pbuffer, SPInt* poffset, UInt32 ucsCharacter);
EncodeChar encodes the given UCS character into the given UTF-8 buffer. Writes the data starting at buffer[offset], and increments offset by the number of bytes written. This method may write up to 6 bytes, so make sure there's room in the buffer.
Parameters |
Description |
char* pbuffer |
Pointer to UTF-8 buffer to write to. |
SPInt* poffset |
Pointer to position in buffer to start writing data. |
UInt32 ucsCharacter |
UCS character to encode. |
SF_UTF8Util.h