MCPcopy Create free account
hub / github.com/WallBreaker2/op / CursorShapeHash

Function CursorShapeHash

tests/mouse_keyboard_test.cpp:96–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96std::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
106bool WaitForColor(op::Op &op, long x, long y, const std::wstring &expected, std::wstring &actual,
107 int timeout_ms = 1500) {

Callers 1

TESTFunction · 0.85

Calls 1

findMethod · 0.80

Tested by

no test coverage detected