Home
last modified time | relevance | path

Searched refs:jbl (Results 1 – 25 of 26) sorted by relevance

12

/third_party/ejdb/src/tests/
Dejdb_test1.c24 JBL jbl; in ejdb_test1_3() local
41 rc = ejdb_get(db, "c1", id, &jbl); in ejdb_test1_3()
47 rc = jbl_as_json(jbl, jbl_xstr_json_printer, xstr, 0); in ejdb_test1_3()
54 jbl_destroy(&jbl); in ejdb_test1_3()
66 JBL jbl, at, meta; in ejdb_test1_2() local
71 rc = jbl_from_json(&jbl, "{\"foo\":22}"); in ejdb_test1_2()
73 rc = ejdb_put_new(db, "foocoll", jbl, &llv); in ejdb_test1_2()
75 jbl_destroy(&jbl); in ejdb_test1_2()
78 rc = ejdb_get(db, "foocoll", llv, &jbl); in ejdb_test1_2()
81 rc = jbl_at(jbl, "/foo", &at); in ejdb_test1_2()
[all …]
Dejdb_test.h45 JBL jbl; in put_json() local
47 iwrc rc = jbl_from_json(&jbl, buf); in put_json()
49 rc = ejdb_put_new(db, coll, jbl, &llv); in put_json()
50 jbl_destroy(&jbl); in put_json()
64 JBL jbl; in put_json2() local
65 iwrc rc = jbl_from_json(&jbl, buf); in put_json2()
69 rc = ejdb_put_new(db, coll, jbl, id); in put_json2()
71 rc = ejdb_put(db, coll, jbl, *id); in put_json2()
73 jbl_destroy(&jbl); in put_json2()
Dejdb_test2.c49 JBL jbl; in ejdb_test2_2() local
50 rc = jbl_at(doc->raw, "/f", &jbl); in ejdb_test2_2()
52 int64_t llv = jbl_get_i64(jbl); in ejdb_test2_2()
53 jbl_destroy(&jbl); in ejdb_test2_2()
72 JBL jbl; in ejdb_test2_1_exec_visitor1() local
73 iwrc rc = jbl_at(doc->raw, "/f", &jbl); in ejdb_test2_1_exec_visitor1()
75 int64_t llv = jbl_get_i64(jbl); in ejdb_test2_1_exec_visitor1()
83 jbl_destroy(&jbl); in ejdb_test2_1_exec_visitor1()
Dejdb_test3.c764 JBL jbl; in ejdb_test3_4() local
765 rc = ejdb_get(db, "a3", docId, &jbl); in ejdb_test3_4()
768 rc = jbl_as_json(jbl, jbl_xstr_json_printer, xstr, 0); in ejdb_test3_4()
770 jbl_destroy(&jbl); in ejdb_test3_4()
1006 JBL jbl; in ejdb_test3_7() local
1007 rc = ejdb_get(db, "cc2", 1, &jbl); in ejdb_test3_7()
1009 jbl_destroy(&jbl); in ejdb_test3_7()
1025 rc = ejdb_get(db, "cc2", 1, &jbl); in ejdb_test3_7()
1027 jbl_destroy(&jbl); in ejdb_test3_7()
/third_party/iowow/src/json/
Diwjson.c64 void jbl_set_user_data(JBL jbl, void *user_data, void (*user_data_free_fn)(void*)) { in jbl_set_user_data() argument
65 binn_set_user_data(&jbl->bn, user_data, user_data_free_fn); in jbl_set_user_data()
68 void* jbl_get_user_data(JBL jbl) { in jbl_get_user_data() argument
69 return jbl->bn.user_data; in jbl_get_user_data()
72 iwrc jbl_set_int64(JBL jbl, const char *key, int64_t v) { in jbl_set_int64() argument
73 jbl_type_t t = jbl_type(jbl); in jbl_set_int64()
74 if (((t != JBV_OBJECT) && (t != JBV_ARRAY)) || !jbl->bn.writable) { in jbl_set_int64()
77 binn *bv = &jbl->bn; in jbl_set_int64()
96 iwrc jbl_set_f64(JBL jbl, const char *key, double v) { in jbl_set_f64() argument
97 jbl_type_t t = jbl_type(jbl); in jbl_set_f64()
[all …]
Diwjson.h220 IW_EXPORT void jbl_set_user_data(JBL jbl, void *user_data, void (*user_data_free_fn)(void*));
227 IW_EXPORT void* jbl_get_user_data(JBL jbl);
242 IW_EXPORT iwrc jbl_set_int64(JBL jbl, const char *key, int64_t v);
257 IW_EXPORT iwrc jbl_set_f64(JBL jbl, const char *key, double v);
272 IW_EXPORT iwrc jbl_set_string(JBL jbl, const char *key, const char *v);
274 IW_EXPORT iwrc jbl_set_string_printf(JBL jbl, const char *key, const char *format, ...);
289 IW_EXPORT iwrc jbl_set_bool(JBL jbl, const char *key, bool v);
305 IW_EXPORT iwrc jbl_set_null(JBL jbl, const char *key);
307 IW_EXPORT iwrc jbl_set_empty_array(JBL jbl, const char *key);
309 IW_EXPORT iwrc jbl_set_empty_object(JBL jbl, const char *key);
[all …]
Diwjson_internal.h70 iwrc jbl_from_buf_keep_onstack(JBL jbl, void *buf, size_t bufsz);
71 iwrc jbl_from_buf_keep_onstack2(JBL jbl, void *buf);
78 iwrc _jbl_from_node(JBL jbl, JBL_NODE node);
79 bool _jbl_at(JBL jbl, JBL_PTR jp, JBL res);
/third_party/iowow/src/json/tests/
Djbl_test1.c88 JBL jbl; in jbl_test1_2() local
89 iwrc rc = jbl_from_json(&jbl, data); in jbl_test1_2()
95 rc = jbl_as_json(jbl, jbl_xstr_json_printer, xstr, false); in jbl_test1_2()
102 jbl_destroy(&jbl); in jbl_test1_2()
105 rc = jbl_from_json(&jbl, "{ "); in jbl_test1_2()
183 JBL jbl, at, at2; in jbl_test1_4() local
186 iwrc rc = jbl_from_json(&jbl, data); in jbl_test1_4()
189 rc = jbl_at(jbl, "/foo", &at); in jbl_test1_4()
198 rc = jbl_at(jbl, "/foo2/foo3", &at); in jbl_test1_4()
212 rc = jbl_at(jbl, "/foo2/foo10", &at); in jbl_test1_4()
[all …]
/third_party/ejdb/src/examples/
Dexample1.c26 JBL jbl = 0; // Json document in main() local
35 rc = jbl_from_json(&jbl, "{\"name\":\"Bianca\", \"age\":4}"); in main()
37 rc = ejdb_put_new(db, "parrots", jbl, &id); in main()
39 jbl_destroy(&jbl); in main()
42 rc = jbl_from_json(&jbl, "{\"name\":\"Darko\", \"age\":8}"); in main()
44 rc = ejdb_put_new(db, "parrots", jbl, &id); in main()
46 jbl_destroy(&jbl); in main()
70 if (jbl) { in main()
71 jbl_destroy(&jbl); in main()
/third_party/ejdb/
DCAPI.md7 * [jbl.h](https://github.com/Softmotions/ejdb/blob/master/src/jbl/jbl.h) JSON documents management …
36 JBL jbl = 0; // Json document
45 rc = jbl_from_json(&jbl, "{\"name\":\"Bianca\", \"age\":4}");
47 rc = ejdb_put_new(db, "parrots", jbl, &id);
49 jbl_destroy(&jbl);
52 rc = jbl_from_json(&jbl, "{\"name\":\"Darko\", \"age\":8}");
54 rc = ejdb_put_new(db, "parrots", jbl, &id);
56 jbl_destroy(&jbl);
78 jbl_destroy(&jbl);
DChangelog31 * Correct handling of `vsnprintf` return value. (jbl.c)
70 * Added jbl_from_json_printf_va(), jbn_from_json_printf_va() (jbl.h)
137 * Added `jbn_add_item_null()` (jbl.h)
147 * Added `jbl_from_json_printf()` and `jbn_from_json_printf()` (jbl.h)
149 * Typo fixed (jbl.c)
150 * `jbl_get_str()` now returns `const char*` (jbl.h)
151 * Added `jbl_set_user_data()` (jbl.h)
158 * Better floating point numbers comparison in `jbn_compare_nodes()` (jbl.h)
159 * Fixed error in `jbn_copy_path()` if some source property doesn't exist (jbl.h)
160 * Added `jbn_length()` (jbl.h)
[all …]
DREADME.md1234 * [jbl.h](https://github.com/Softmotions/ejdb/blob/master/src/jbl/jbl.h) JSON documents management …
1263 JBL jbl = 0; // Json document
1272 rc = jbl_from_json(&jbl, "{\"name\":\"Bianca\", \"age\":4}");
1274 rc = ejdb_put_new(db, "parrots", jbl, &id);
1276 jbl_destroy(&jbl);
1279 rc = jbl_from_json(&jbl, "{\"name\":\"Darko\", \"age\":8}");
1281 rc = ejdb_put_new(db, "parrots", jbl, &id);
1283 jbl_destroy(&jbl);
1305 jbl_destroy(&jbl);
/third_party/ejdb/src/jql/tests/
Djql_test1.c84 JBL jbl; in _jql_test1_2() local
90 rc = jbl_from_json(&jbl, json); in _jql_test1_2()
93 rc = jql_matched(jql, jbl, &m); in _jql_test1_2()
98 jbl_destroy(&jbl); in _jql_test1_2()
203 JBL jbl; in _jql_test1_3() local
217 rc = jbl_from_json(&jbl, json); in _jql_test1_3()
220 rc = jql_matched(jql, jbl, &m); in _jql_test1_3()
231 rc = jql_apply_and_project(jql, jbl, &out, 0, pool); in _jql_test1_3()
244 jbl_destroy(&jbl); in _jql_test1_3()
284 JBL jbl = 0; in jql_test_1_5() local
[all …]
/third_party/ejdb/src/jbi/
Djbi_consumer.c9 struct _JBL jbl; in jbi_consumer() local
54 RCC(rc, finish, jbl_from_buf_keep_onstack(&jbl, ctx->jblbuf, vsz)); in jbi_consumer()
56 rc = jql_matched(ux->q, &jbl, matched); in jbi_consumer()
71 .raw = &jbl in jbi_consumer()
76 pool = iwpool_create(jbl.bn.size * 2); in jbi_consumer()
82 RCC(rc, finish, jbl_to_node(&jbl, &root, true, pool)); in jbi_consumer()
86 rc = jb_cursor_del(ctx->jbc, cur, id, &jbl); in jbi_consumer()
88 rc = jb_del(ctx->jbc, &jbl, id); in jbi_consumer()
107 rc = jb_cursor_del(ctx->jbc, cur, id, &jbl); in jbi_consumer()
109 rc = jb_del(ctx->jbc, &jbl, id); in jbi_consumer()
Djbi_sorter_consumer.c58 JBL jbl = doc->raw; in _jbi_scan_sorter_apply() local
60 iwrc rc = jbl_to_node(jbl, &root, true, pool); in _jbi_scan_sorter_apply()
64 rc = jb_del(ctx->jbc, jbl, doc->id); in _jbi_scan_sorter_apply()
85 struct _JBL jbl; in _jbi_scan_sorter_do() local
109 RCC(rc, finish, jbl_from_buf_keep_onstack2(&jbl, rp)); in _jbi_scan_sorter_do()
113 .raw = &jbl in _jbi_scan_sorter_do()
118 pool = iwpool_create(jbl.bn.size * 2); in _jbi_scan_sorter_do()
126 RCC(rc, finish, jb_del(ctx->jbc, &jbl, id)); in _jbi_scan_sorter_do()
190 struct _JBL jbl; in jbi_sorter_consumer() local
223 rc = jbl_from_buf_keep_onstack(&jbl, ctx->jblbuf + sizeof(id), vsz); in jbi_sorter_consumer()
[all …]
/third_party/ejdb/src/
Dejdb2.c4 static iwrc _jb_put_new_lw(JBCOLL jbc, JBL jbl, int64_t *id);
452 static iwrc _jb_idx_record_add(JBIDX idx, int64_t id, JBL jbl, JBL jblprev) { in _jb_idx_record_add() argument
468 jbv_found = jbl ? _jbl_at(jbl, idx->ptr, &jbv) : false; in _jb_idx_record_add()
606 IW_INLINE iwrc _jb_idx_record_remove(JBIDX idx, int64_t id, JBL jbl) { in _jb_idx_record_remove() argument
607 return _jb_idx_record_add(idx, id, 0, jbl); in _jb_idx_record_remove()
615 JBL jbl = &jbs; in _jb_idx_fill() local
631 rc = _jb_idx_record_add(idx, llv, jbl, 0); in _jb_idx_fill()
659 rc = _jb_idx_record_add(idx, ctx->id, ctx->jbl, prev); in _jb_put_handler_after()
678 IWRC(_jb_idx_record_remove(idx, ctx->id, ctx->jbl), rc); in _jb_put_handler_after()
742 IW_INLINE iwrc _jb_put_impl(JBCOLL jbc, JBL jbl, int64_t id) { in _jb_put_impl() argument
[all …]
Dejdb2_internal.h139 JBL jbl; member
219 iwrc jb_put(JBCOLL jbc, JBL jbl, int64_t id);
220 iwrc jb_del(JBCOLL jbc, JBL jbl, int64_t id);
221 iwrc jb_cursor_set(JBCOLL jbc, IWKV_cursor cur, int64_t id, JBL jbl);
222 iwrc jb_cursor_del(JBCOLL jbc, IWKV_cursor cur, int64_t id, JBL jbl);
Dejdb2.h469 IW_EXPORT WUR iwrc ejdb_put(EJDB db, const char *coll, JBL jbl, int64_t id);
495 IW_EXPORT WUR iwrc ejdb_put_new(EJDB db, const char *coll, JBL jbl, int64_t *oid);
/third_party/ejdb/src/jbr/
Djbr.c109 JBL jbl = 0; in _on_get() local
113 iwrc rc = ejdb_get(ctx->jbr->db, ctx->cname, ctx->id, &jbl); in _on_get()
122 RCC(rc, finish, jbl_as_json(jbl, jbl_count_json_printer, &nbytes, JBL_PRINT_PRETTY)); in _on_get()
125 RCA(xstr = iwxstr_new2(jbl->bn.size * 2), finish); in _on_get()
126 RCC(rc, finish, jbl_as_json(jbl, jbl_xstr_json_printer, xstr, JBL_PRINT_PRETTY)); in _on_get()
137 jbl_destroy(&jbl); in _on_get()
150 JBL jbl; in _on_post() local
153 iwrc rc = jbl_from_json(&jbl, ctx->req->body); in _on_post()
158 RCC(rc, finish, ejdb_put_new(ctx->jbr->db, ctx->cname, jbl, &id)); in _on_post()
165 jbl_destroy(&jbl); in _on_post()
[all …]
/third_party/ejdb/src/bindings/ejdb2_jni/src/
Dejdb2jni.c316 JBL jbl = 0; in Java_com_softmotions_ejdb2_EJDB2__1put() local
329 rc = jbl_from_json(&jbl, json); in Java_com_softmotions_ejdb2_EJDB2__1put()
333 rc = ejdb_put(db, coll, jbl, id); in Java_com_softmotions_ejdb2_EJDB2__1put()
335 rc = ejdb_put_new(db, coll, jbl, &ret); in Java_com_softmotions_ejdb2_EJDB2__1put()
339 if (jbl) { in Java_com_softmotions_ejdb2_EJDB2__1put()
340 jbl_destroy(&jbl); in Java_com_softmotions_ejdb2_EJDB2__1put()
386 JBL jbl = 0; in Java_com_softmotions_ejdb2_EJDB2__1get() local
401 rc = ejdb_get(db, coll, (int64_t) id, &jbl); in Java_com_softmotions_ejdb2_EJDB2__1get()
404 rc = jbl_as_json(jbl, jbn_json_printer, &pctx, 0); in Java_com_softmotions_ejdb2_EJDB2__1get()
413 if (jbl) { in Java_com_softmotions_ejdb2_EJDB2__1get()
[all …]
/third_party/ejdb/src/bindings/ejdb2_dart/lib/
Dejdb2_dart.c1102 JBL jbl = 0; in ejd_put_wrapped() local
1126 rc = jbl_from_json(&jbl, json); in ejd_put_wrapped()
1130 rc = ejdb_put(db, coll, jbl, id); in ejd_put_wrapped()
1132 rc = ejdb_put_new(db, coll, jbl, &id); in ejd_put_wrapped()
1143 if (jbl) { in ejd_put_wrapped()
1144 jbl_destroy(&jbl); in ejd_put_wrapped()
1350 JBL jbl = 0; in ejd_info_wrapped() local
1367 rc = ejdb_get_meta(db, &jbl); in ejd_info_wrapped()
1370 xstr = iwxstr_new2(jbl_size(jbl) * 2); in ejd_info_wrapped()
1375 rc = jbl_as_json(jbl, jbl_xstr_json_printer, xstr, 0); in ejd_info_wrapped()
[all …]
/third_party/ejdb/src/jql/
Djql.h100 IW_EXPORT WUR iwrc jql_set_json_jbl(JQL q, const char *placeholder, int index, JBL jbl);
137 IW_EXPORT WUR iwrc jql_matched(JQL q, JBL jbl, bool *out);
163 IW_EXPORT WUR iwrc jql_apply_and_project(JQL q, JBL jbl, JBL_NODE *out, void *exec_ctx, IWPOOL *poo…
Djql.c152 iwrc jql_set_json_jbl(JQL q, const char *placeholder, int index, JBL jbl) { in jql_set_json_jbl() argument
153 IWPOOL *pool = iwpool_create(jbl_size(jbl)); in jql_set_json_jbl()
159 RCC(rc, finish, jbl_to_node(jbl, &n, true, pool)); in jql_set_json_jbl()
1426 iwrc jql_matched(JQL q, JBL jbl, bool *out) { in jql_matched() argument
1428 .bn = &jbl->bn, in jql_matched()
1602 JBL jbl = 0; in _jql_proj_join_matched() local
1671 rc = jb_collection_join_resolver(id, coll, &jbl, exec_ctx); in _jql_proj_join_matched()
1681 RCC(rc, finish, jbl_to_node(jbl, &nn, true, pool)); in _jql_proj_join_matched()
1692 jbl_destroy(&jbl); in _jql_proj_join_matched()
1712 JBL jbl = 0; in _jql_proj_visitor() local
[all …]
/third_party/ejdb/src/bindings/ejdb2_node/
Dejdb2_node.c720 JBL jbl = 0; in jn_put_execute() local
729 work->rc = jbl_from_json(&jbl, wdata->json); in jn_put_execute()
736 work->rc = ejdb_put(jbn->db, wdata->coll, jbl, wdata->id); in jn_put_execute()
739 work->rc = ejdb_put_new(jbn->db, wdata->coll, jbl, &wdata->id); in jn_put_execute()
742 if (jbl) { in jn_put_execute()
743 jbl_destroy(&jbl); in jn_put_execute()
826 JBL jbl; member
831 if (wdata && wdata->jbl) { in jn_get_data_destroy()
832 jbl_destroy(&wdata->jbl); in jn_get_data_destroy()
844 work->rc = ejdb_get(jbn->db, wdata->coll, wdata->id, &wdata->jbl); in jn_get_execute()
[all …]
/third_party/rust/crates/regex/bench/src/data/
D1MB.txt45990 jbl

12