| 39 | |
| 40 | #ifdef DDS_HAS_WCHAR |
| 41 | WChar* wstring_alloc(UnsignedLong len) |
| 42 | { |
| 43 | if (len == 0) return &s_wempty; |
| 44 | const size_t n = (len + 1) * sizeof(WChar); |
| 45 | void* const raw = ACE_Allocator::instance()->malloc(n); |
| 46 | WChar* const str = static_cast<WChar*>(raw); |
| 47 | if (str) str[0] = static_cast<WChar>(0); |
| 48 | return str; |
| 49 | } |
| 50 | |
| 51 | WChar* wstring_dup(const WChar* str) |
| 52 | { |
no test coverage detected