Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SmingHub/Sming
/ isNumber
Function
isNumber
Sming/Core/Data/Stream/SectionTemplate.cpp:45–48 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
43
}
44
45
bool isNumber(const char* s)
46
{
47
return (s != nullptr) && ((*s ==
'-'
) || (*s ==
'+'
) || isdigit(*s));
48
}
49
50
bool isNumber(const String& s)
51
{
Callers
5
isFloat
Function · 0.85
compare
Method · 0.85
add
Method · 0.85
sub
Method · 0.85
parse
Method · 0.85
Calls
1
c_str
Method · 0.45
Tested by
no test coverage detected