MCPcopy Create free account
hub / github.com/acl-dev/acl / insert

Method insert

lib_acl_cpp/src/stdlib/token_tree.cpp:57–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57bool token_tree::insert(const char* key, void* ctx)
58{
59 if (acl_token_tree_word_match(tree_, key) != NULL) {
60 return false;
61 }
62 if (acl_token_tree_add(tree_, key, ACL_TOKEN_F_STOP, ctx) == NULL) {
63 return false;
64 }
65
66 return true;
67}
68
69void* token_tree::remove(const char* key)
70{

Callers 15

fiber_runMethod · 0.80
OnBnClickedConnectMethod · 0.80
addMethod · 0.80
test_token_tree_cppFunction · 0.80
test1Function · 0.80
test2Function · 0.80
addMethod · 0.80
handle_subscribeMethod · 0.80
flushMethod · 0.80
set_delayMethod · 0.80
setMethod · 0.80
acl_foreachFunction · 0.80

Calls 2

acl_token_tree_addFunction · 0.85

Tested by 2

test_token_tree_cppFunction · 0.64
test_baseFunction · 0.64