Return the string representation of the specified enumeration convention.
Synopsis
Declared in <bbldc_daycountconvention.h>
static
char const*
toAscii(Enum convention);
Description
Return the abbreviated character‐string representation of the enumerator corresponding to the specified convention. This representation matches the enumerator's name (e.g., e_ACTUAL_360) with the "e_" prefix elided. For example: ` bsl::cout << bbldc::DayCountConvention::toAscii( bbldc::DayCountConvention::e_ACTUAL_360); ` prints the following on standard output: ` ACTUAL_360 ` 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.
Return Value
abbreviated character‐string representation of convention
Parameters
Name |
Description |
convention |
enumeration value to convert |
Created with MrDocs