Share

AdCharFormatter::AdCharFormatter

C++

AdCharFormatter(
    unsigned nFormat, 
    bool bUseCIF, 
    bool bExpandLF
);

Description

Constructs an AdCharFormatter object with given state information.

nFormat can be one of the following values:

AdCharFormatter::kUnknown Character format of the file cannot be determined or is not currently specified.
AdCharFormatter::kAnsi ANSI character format
AdCharFormatter::kUtf8 UTF-8 encoding format
AdCharFormatter::kUtf16LE UTF-16 little endian encoding format
AdCharFormatter::kUtf16BE UTF-16 big endian encoding format
AdCharFormatter::kUtf32LE UTF-32 little endian encoding format
AdCharFormatter::kUtf32BE UTF-32 big endian encoding format

bExpandLF specifies whether this object expands new line characters into carriage return-line feed (CR-LF) character pairs when writing. The same state is used when reading to determine if CR-LF characters should be collapsed into a single new line character.

Parameters

Parameters Description
nFormat Input value that specifies the character format to be used when this object reads or writes characters
bUseCIF Input Boolean true if reading/writing of CIF/MIF sequences is desired
bExpandLF Input Boolean true if new line expansion is to be enabled

Links

AdCharFormatter

Was this information helpful?