| 144 | } |
| 145 | |
| 146 | std::string CefValueTraverser::AsString() const |
| 147 | { |
| 148 | using str::ToWide; |
| 149 | if (pCefValue->GetType() == CefValueType::VTYPE_STRING) |
| 150 | { |
| 151 | return pCefValue->GetString(); |
| 152 | } |
| 153 | pmlog_error(std::format("Cannot extract std::string from CEF {}", |
| 154 | CefValueTypeToString(pCefValue->GetType()) |
| 155 | )); |
| 156 | throw Except<BadCefValueTraversal>(); |
| 157 | } |
| 158 | |
| 159 | CefValueTraverser CefValueTraverser::operator[](const char* key) |
| 160 | { |
no test coverage detected