Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NPP-JSONViewer/JSON-Viewer
/ GetNumber
Method
GetNumber
src/UtilityLib/Utility.cpp:296–303 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
294
}
295
296
auto CUtility::GetNumber(const std::wstring& str) -> std::optional<int>
297
{
298
std::optional<int> retVal = std::nullopt;
299
if (IsNumber(str))
300
retVal = std::make_optional<int>(std::stoi(str));
301
302
return retVal;
303
}
Callers
1
TEST
Function · 0.80
Calls
no outgoing calls
Tested by
1
TEST
Function · 0.64