Home
last modified time | relevance | path

Searched refs:o_strlen (Results 1 – 25 of 30) sorted by relevance

12

/dports/devel/orcania/orcania-2.2.1/test/
H A Dstr_test.c192 ck_assert_int_eq(o_strlen("abcdef"), 6); in START_TEST()
193 ck_assert_int_eq(o_strlen(NULL), 0); in START_TEST()
194 ck_assert_int_eq(o_strlen(""), 0); in START_TEST()
294 ck_assert_int_eq(decoded_size, o_strlen(src)); in START_TEST()
308 ck_assert_int_eq(decoded_size, o_strlen(src)); in START_TEST()
354 ck_assert_int_eq(o_base64_encode((unsigned char *)src, o_strlen(src), NULL, &encoded_size), 1); in START_TEST()
366 ck_assert_int_eq(o_base64_encode((unsigned char *)src1, o_strlen(src1), NULL, &encoded_size), 1); in START_TEST()
368 ck_assert_int_eq(o_base64_encode((unsigned char *)src2, o_strlen(src2), NULL, &encoded_size), 1); in START_TEST()
370 ck_assert_int_eq(o_base64_encode((unsigned char *)src3, o_strlen(src3), NULL, &encoded_size), 1); in START_TEST()
372 ck_assert_int_eq(o_base64_encode((unsigned char *)src4, o_strlen(src4), NULL, &encoded_size), 1); in START_TEST()
[all …]
/dports/www/ulfius/ulfius-2.7.3/test/
H A Du_map.c32 ck_assert_int_eq(u_map_put_binary(&map, "bkey", "value", 0, o_strlen("value")), U_OK); in START_TEST()
33 ck_assert_int_eq(u_map_put_binary(&map, "bkey", NULL, 0, o_strlen("value")), U_OK); in START_TEST()
34 ck_assert_int_eq(u_map_put_binary(&map, NULL, "value", 0, o_strlen("value")), U_ERROR_PARAMS); in START_TEST()
35 ck_assert_int_eq(u_map_put_binary(&map, NULL, NULL, 0, o_strlen("value")), U_ERROR_PARAMS); in START_TEST()
36 ck_assert_int_eq(u_map_put_binary(NULL, "bkey", "value", 0, o_strlen("value")), U_ERROR_PARAMS); in START_TEST()
37 ck_assert_int_eq(u_map_put_binary(&map, "bkey", "new_value", 0, o_strlen("new_value")), U_OK); in START_TEST()
114 ck_assert_int_eq(u_map_put_binary(&map, "key4", "value4", 0, o_strlen("value4")), U_OK); in START_TEST()
119 ck_assert_int_eq(u_map_has_value_binary(&map, "value4", o_strlen("value4")), 1); in START_TEST()
120 ck_assert_int_eq(u_map_has_value_binary(&map, "nope", o_strlen("nope")), 0); in START_TEST()
137 ck_assert_int_eq(u_map_put_binary(&map, "key5", "value5", 0, o_strlen("value5")), U_OK); in START_TEST()
[all …]
H A Dwebsocket.c77 …ssage(websocket_manager, U_WEBSOCKET_OPCODE_TEXT, o_strlen(DEFAULT_MESSAGE), DEFAULT_MESSAGE, (o_s… in websocket_manager_callback_client()
214 *data_len_out = o_strlen(*data_out); in websocket_extension1_message_out_perform()
225 *data_len_out = o_strlen(*data_out); in websocket_extension1_message_in_perform()
236 *data_len_out = o_strlen(*data_out); in websocket_extension2_message_out_perform()
247 *data_len_out = o_strlen(*data_out); in websocket_extension2_message_in_perform()
253 if (o_strlen(MESSAGE_SERVER) == data_len_in) { in websocket_extension3_message_out_perform()
263 if (o_strlen(MESSAGE_SERVER) == data_len_in) { in websocket_extension3_message_in_perform()
273 ck_assert_int_eq(o_strlen(MESSAGE_SERVER), data_len_in); in websocket_extension4_message_out_perform()
282 ck_assert_int_eq(o_strlen(MESSAGE_SERVER), data_len_in); in websocket_extension4_message_in_perform()
331 if (0 == o_strncmp(extension_server, MESSAGE_EXT1, o_strlen(MESSAGE_EXT1))) { in websocket_extension_server_match_ext1()
[all …]
H A Dframework.c285 len = o_strlen(to_return) + o_strlen(line) + 1; in print_map()
287 if (o_strlen(to_return) > 0) { in print_map()
291 to_return = o_malloc((o_strlen(line) + 1)*sizeof(char)); in print_map()
407 return o_strlen(buf); in stream_data()
423 ck_assert_int_eq(o_strncmp((char *)contents, "stream test ", o_strlen("stream test ")), 0); in my_write_body()
424 ck_assert_int_ne(strtol((char *)contents + o_strlen("stream test "), NULL, 10), 0); in my_write_body()
511 ck_assert_int_eq(0, o_strncmp((const char *)response->shared_data, "grut", o_strlen("grut"))); in callback_function_shared_data_1()
636 ck_assert_int_eq(o_strncmp(response.binary_body, "/url", o_strlen("/url")), 0); in START_TEST()
646 ck_assert_int_eq(o_strncmp(response.binary_body, "/url", o_strlen("/url")), 0); in START_TEST()
656 ck_assert_int_eq(o_strncmp(response.binary_body, "/url", o_strlen("/url")), 0); in START_TEST()
[all …]
H A Dcore.c35 #define BINARY_BODY_LEN o_strlen(BINARY_BODY)
207 req1.binary_body_length = o_strlen(BINARY_BODY) + sizeof(char); in START_TEST()
245 ck_assert_int_eq(req1.binary_body_length, o_strlen(BINARY_BODY) + sizeof(char)); in START_TEST()
247 ck_assert_int_eq(req2.binary_body_length, o_strlen(BINARY_BODY) + sizeof(char)); in START_TEST()
284 ck_assert_int_eq(req3->binary_body_length, o_strlen(BINARY_BODY) + sizeof(char)); in START_TEST()
298 ck_assert_int_eq(req1.binary_body_length, o_strlen(STRING_BODY)); in START_TEST()
382 ck_assert_int_eq(req.binary_body_length, o_strlen(BINARY_BODY)); in START_TEST()
397 ck_assert_int_eq(req.binary_body_length, o_strlen(STRING_BODY)); in START_TEST()
468 ck_assert_int_eq(req.binary_body_length, o_strlen(BINARY_BODY)); in START_TEST()
703 ck_assert_int_eq(resp1.binary_body_length, o_strlen(STRING_BODY)); in START_TEST()
[all …]
/dports/www/ulfius/ulfius-2.7.3/example_programs/test_u_map/
H A Dtest_u_map.c35 len = o_strlen(to_return) + o_strlen(line) + 1; in print_map()
37 if (o_strlen(to_return) > 0) { in print_map()
41 to_return = o_malloc((o_strlen(line) + 1)*sizeof(char)); in print_map()
187 …u_map_put_binary(&map, "Makefile", "Replace the first characters", 0, o_strlen("Replace the first … in main()
193 …, "Append at the end of the value", u_map_get_length(&map, "Makefile"), o_strlen("Append at the en… in main()
/dports/www/ulfius/ulfius-2.7.3/example_programs/request_example/
H A Dserver.c37 len = o_strlen(to_return) + o_strlen(line) + 1; in print_map()
40 to_return = o_malloc((o_strlen(line) + 1)*sizeof(char)); in print_map()
62 response->binary_body_length = o_strlen("ok"); in callback()
H A Dclient.c36 len = o_strlen(to_return) + o_strlen(line) + 1; in print_map()
39 to_return = o_malloc((o_strlen(line) + 1)*sizeof(char)); in print_map()
107 U_OPT_BINARY_BODY, string_body, o_strlen(string_body), in main()
119 U_OPT_BINARY_BODY, string_body, o_strlen(string_body), in main()
140 U_OPT_BINARY_BODY, string_body, o_strlen(string_body), in main()
/dports/www/ulfius/ulfius-2.7.3/tools/uwsc/
H A Duwsc.c143 if (o_strlen(message)) { in uwsc_manager_callback()
144 if (0 == o_strncmp(message, "!q", o_strlen("!q"))) { in uwsc_manager_callback()
153 fprintf(stdout, "\b\bSend '%.*s'\n> ", (int)(o_strlen(message)-1), message); in uwsc_manager_callback()
156 …if (ulfius_websocket_send_message(websocket_manager, U_WEBSOCKET_OPCODE_TEXT, o_strlen(message)-1,… in uwsc_manager_callback()
157 …y_log_message(Y_LOG_LEVEL_ERROR, "Error sending message '%.*s'", (int)(o_strlen(message)-1), messa… in uwsc_manager_callback()
168 …} while (o_strncmp(message, "!q", o_strlen("!q")) != 0 && ulfius_websocket_status(websocket_manage… in uwsc_manager_callback()
394 if (!o_strlen(config->extensions)) { in main()
/dports/www/ulfius/ulfius-2.7.3/src/
H A Du_request.c546 if (o_strlen(str_value)) { in ulfius_set_request_properties()
555 if (o_strlen(str_value)) { in ulfius_set_request_properties()
568 if (o_strlen(str_value)) { in ulfius_set_request_properties()
597 if (o_strlen(str_value)) { in ulfius_set_request_properties()
609 if (o_strlen(str_value)) { in ulfius_set_request_properties()
618 if (o_strlen(str_value)) { in ulfius_set_request_properties()
679 if (o_strlen(str_value)) { in ulfius_set_request_properties()
688 if (o_strlen(str_value)) { in ulfius_set_request_properties()
697 if (o_strlen(str_value)) { in ulfius_set_request_properties()
732 request->binary_body_length = o_strlen(string_body); in ulfius_set_string_body_request()
[all …]
H A Dulfius.c81 …} else if (utf8_check(key, o_strlen(key)) == NULL && (value == NULL || utf8_check(value, o_strlen(…
261 response->binary_body_length = o_strlen(ULFIUS_HTTP_ERROR_BODY);
339 …ck(key, o_strlen(key)) != NULL || data == NULL || utf8_check(data, o_strlen(data)) != NULL || (fil…
729 if (o_strlen(extension)) {
799 response_buffer_len = o_strlen(ULFIUS_HTTP_ERROR_BODY);
842 response_buffer_len = o_strlen(ULFIUS_HTTP_ERROR_BODY);
894 response_buffer_len = o_strlen(ULFIUS_HTTP_ERROR_BODY);
932 response_buffer_len = o_strlen(ULFIUS_HTTP_ERROR_BODY);
951 response_buffer_len = o_strlen(ULFIUS_HTTP_ERROR_BODY);
976 response_buffer_len = o_strlen(ULFIUS_HTTP_ERROR_BODY);
[all …]
H A Du_websocket.c947 if (o_strlen(websocket->websocket_manager->extensions)) { in ulfius_websocket_connection_handshake()
1218 key_data.size = o_strlen((const char *)key_data.data); in ulfius_generate_handshake_answer()
1836 if (response != NULL && o_strlen(extension_server) && in ulfius_add_websocket_extension_message_perform()
2067 if (o_strlen(extension_client) > o_strlen(_U_W_EXT_DEFLATE)) { in websocket_extension_server_match_deflate()
2096 if (o_strlen(trimwhitespace(param_value[1]))) { in websocket_extension_server_match_deflate()
2116 } else if (o_strlen(trimwhitespace(parameters[i]))) { in websocket_extension_server_match_deflate()
2375 if (websocket_client_handler != NULL && o_strlen(extension) && in ulfius_add_websocket_client_extension_message_perform()
2467 basic_auth_encoded = o_malloc((o_strlen(basic_auth)*4/3)+1); in ulfius_open_websocket_client_connection()
2568 if (o_strlen(extension_server) > o_strlen(_U_W_EXT_DEFLATE)) { in websocket_extension_client_match_deflate()
2596 if (o_strlen(trimwhitespace(param_value[1]))) { in websocket_extension_client_match_deflate()
[all …]
H A Du_map.c126 return u_map_has_value_binary(u_map, value, o_strlen(value)); in u_map_has_value()
143 return u_map_put_binary(u_map, key, value, 0, o_strlen(value)+1); in u_map_put()
152 if (u_map != NULL && key != NULL && o_strlen(key) > 0) { in u_map_put_binary()
284 return u_map_remove_from_value_binary(u_map, value, o_strlen(value)); in u_map_remove_from_value()
/dports/www/ulfius/ulfius-2.7.3/example_programs/websocket_example/
H A Dwebsocket_client.c46 …if (ulfius_websocket_send_message(websocket_manager, U_WEBSOCKET_OPCODE_TEXT, o_strlen("Message wi… in websocket_manager_callback()
53 …ket_send_fragmented_message(websocket_manager, U_WEBSOCKET_OPCODE_TEXT, o_strlen("Message with fra… in websocket_manager_callback()
67 …if (ulfius_websocket_send_message(websocket_manager, U_WEBSOCKET_OPCODE_BINARY, o_strlen("Message … in websocket_manager_callback()
H A Dwebsocket_server.c176 …if (ulfius_websocket_send_message(websocket_manager, U_WEBSOCKET_OPCODE_TEXT, o_strlen("Message wi… in websocket_manager_callback()
182 …if (o_strncmp(u_map_get(request->map_header, "User-Agent"), U_WEBSOCKET_USER_AGENT, o_strlen(U_WEB… in websocket_manager_callback()
184 …ket_send_fragmented_message(websocket_manager, U_WEBSOCKET_OPCODE_TEXT, o_strlen("Message with fra… in websocket_manager_callback()
198 …if (ulfius_websocket_send_message(websocket_manager, U_WEBSOCKET_OPCODE_BINARY, o_strlen("Message … in websocket_manager_callback()
265 …ulfius_websocket_send_message(websocket_manager, U_WEBSOCKET_OPCODE_TEXT, o_strlen(my_message), my… in websocket_incoming_file_callback()
/dports/www/ulfius/ulfius-2.7.3/example_programs/sheep_counter/
H A Dsheep_counter.c45 len = o_strlen(to_return) + o_strlen(line) + 1; in print_map()
47 if (o_strlen(to_return) > 0) { in print_map()
51 to_return = o_malloc((o_strlen(line) + 1)*sizeof(char)); in print_map()
/dports/devel/orcania/orcania-2.2.1/src/
H A Dorcania.c144 source_len = o_strlen(source); in mstrcatf()
321 for (offset = 0; offset < len && offset < o_strlen(haystack); offset++) { in o_strnchr()
349 …for (offset = o_strlen(haystack)-1; offset>=0 && (o_strlen(haystack) - 1 - offset < len); offset--… in o_strrnchr()
383 n = o_strlen(needle); in strcasestr()
421 size_t o_strlen(const char * s) { in o_strlen() function
531 end = str + o_strlen(str) - 1; in trimwhitespace()
555 end = str + o_strlen(str) - 1; in trimcharacter()
/dports/www/ulfius/ulfius-2.7.3/example_programs/multiple_callbacks_example/
H A Dmultiple_callbacks_example.c67 len = o_strlen(to_return) + o_strlen(line) + 1; in print_map()
69 if (o_strlen(to_return) > 0) { in print_map()
73 to_return = o_malloc((o_strlen(line) + 1)*sizeof(char)); in print_map()
/dports/www/ulfius/ulfius-2.7.3/example_programs/simple_example/
H A Dsimple_example.c60 len = o_strlen(to_return) + o_strlen(line) + 1; in print_map()
62 if (o_strlen(to_return) > 0) { in print_map()
66 to_return = o_malloc((o_strlen(line) + 1)*sizeof(char)); in print_map()
/dports/www/ulfius/ulfius-2.7.3/example_callbacks/static_compressed_inmemory_website/
H A Dstatic_compressed_inmemory_website_callback.c172 …file_requested += o_strlen(((struct _u_compressed_inmemory_website_config *)user_data)->url_prefix… in callback_static_file_uncompressed()
185 …if (file_requested == NULL || o_strlen(file_requested) == 0 || 0 == o_strcmp("/", file_requested))… in callback_static_file_uncompressed()
274 if (config != NULL && o_strlen(mime_type)) { in u_add_mime_types_compressed()
313 file_requested += o_strlen((config->url_prefix)); in callback_static_compressed_inmemory_website()
326 …if (file_requested == NULL || o_strlen(file_requested) == 0 || 0 == o_strcmp("/", file_requested))… in callback_static_compressed_inmemory_website()
/dports/www/ulfius/ulfius-2.7.3/example_callbacks/static_file/
H A Dstatic_file_callback.c144 file_requested += o_strlen(((struct _static_file_config *)user_data)->url_prefix); in callback_static_file()
157 …if (file_requested == NULL || o_strlen(file_requested) == 0 || 0 == o_strcmp("/", file_requested))… in callback_static_file()
/dports/www/ulfius/ulfius-2.7.3/example_callbacks/jwt_profile/
H A Doidc_resource.c62 if (o_strlen(config->oauth_scope)) { in access_token_check_scope()
188 …token_value = u_map_get_case(request->map_header, HEADER_AUTHORIZATION) + o_strlen(HEADER_PREFIX_B… in callback_check_glewlwyd_oidc_access_token()
309 if (!o_strlen(r_jwt_get_claim_str_value(dpop_jwt, "jti"))) { in verify_dpop_proof()
/dports/devel/yder/yder-1.4.14/src/
H A Dyder.c262 if (init_mode == Y_LOG_MODE_FILE && !o_strlen(cur_log_file_path)) { in y_write_log()
355 if (o_strlen(format)) { in y_set_date_format()
/dports/www/ulfius/ulfius-2.7.3/example_callbacks/oauth2_bearer/
H A Dglewlwyd_resource.c61 if (o_strlen(config->oauth_scope)) { in access_token_check_scope()
174 …token_value = u_map_get_case(request->map_header, HEADER_AUTHORIZATION) + o_strlen(HEADER_PREFIX_B… in callback_check_glewlwyd_access_token()
/dports/devel/hoel/hoel-1.4.14/src/
H A Dhoel-pgsql.c103 …pe_name, "int", 3) == 0 || (o_strncmp(cur_type_name+1, "id", 2) == 0 && o_strlen(cur_type_name) ==… in h_connect_pgsql()
156 if (escaped[0] == '\'' && escaped[o_strlen(escaped)-1] == '\'') { in h_escape_string_pgsql()
157 to_return = o_strndup((escaped+1), o_strlen((escaped+1))-1); in h_escape_string_pgsql()

12