C++
inline bool acReadUtf8CharFromCFile( CFile * pCFile, wchar_t & wch, AdCharFormatter * pChFmtr );
File
AcCFileWrappers.h
Description
This function reads in a UTF-8 encoded character from pCFile.
Note UTF-8 encodes a single character in 1 to 4 bytes. The following bit patterns in the first byte determine the length of bytes that a particular character was encoded in:
0xxxxxxx (0x7F) | Character that takes up one byte. |
110xxxxx (0xC0) | Character that takes up two bytes. |
1110xxxx (0xE0) | Character that takes up tree bytes. |
11110xxx (0xF0) | Character that takes up four bytes. |
Parameters
Parameters | Description |
---|---|
pCFile | Input file to be read from |
wch | Output character read in from file |
pChFmtr | Input character format |