ACBASE_PORT AcString( const char * psz, Encoding encoding, unsigned int nByteCount );
Constructs a string and initializes it from a narrow char string.
Parameters | Description |
---|---|
psz | Input narrow string. Null terminated |
encoding | Input string's encoding format |
nByteCount | Number of input bytes from psz to use |
Currently, only Utf8 encoding is supported.
psz is not required to be null terminated.
If bytecount causes last multi-byte utf8 char in psz to be truncated, then the behavior is undefined.