| 121 | } |
| 122 | |
| 123 | bool parse_path_point(const std::wstring &text, POINT &pt) { |
| 124 | std::wistringstream stream(text); |
| 125 | long x = 0; |
| 126 | long y = 0; |
| 127 | wchar_t comma = 0; |
| 128 | if (!(stream >> x >> comma >> y) || comma != L',') |
| 129 | return false; |
| 130 | while (stream && std::iswspace(stream.peek())) |
| 131 | stream.get(); |
| 132 | if (!stream.eof()) |
| 133 | return false; |
| 134 | pt = POINT{static_cast<LONG>(x), static_cast<LONG>(y)}; |
| 135 | return true; |
| 136 | } |
| 137 | |
| 138 | bool parse_mouse_path(const std::wstring &path_text, std::vector<POINT> &path) { |
| 139 | path.clear(); |