MCPcopy Create free account
hub / github.com/OpenArkStudio/ARK / IsFloatNumber

Method IsFloatNumber

src/base/AFStringUtils.hpp:1024–1032  ·  view source on GitHub ↗

query whether parameter std::string is a float number std::string or not.

Source from the content-addressed store, hash-verified

1022
1023 // query whether parameter std::string is a float number std::string or not.
1024 static bool IsFloatNumber(std::string& s)
1025 {
1026 if (s.find('.') != std::string::npos || s.find('e') != std::string::npos || s.find('E') != std::string::npos)
1027 {
1028 return true;
1029 }
1030
1031 return false;
1032 }
1033
1034 static bool IsDigit(const std::string& str)
1035 {

Callers

nothing calls this directly

Calls 1

findMethod · 0.45

Tested by

no test coverage detected