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

Method IsStringConst

include/sonic/dom/genericnode.h:299–301  ·  view source on GitHub ↗

* @brief Check this node is a const string. "Const" means the string's * buffer is not allocated by any allocator. * @return true if its string is const. */

Source from the content-addressed store, hash-verified

297 * @return true if its string is const.
298 */
299 sonic_force_inline bool IsStringConst() const noexcept {
300 return GetType() == kStringConst;
301 }
302 /**
303 * @brief Check the node is an container(object or array).
304 * @return true if it is an object or array.

Callers 2

TYPED_TESTFunction · 0.80
TYPED_TESTFunction · 0.80

Calls 1

GetTypeFunction · 0.85

Tested by 2

TYPED_TESTFunction · 0.64
TYPED_TESTFunction · 0.64