Return the non‐modifiable string representation corresponding to the specified enumeration value, if it exists, and a unique (error) string otherwise. The string representation of value matches its corresponding enumerator name with the "k_" prefix elided. For example: ` bsl::cout << CharConvertStatus::toAscii( CharConvertStatus::k_OUT_OF_SPACE_BIT); ` will print the following on standard output: ` OUT_OF_SPACE_BIT ` Note that specifying a value that does not match any of the enumerators will result in a string representation that is distinct from any of those corresponding to the enumerators, but is otherwise unspecified.
Synopsis
Declared in <bdlde_charconvertstatus.h>
static
char const*
toAscii(CharConvertStatus::Enum value);
Created with MrDocs