MCPcopy Create free account
hub / github.com/bytedance/sonic-cpp / IsNumber

Method IsNumber

include/sonic/dom/genericnode.h:241–243  ·  view source on GitHub ↗

* @brief Check this node is a number. * @return true if it is a number. */

Source from the content-addressed store, hash-verified

239 * @return true if it is a number.
240 */
241 sonic_force_inline bool IsNumber() const noexcept {
242 return getBasicType() == kNumber;
243 }
244 /**
245 * @brief Check this node is an array.
246 * @return true if it is an array.

Callers 1

TESTFunction · 0.80

Calls 1

getBasicTypeFunction · 0.85

Tested by 1

TESTFunction · 0.64