[#BloombergLP-bslx-TypeCode-toAscii]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslx.adoc[bslx]::xref:BloombergLP/bslx/TypeCode.adoc[TypeCode]::toAscii
:relfileprefix: ../../../
:mrdocs:

Return the ASCII string representation of the specified `value`&period;

== Synopsis

Declared in `&lt;bslx&lowbar;typecode&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
char const*
toAscii(xref:BloombergLP/bslx/TypeCode/Enum.adoc[TypeCode::Enum] value);
----

== Description

Return the non&hyphen;modifiable string representation corresponding to the specified enumeration `value`, if it exists, and a unique (error) string otherwise&period; The string representation of `value` matches its corresponding enumerator name with the &quot;e&lowbar;&quot; prefix elided&period; For example&colon; &grave; bsl&colon;&colon;cout &lt;&lt; TypeCode&colon;&colon;toAscii(TypeCode&colon;&colon;e&lowbar;INT32)&semi; &grave; will print the following on standard output&colon; &grave; INT32 &grave; 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&period;

== Return Value

the non&hyphen;modifiable string representation of `value`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *value*
| enumeration value to convert
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
