[#BloombergLP-bbldc-DayCountConvention-toAscii]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bbldc.adoc[bbldc]::xref:BloombergLP/bbldc/DayCountConvention.adoc[DayCountConvention]::toAscii
:relfileprefix: ../../../
:mrdocs:

Return the abbreviated character&hyphen;string representation of the enumerator corresponding to the specified `convention`&period; This representation matches the enumerator&apos;s name (e&period;g&period;, `e&lowbar;ACTUAL&lowbar;360`) with the &quot;e&lowbar;&quot; prefix elided&period; For example&colon; &grave; bsl&colon;&colon;cout &lt;&lt; bbldc&colon;&colon;DayCountConvention&colon;&colon;toAscii( bbldc&colon;&colon;DayCountConvention&colon;&colon;e&lowbar;ACTUAL&lowbar;360)&semi; &grave; prints the following on standard output&colon; &grave; ACTUAL&lowbar;360 &grave; Note that specifying a `convention` that does not match any of the enumerators will result in an unspecified string representation being returned that is distinct from the values returned for any valid enumerator&period;

== Synopsis

Declared in `&lt;bbldc&lowbar;daycountconvention&period;h&gt;`

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


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