| 133 | } |
| 134 | |
| 135 | std::wstring CefValueTraverser::AsWString() const |
| 136 | { |
| 137 | using str::ToWide; |
| 138 | if (pCefValue->GetType() == CefValueType::VTYPE_STRING) |
| 139 | { |
| 140 | return pCefValue->GetString().ToWString(); |
| 141 | } |
| 142 | pmlog_error(std::format("Cannot extract std::wstring from CEF {}", CefValueTypeToString(pCefValue->GetType()))); |
| 143 | throw Except<BadCefValueTraversal>(); |
| 144 | } |
| 145 | |
| 146 | std::string CefValueTraverser::AsString() const |
| 147 | { |
no test coverage detected