MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / wstringConvert

Function wstringConvert

tests/DCPS/Serializer/SerializerTest.cpp:380–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378
379#if defined DDS_HAS_WCHAR && defined ACE_HAS_CPP20
380std::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

Callers 1

checkValuesFunction · 0.85

Calls 1

to_stringFunction · 0.50

Tested by

no test coverage detected