MCPcopy Create free account
hub / github.com/OpenImageDebugger/OpenImageDebugger / parse_goto

Method parse_goto

src/host/ui/ui_state.cpp:135–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135std::optional<std::pair<int, int>>
136UiState::parse_goto(std::string_view x, std::string_view y) const {
137 const auto px = parse_int_field(x);
138 const auto py = parse_int_field(y);
139 if (!px.has_value() || !py.has_value()) {
140 return std::nullopt;
141 }
142 return std::make_pair(*px, *py);
143}
144
145void UiState::set_status_message(std::string msg) {
146 status_message_ = std::move(msg);

Callers 2

commit_goto_on_submitFunction · 0.80
TESTFunction · 0.80

Calls 1

parse_int_fieldFunction · 0.85

Tested by 1

TESTFunction · 0.64