| 378 | |
| 379 | #if defined DDS_HAS_WCHAR && defined ACE_HAS_CPP20 |
| 380 | std::string wstringConvert(const ACE_CDR::WChar* in) |
| 381 | { |
| 382 | std::string out = "{"; |
| 383 | for (; *in; ++in) { |
| 384 | out += std::to_string(int(*in)); |
| 385 | if (in[1]) { |
| 386 | out += ", "; |
| 387 | } |
| 388 | } |
| 389 | return out + "}"; |
| 390 | } |
| 391 | #else |
| 392 | #define wstringConvert(X) X |
| 393 | #endif |
no test coverage detected