Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Catch::StringMaker< std::wstring > Struct Reference

#include <catch_tostring.h>

Static Public Member Functions

static std::string convert (const std::wstring &wstr)
 
static std::string convert (const std::wstring &wstr)
 

Detailed Description

Definition at line 1361 of file catch.hpp.

Member Function Documentation

◆ convert() [1/2]

std::string Catch::StringMaker< std::wstring >::convert ( const std::wstring & wstr)
static

Definition at line 142 of file catch_tostring.cpp.

142 {
143 std::string s;
144 s.reserve(wstr.size());
145 for (auto c : wstr) {
146 s += (c <= 0xff) ? static_cast<char>(c) : '?';
147 }
148 return ::Catch::Detail::stringify(s);
149}
char * s

◆ convert() [2/2]

static std::string Catch::StringMaker< std::wstring >::convert ( const std::wstring & wstr)
static

The documentation for this struct was generated from the following files: