[#BloombergLP-bsltf-CopyMoveState-0e-toAscii]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsltf.adoc[bsltf]::xref:BloombergLP/bsltf/CopyMoveState-0e.adoc[CopyMoveState]::toAscii
:relfileprefix: ../../../
:mrdocs:

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; CopyMoveState&colon;&colon;toAscii(CopyMoveState&colon;&colon;e&lowbar;COPIED&lowbar;INTO)&semi; &grave; will print the following on standard output&colon; &grave; COPIED&lowbar;INTO &grave; Any of the &ast;&lowbar;INTO enums can be bitwise ORed with e&lowbar;MOVED&lowbar;FROM, in which case the resulting string will be a comma&hyphen;separated list of two names, e&period;g&period;, &quot;COPIED&lowbar;CONST&lowbar;INTO, MOVED&lowbar;FROM&quot;&period; Note that specifying a `value` that does not match any valid combination of enumerators will result in a string representation that is distinct from any of those corresponding to the enumerators, but is otherwise unspecified&period;

== Synopsis

Declared in `&lt;bsltf&lowbar;copymovestate&period;h&gt;`

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


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