Return a human‐readable description of the specified error status.

Synopsis

Declared in <bdlde_utf8checkinginstreambufwrapper.h>

static
char const*
toAscii(int errorStatus);

Description

Return a description of the specified errorStatus. Note that errorStatus is either: * k_SEEK_FAIL * A value from Utf8Util::ErrorStatus, which are all negative, in the case of invalid UTF‐8. * 0 if no errors have occurred, in which case NO_ERROR will be returned. Note that this includes the case where end of file has been reached without any error occurring. * If errorStatus is an invalid value, "(* unrecognized value *)" will be returned.

Return Value

a null‐terminated description of errorStatus

Parameters

Name

Description

errorStatus

error code to describe (0, k_SEEK_FAIL, or a Utf8Util::ErrorStatus value)

Created with MrDocs