| 94 | } |
| 95 | |
| 96 | std::wstring CursorShapeHash(const std::wstring &shape) { |
| 97 | size_t first = shape.find(L','); |
| 98 | if (first == std::wstring::npos) |
| 99 | return L""; |
| 100 | size_t second = shape.find(L',', first + 1); |
| 101 | if (second == std::wstring::npos) |
| 102 | return L""; |
| 103 | return shape.substr(first + 1, second - first - 1); |
| 104 | } |
| 105 | |
| 106 | bool WaitForColor(op::Op &op, long x, long y, const std::wstring &expected, std::wstring &actual, |
| 107 | int timeout_ms = 1500) { |