Home
last modified time | relevance | path

Searched refs:xstr (Results 1 – 25 of 29) sorted by relevance

12

/third_party/iowow/src/utils/
Diwxstr.c22 IWXSTR *xstr = malloc(sizeof(*xstr)); in iwxstr_new2() local
23 if (!xstr) return 0; in iwxstr_new2()
24 xstr->ptr = malloc(siz); in iwxstr_new2()
25 if (!xstr->ptr) { in iwxstr_new2()
26 free(xstr); in iwxstr_new2()
29 xstr->size = 0; in iwxstr_new2()
30 xstr->asize = siz; in iwxstr_new2()
31 xstr->ptr[0] = '\0'; in iwxstr_new2()
32 return xstr; in iwxstr_new2()
39 void iwxstr_destroy(IWXSTR *xstr) { in iwxstr_destroy() argument
[all …]
Diwxstr.h41 IW_EXPORT void iwxstr_destroy(IWXSTR *xstr);
43 IW_EXPORT iwrc iwxstr_cat(IWXSTR *xstr, const void *buf, size_t size);
45 IW_EXPORT iwrc iwxstr_cat2(IWXSTR *xstr, const char *buf);
47 IW_EXPORT iwrc iwxstr_unshift(IWXSTR *xstr, const void *buf, size_t size);
49 IW_EXPORT iwrc iwxstr_printf(IWXSTR *xstr, const char *format, ...);
51 IW_EXPORT void iwxstr_shift(IWXSTR *xstr, size_t shift_size);
53 IW_EXPORT char *iwxstr_ptr(IWXSTR *xstr);
55 IW_EXPORT size_t iwxstr_size(IWXSTR *xstr);
57 IW_EXPORT void iwxstr_clear(IWXSTR *xstr);
/third_party/ejdb/src/jbl/tests/
Djbl_test1.c92 IWXSTR *xstr = iwxstr_new(); in jbl_test1_2() local
93 CU_ASSERT_PTR_NOT_NULL_FATAL(xstr); in jbl_test1_2()
95 rc = jbl_as_json(jbl, jbl_xstr_json_printer, xstr, false); in jbl_test1_2()
98 int res = strcmp(iwxstr_ptr(xstr), in jbl_test1_2()
108 iwxstr_destroy(xstr); in jbl_test1_2()
258 IWXSTR *xstr = iwxstr_new(); in jbl_test1_5() local
259 CU_ASSERT_PTR_NOT_NULL_FATAL(xstr); in jbl_test1_5()
294 rc = jbl_as_json(jbl, jbl_xstr_json_printer, xstr, false); in jbl_test1_5()
297 xstr), in jbl_test1_5()
301 iwxstr_clear(xstr); in jbl_test1_5()
[all …]
/third_party/ejdb/src/tests/
Dejdb_test3.c27 IWXSTR *xstr = iwxstr_new(); in ejdb_test3_1() local
28 CU_ASSERT_PTR_NOT_NULL_FATAL(xstr); in ejdb_test3_1()
60 iwxstr_clear(xstr); in ejdb_test3_1()
61 rc = jbl_as_json(doc->raw, jbl_xstr_json_printer, xstr, 0); in ejdb_test3_1()
63 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":1},\"n\":1}"); in ejdb_test3_1()
79 iwxstr_clear(xstr); in ejdb_test3_1()
80 rc = jbl_as_json(doc->raw, jbl_xstr_json_printer, xstr, 0); in ejdb_test3_1()
83 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":2},\"n\":2}"); in ejdb_test3_1()
85 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":{\"b\":10},\"n\":10}"); in ejdb_test3_1()
97 iwxstr_clear(xstr); in ejdb_test3_1()
[all …]
Dejdb_test2.c67 IWXSTR *xstr; member
84 iwxstr_printf(tc->xstr, "%lld", llv); in ejdb_test2_1_exec_visitor1()
100 IWXSTR *xstr = iwxstr_new(); in ejdb_test2_1() local
101 CU_ASSERT_PTR_NOT_NULL_FATAL(xstr); in ejdb_test2_1()
132 iwxstr_clear(xstr); in ejdb_test2_1()
133 rc = jbl_as_json(doc->raw, jbl_xstr_json_printer, xstr, 0); in ejdb_test2_1()
137 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"a\":\"bar\"}"); in ejdb_test2_1()
140 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"a\":\"gaz\"}"); in ejdb_test2_1()
143 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"a\":\"foo\"}"); in ejdb_test2_1()
146 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"f\":2}"); in ejdb_test2_1()
[all …]
Dejdb_test4.c43 IWXSTR *xstr = iwxstr_new(); in ejdb_test4_1() local
81 iwxstr_clear(xstr); in ejdb_test4_1()
82 rc = jbn_as_json(doc->node, jbl_xstr_json_printer, xstr, 0); in ejdb_test4_1()
107 iwxstr_clear(xstr); in ejdb_test4_1()
108 rc = jbn_as_json(doc->node, jbl_xstr_json_printer, xstr, 0); in ejdb_test4_1()
131 iwxstr_destroy(xstr); in ejdb_test4_1()
Dejdb_test1.c44 IWXSTR *xstr = iwxstr_new(); in ejdb_test1_3() local
45 CU_ASSERT_PTR_NOT_NULL_FATAL(xstr); in ejdb_test1_3()
47 rc = jbl_as_json(jbl, jbl_xstr_json_printer, xstr, 0); in ejdb_test1_3()
49 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "{\"foo\":\"bar\",\"baz\":\"qux\"}"); in ejdb_test1_3()
53 iwxstr_destroy(xstr); in ejdb_test1_3()
/third_party/ejdb/src/jbr/tests/
Djbr_test1.c24 IWXSTR *xstr = op; in curl_write_xstr() local
25 assert(xstr); in curl_write_xstr()
26 iwxstr_cat(xstr, contents, size * nmemb); in curl_write_xstr()
56 IWXSTR *xstr = iwxstr_new(); in jbr_test1_1() local
81 curl_easy_setopt(curl, CURLOPT_WRITEDATA, xstr); in jbr_test1_1()
86 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), "1"); in jbr_test1_1()
90 iwxstr_clear(xstr); in jbr_test1_1()
97 curl_easy_setopt(curl, CURLOPT_WRITEDATA, xstr); in jbr_test1_1()
104 CU_ASSERT_STRING_EQUAL(iwxstr_ptr(xstr), in jbr_test1_1()
111 CU_ASSERT_EQUAL(iwxstr_size(xstr), 17); in jbr_test1_1()
[all …]
/third_party/skia/third_party/externals/freetype/src/base/
Dftsynth.c94 FT_Pos xstr, ystr; in FT_GlyphSlot_Embolden() local
108 xstr = FT_MulFix( face->units_per_EM, in FT_GlyphSlot_Embolden()
110 ystr = xstr; in FT_GlyphSlot_Embolden()
113 FT_Outline_EmboldenXY( &slot->outline, xstr, ystr ); in FT_GlyphSlot_Embolden()
118 xstr &= ~63; in FT_GlyphSlot_Embolden()
119 if ( xstr == 0 ) in FT_GlyphSlot_Embolden()
120 xstr = 1 << 6; in FT_GlyphSlot_Embolden()
139 error = FT_Bitmap_Embolden( library, &slot->bitmap, xstr, ystr ); in FT_GlyphSlot_Embolden()
145 slot->advance.x += xstr; in FT_GlyphSlot_Embolden()
150 slot->metrics.width += xstr; in FT_GlyphSlot_Embolden()
[all …]
Dftbitmap.c316 FT_Int xstr, ystr; in FT_Bitmap_Embolden() local
329 xstr = (FT_Int)FT_PIX_ROUND( xStrength ) >> 6; in FT_Bitmap_Embolden()
332 if ( xstr == 0 && ystr == 0 ) in FT_Bitmap_Embolden()
334 else if ( xstr < 0 || ystr < 0 ) in FT_Bitmap_Embolden()
357 if ( xstr > 8 ) in FT_Bitmap_Embolden()
358 xstr = 8; in FT_Bitmap_Embolden()
362 xstr *= 3; in FT_Bitmap_Embolden()
375 (FT_UInt)xstr, (FT_UInt)ystr ); in FT_Bitmap_Embolden()
404 for ( i = 1; i <= xstr; i++ ) in FT_Bitmap_Embolden()
459 bitmap->width += (FT_UInt)xstr; in FT_Bitmap_Embolden()
/third_party/freetype/src/base/
Dftsynth.c94 FT_Pos xstr, ystr; in FT_GlyphSlot_Embolden() local
108 xstr = FT_MulFix( face->units_per_EM, in FT_GlyphSlot_Embolden()
110 ystr = xstr; in FT_GlyphSlot_Embolden()
113 FT_Outline_EmboldenXY( &slot->outline, xstr, ystr ); in FT_GlyphSlot_Embolden()
118 xstr &= ~63; in FT_GlyphSlot_Embolden()
119 if ( xstr == 0 ) in FT_GlyphSlot_Embolden()
120 xstr = 1 << 6; in FT_GlyphSlot_Embolden()
139 error = FT_Bitmap_Embolden( library, &slot->bitmap, xstr, ystr ); in FT_GlyphSlot_Embolden()
145 slot->advance.x += xstr; in FT_GlyphSlot_Embolden()
150 slot->metrics.width += xstr; in FT_GlyphSlot_Embolden()
[all …]
Dftbitmap.c316 FT_Int xstr, ystr; in FT_Bitmap_Embolden() local
329 xstr = (FT_Int)FT_PIX_ROUND( xStrength ) >> 6; in FT_Bitmap_Embolden()
332 if ( xstr == 0 && ystr == 0 ) in FT_Bitmap_Embolden()
334 else if ( xstr < 0 || ystr < 0 ) in FT_Bitmap_Embolden()
357 if ( xstr > 8 ) in FT_Bitmap_Embolden()
358 xstr = 8; in FT_Bitmap_Embolden()
362 xstr *= 3; in FT_Bitmap_Embolden()
375 (FT_UInt)xstr, (FT_UInt)ystr ); in FT_Bitmap_Embolden()
404 for ( i = 1; i <= xstr; i++ ) in FT_Bitmap_Embolden()
459 bitmap->width += (FT_UInt)xstr; in FT_Bitmap_Embolden()
/third_party/flutter/skia/third_party/externals/freetype/src/base/
Dftsynth.c95 FT_Pos xstr, ystr; in FT_GlyphSlot_Embolden() local
109 xstr = FT_MulFix( face->units_per_EM, in FT_GlyphSlot_Embolden()
111 ystr = xstr; in FT_GlyphSlot_Embolden()
114 FT_Outline_EmboldenXY( &slot->outline, xstr, ystr ); in FT_GlyphSlot_Embolden()
119 xstr &= ~63; in FT_GlyphSlot_Embolden()
120 if ( xstr == 0 ) in FT_GlyphSlot_Embolden()
121 xstr = 1 << 6; in FT_GlyphSlot_Embolden()
140 error = FT_Bitmap_Embolden( library, &slot->bitmap, xstr, ystr ); in FT_GlyphSlot_Embolden()
146 slot->advance.x += xstr; in FT_GlyphSlot_Embolden()
151 slot->metrics.width += xstr; in FT_GlyphSlot_Embolden()
[all …]
Dftbitmap.c317 FT_Int xstr, ystr; in FT_Bitmap_Embolden() local
330 xstr = (FT_Int)FT_PIX_ROUND( xStrength ) >> 6; in FT_Bitmap_Embolden()
333 if ( xstr == 0 && ystr == 0 ) in FT_Bitmap_Embolden()
335 else if ( xstr < 0 || ystr < 0 ) in FT_Bitmap_Embolden()
358 if ( xstr > 8 ) in FT_Bitmap_Embolden()
359 xstr = 8; in FT_Bitmap_Embolden()
363 xstr *= 3; in FT_Bitmap_Embolden()
376 (FT_UInt)xstr, (FT_UInt)ystr ); in FT_Bitmap_Embolden()
405 for ( i = 1; i <= xstr; i++ ) in FT_Bitmap_Embolden()
460 bitmap->width += (FT_UInt)xstr; in FT_Bitmap_Embolden()
/third_party/ejdb/src/jbi/
Djbi_selection.c5 static void _jbi_print_index(struct _JBIDX *idx, IWXSTR *xstr) { in _jbi_print_index() argument
10 iwxstr_cat2(xstr, "UNIQUE"); in _jbi_print_index()
14 iwxstr_cat2(xstr, "|"); in _jbi_print_index()
16 iwxstr_cat2(xstr, "STR"); in _jbi_print_index()
20 iwxstr_cat2(xstr, "|"); in _jbi_print_index()
22 iwxstr_cat2(xstr, "I64"); in _jbi_print_index()
26 iwxstr_cat2(xstr, "|"); in _jbi_print_index()
28 iwxstr_cat2(xstr, "F64"); in _jbi_print_index()
31 iwxstr_cat2(xstr, "|"); in _jbi_print_index()
33 iwxstr_printf(xstr, "%lld ", idx->rnum); in _jbi_print_index()
[all …]
/third_party/ejdb/src/jbr/
Djbr.c409 IWXSTR *xstr = 0; in _jbr_on_get() local
425 xstr = iwxstr_new2(jbl->bn.size * 2); in _jbr_on_get()
426 if (!xstr) { in _jbr_on_get()
430 rc = jbl_as_json(jbl, jbl_xstr_json_printer, xstr, JBL_PRINT_PRETTY); in _jbr_on_get()
435 xstr ? iwxstr_ptr(xstr) : 0, in _jbr_on_get()
436 xstr ? (int) iwxstr_size(xstr) : nbytes); in _jbr_on_get()
442 if (xstr) { in _jbr_on_get()
443 iwxstr_destroy(xstr); in _jbr_on_get()
458 IWXSTR *xstr = iwxstr_new2(jbl->bn.size * 2); in _jbr_on_options() local
459 if (!xstr) { in _jbr_on_options()
[all …]
/third_party/ejdb/src/bindings/ejdb2_jni/src/
Dejdb2jni.c53 IWXSTR *xstr; member
63 IWXSTR *xstr = pctx->xstr; in jbn_json_printer() local
67 iwrc rc = iwxstr_cat(xstr, &ch, 1); in jbn_json_printer()
79 iwrc rc = iwxstr_cat(xstr, data, size); in jbn_json_printer()
83 if (iwxstr_size(xstr) >= pctx->flush_buffer_sz) { in jbn_json_printer()
112 IWXSTR *xstr = pctx->xstr; in jbn_flush_to_stream() local
113 size_t xsz = iwxstr_size(xstr); in jbn_flush_to_stream()
121 (*env)->SetByteArrayRegion(env, arr, 0, xsz, (void*) iwxstr_ptr(xstr)); in jbn_flush_to_stream()
122 iwxstr_clear(xstr); in jbn_flush_to_stream()
132 IWXSTR *xstr = iwxstr_new(); in jbn_init_pctx() local
[all …]
/third_party/boost/libs/wave/test/testwave/testfiles/
Dt_1_013.cpp14 #define xstr(s) str(s) macro
25 /*#include*/ xstr(INCFILE(2).hpp)
/third_party/ejdb/src/bindings/ejdb2_dart/lib/
Dejdb2_dart.c428 IWXSTR *xstr = iwxstr_new(); in ejd_exec_visitor() local
429 if (!xstr) { in ejd_exec_visitor()
433 rc = jbn_as_json(doc->node, jbl_xstr_json_printer, xstr, 0); in ejd_exec_visitor()
435 rc = jbl_as_json(doc->raw, jbl_xstr_json_printer, xstr, 0); in ejd_exec_visitor()
447 rv2.value.as_string = iwxstr_ptr(xstr); in ejd_exec_visitor()
460 iwxstr_destroy(xstr); in ejd_exec_visitor()
1351 IWXSTR *xstr = 0; in ejd_info_wrapped() local
1370 xstr = iwxstr_new2(jbl_size(jbl) * 2); in ejd_info_wrapped()
1371 if (!xstr) { 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/bindings/ejdb2_node/
Dejdb2_node.c854 IWXSTR *xstr = iwxstr_new2(jbl_size(wdata->jbl) * 2); in jn_get_complete() local
855 if (!xstr) { in jn_get_complete()
859 work->rc = jbl_as_json(wdata->jbl, jbl_xstr_json_printer, xstr, 0); in jn_get_complete()
861 JNGO(ns, env, napi_create_string_utf8(env, iwxstr_ptr(xstr), iwxstr_size(xstr), &rv), finish0); in jn_get_complete()
866 if (xstr) { in jn_get_complete()
867 iwxstr_destroy(xstr); in jn_get_complete()
1063 IWXSTR *xstr = iwxstr_new2(jbl_size(wdata->jbl) * 2); in jn_info_complete() local
1064 if (!xstr) { in jn_info_complete()
1068 work->rc = jbl_as_json(wdata->jbl, jbl_xstr_json_printer, xstr, 0); in jn_info_complete()
1070 JNGO(ns, env, napi_create_string_utf8(env, iwxstr_ptr(xstr), iwxstr_size(xstr), &rv), finish0); in jn_info_complete()
[all …]
/third_party/ejdb/src/jql/inc/
Djqpx.c921 IWXSTR *xstr = 0; in _jqp_finish() local
938 xstr = iwxstr_new(); in _jqp_finish()
939 if (!xstr) { in _jqp_finish()
946 iwxstr_clear(xstr); in _jqp_finish()
948 rc = iwxstr_cat(xstr, "/", 1); in _jqp_finish()
950 iwxstr_cat(xstr, on->value, strlen(on->value)); in _jqp_finish()
952 rc = jbl_ptr_alloc_pool(iwxstr_ptr(xstr), &aux->orderby_ptrs[cnt], aux->pool); in _jqp_finish()
961 if (xstr) { in _jqp_finish()
962 iwxstr_destroy(xstr); in _jqp_finish()
1010 IW_INLINE iwrc _iwxstr_cat2(IWXSTR *xstr, const char *buf) { in _iwxstr_cat2() argument
[all …]
/third_party/boost/libs/preprocessor/test/
Dcpp_standard.cpp320 #define xstr(s) str(s)
350 bret += PRINT_MACRO_RESULTS(xstr(INCFILE(2).h),"vers2.h");
369 #undef xstr
/third_party/libexif/contrib/c++/
Dexif_module.cxx144 extract<std::string> xstr(data); in setData() local
145 if(xstr.check()) in setData()
147 std::string s= xstr(); in setData()
/third_party/ejdb/src/jbl/
Djbl.c807 IWXSTR *xstr = op; in jbl_xstr_json_printer() local
808 if (!xstr) { in jbl_xstr_json_printer()
814 iwrc rc = iwxstr_cat(xstr, &ch, 1); in jbl_xstr_json_printer()
826 iwrc rc = iwxstr_cat(xstr, data, size); in jbl_xstr_json_printer()
1104 iwrc jbl_ptr_serialize(JBL_PTR ptr, IWXSTR *xstr) { in jbl_ptr_serialize() argument
1106 iwrc rc = iwxstr_cat(xstr, "/", 1); in jbl_ptr_serialize()
1108 rc = iwxstr_cat(xstr, ptr->n[i], strlen(ptr->n[i])); in jbl_ptr_serialize()
2854 IWXSTR *xstr = iwxstr_new(); in jbl_merge_patch_jbl() local
2855 if (!xstr) { in jbl_merge_patch_jbl()
2858 iwrc rc = jbl_as_json(patch, jbl_xstr_json_printer, xstr, 0); in jbl_merge_patch_jbl()
[all …]
/third_party/gstreamer/gstplugins_good/tests/check/elements/
Drtpred.c31 #define xstr(s) str(s) macro
33 #define GST_RTP_RED_ENC_CAPS_STR "application/x-rtp, payload=" xstr(PT_MEDIA)
34 …http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01, payload=" xstr(PT_MEDIA)

12