MCPcopy Create free account
hub / github.com/IENT/YUView / toUnsigned

Function toUnsigned

YUViewLib/src/common/Functions.cpp:171–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171std::optional<unsigned long> toUnsigned(const std::string &text)
172{
173 try
174 {
175 auto index = std::stoul(text);
176 return index;
177 }
178 catch (...)
179 {
180 return {};
181 }
182}
183
184} // namespace functions

Callers 2

getValueMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected