MCPcopy Create free account
hub / github.com/Tencent/TscanCode / isNumberOneOf

Function isNumberOneOf

trunk/lib/tokenize.cpp:10264–10275  ·  view source on GitHub ↗

* Helper function to check whether number is equal to integer constant X * or floating point pattern X.0 * @param s the string to check * @param intConstant the integer constant to check against * @param floatConstant the string with stringified float constant to check against * @return true in case s is equal to X or X.0 and false otherwise. */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

isZeroNumberMethod · 0.85
isOneNumberMethod · 0.85
isTwoNumberMethod · 0.85

Calls 1

toStringFunction · 0.70

Tested by

no test coverage detected