[#BloombergLP-baltzo-ErrorCode-toAscii] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baltzo.adoc[baltzo]::xref:BloombergLP/baltzo/ErrorCode.adoc[ErrorCode]::toAscii :relfileprefix: ../../../ :mrdocs: Return the string representation of the specified enumeration `value`. == Synopsis Declared in `<baltzo_errorcode.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static char const* toAscii(xref:BloombergLP/baltzo/ErrorCode/Enum.adoc[ErrorCode::Enum] value); ---- == Description 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 << ErrorCode::toAscii(ErrorCode::k_UNSUPPORTED_ID); ` will print the following on standard output: ` UNSUPPORTED_ID ` 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. == Return Value non‐modifiable string representation for `value`, or a unique error string == Parameters [cols="1,4"] |=== | Name| Description | *value* | enumeration value to convert |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#