Home
last modified time | relevance | path

Searched refs:mg_match_prefix (Results 1 – 17 of 17) sorted by relevance

/dports/finance/moneymanagerex/moneymanagerex-1.2.7/3rd/mongoose/examples/
H A Dunit_test.c169 ASSERT(mg_match_prefix("/api", 4, "/api") == 4); in test_match_prefix()
170 ASSERT(mg_match_prefix("/a/", 3, "/a/b/c") == 3); in test_match_prefix()
171 ASSERT(mg_match_prefix("/a/", 3, "/ab/c") == -1); in test_match_prefix()
172 ASSERT(mg_match_prefix("/*/", 3, "/ab/c") == 4); in test_match_prefix()
173 ASSERT(mg_match_prefix("**", 2, "/a/b/c") == 6); in test_match_prefix()
174 ASSERT(mg_match_prefix("/*", 2, "/a/b/c") == 2); in test_match_prefix()
186 ASSERT(mg_match_prefix("$", 1, "") == 0); in test_match_prefix()
187 ASSERT(mg_match_prefix("$", 1, "x") == -1); in test_match_prefix()
188 ASSERT(mg_match_prefix("*$", 2, "x") == 1); in test_match_prefix()
189 ASSERT(mg_match_prefix("/$", 2, "/") == 1); in test_match_prefix()
[all …]
/dports/www/mongoose/mongoose-632b3a3/test/
H A Dunit_test.c169 ASSERT(mg_match_prefix("/api", 4, "/api") == 4); in test_match_prefix()
170 ASSERT(mg_match_prefix("/a/", 3, "/a/b/c") == 3); in test_match_prefix()
171 ASSERT(mg_match_prefix("/a/", 3, "/ab/c") == -1); in test_match_prefix()
172 ASSERT(mg_match_prefix("/*/", 3, "/ab/c") == 4); in test_match_prefix()
173 ASSERT(mg_match_prefix("**", 2, "/a/b/c") == 6); in test_match_prefix()
174 ASSERT(mg_match_prefix("/*", 2, "/a/b/c") == 2); in test_match_prefix()
186 ASSERT(mg_match_prefix("$", 1, "") == 0); in test_match_prefix()
187 ASSERT(mg_match_prefix("$", 1, "x") == -1); in test_match_prefix()
188 ASSERT(mg_match_prefix("*$", 2, "x") == 1); in test_match_prefix()
189 ASSERT(mg_match_prefix("/$", 2, "/") == 1); in test_match_prefix()
[all …]
/dports/finance/moneymanagerex/moneymanagerex-1.2.7/3rd/mongoose/
H A Dmongoose.c2150 int mg_match_prefix(const char *pattern, int pattern_len, const char *str) { in mg_match_prefix() function
2155 res = mg_match_prefix(pattern, or_str - pattern, str); in mg_match_prefix()
2156 return res > 0 ? res : mg_match_prefix(or_str + 1, in mg_match_prefix()
2177 res = mg_match_prefix(pattern + i, pattern_len - i, str + j + len); in mg_match_prefix()
2225 return mg_match_prefix(pw_pattern, strlen(pw_pattern), path) > 0 || in must_hide_file()
2226 (pattern != NULL && mg_match_prefix(pattern, strlen(pattern), path) > 0); in must_hide_file()
2265 if ((match_len = mg_match_prefix(a.ptr, a.len, uri)) > 0) { in convert_uri_to_file_name()
2278 if (mg_match_prefix(cgi_pat, strlen(cgi_pat), buf) > 0 && in convert_uri_to_file_name()
3787 if (mg_match_prefix(opts[SSI_PATTERN], strlen(opts[SSI_PATTERN]), in do_ssi_include()
3989 } else if (mg_match_prefix(cgi_pat, strlen(cgi_pat), path) > 0) { in open_local_endpoint()
[all …]
/dports/games/flightgear/flightgear-2020.3.11/3rdparty/mongoose/
H A Dmongoose.c2467 int mg_match_prefix(const char *pattern, int pattern_len, const char *str) { in mg_match_prefix() function
2472 res = mg_match_prefix(pattern, or_str - pattern, str); in mg_match_prefix()
2473 return res > 0 ? res : mg_match_prefix(or_str + 1, in mg_match_prefix()
2494 res = mg_match_prefix(pattern + i, pattern_len - i, str + j + len); in mg_match_prefix()
2542 return mg_match_prefix(pw_pattern, strlen(pw_pattern), path) > 0 || in must_hide_file()
2543 (pattern != NULL && mg_match_prefix(pattern, strlen(pattern), path) > 0); in must_hide_file()
2582 if ((match_len = mg_match_prefix(a.ptr, a.len, uri)) > 0) { in convert_uri_to_file_name()
2595 if (mg_match_prefix(cgi_pat, strlen(cgi_pat), buf) > 0 && in convert_uri_to_file_name()
4153 if (mg_match_prefix(opts[SSI_PATTERN], strlen(opts[SSI_PATTERN]), in do_ssi_include()
4407 } else if (mg_match_prefix(cgi_pat, strlen(cgi_pat), path) > 0) { in mg_send_file_internal()
[all …]
/dports/net/boinc-client/boinc-client_release-7.8-7.8.6/samples/gfx_html/
H A Dmongoose.cpp2486 int mg_match_prefix(const char *pattern, int pattern_len, const char *str) { in mg_match_prefix() function
2491 res = mg_match_prefix(pattern, or_str - pattern, str); in mg_match_prefix()
2492 return res > 0 ? res : mg_match_prefix(or_str + 1, in mg_match_prefix()
2513 res = mg_match_prefix(pattern + i, pattern_len - i, str + j + len); in mg_match_prefix()
2561 return mg_match_prefix(pw_pattern, strlen(pw_pattern), path) > 0 || in must_hide_file()
2562 (pattern != NULL && mg_match_prefix(pattern, strlen(pattern), path) > 0); in must_hide_file()
2601 if ((match_len = mg_match_prefix(a.ptr, a.len, uri)) > 0) { in convert_uri_to_file_name()
2614 if (mg_match_prefix(cgi_pat, strlen(cgi_pat), buf) > 0 && in convert_uri_to_file_name()
4190 if (mg_match_prefix(opts[SSI_PATTERN], strlen(opts[SSI_PATTERN]), in do_ssi_include()
4444 } else if (mg_match_prefix(cgi_pat, strlen(cgi_pat), path) > 0) { in mg_send_file_internal()
[all …]
/dports/www/mongoose/mongoose-632b3a3/
H A Dmongoose.c2453 int mg_match_prefix(const char *pattern, int pattern_len, const char *str) { in mg_match_prefix() function
2458 res = mg_match_prefix(pattern, or_str - pattern, str); in mg_match_prefix()
2459 return res > 0 ? res : mg_match_prefix(or_str + 1, in mg_match_prefix()
2480 res = mg_match_prefix(pattern + i, pattern_len - i, str + j + len); in mg_match_prefix()
2528 return mg_match_prefix(pw_pattern, strlen(pw_pattern), path) > 0 || in must_hide_file()
2529 (pattern != NULL && mg_match_prefix(pattern, strlen(pattern), path) > 0); in must_hide_file()
2568 if ((match_len = mg_match_prefix(a.ptr, a.len, uri)) > 0) { in convert_uri_to_file_name()
2581 if (mg_match_prefix(cgi_pat, strlen(cgi_pat), buf) > 0 && in convert_uri_to_file_name()
4139 if (mg_match_prefix(opts[SSI_PATTERN], strlen(opts[SSI_PATTERN]), in do_ssi_include()
4393 } else if (mg_match_prefix(cgi_pat, strlen(cgi_pat), path) > 0) { in mg_send_file_internal()
[all …]
/dports/net-p2p/eiskaltdcpp-cli/eiskaltdcpp-2.2.10/json/jsonrpc-cpp/
H A Dmongoose.c2577 int mg_match_prefix(const char *pattern, ssize_t pattern_len, const char *str) { in mg_match_prefix() function
2582 res = mg_match_prefix(pattern, or_str - pattern, str); in mg_match_prefix()
2583 return res > 0 ? res : mg_match_prefix(or_str + 1, in mg_match_prefix()
2604 res = mg_match_prefix(pattern + i, pattern_len - i, str + j + len); in mg_match_prefix()
2658 return mg_match_prefix(pw_pattern, strlen(pw_pattern), path) > 0 || in must_hide_file()
2659 (pattern != NULL && mg_match_prefix(pattern, strlen(pattern), path) > 0); in must_hide_file()
2703 if ((match_len = mg_match_prefix(a.ptr, a.len, uri)) > 0) { in convert_uri_to_file_name()
2716 if (mg_match_prefix(cgi_pat, strlen(cgi_pat), buf) > 0 && in convert_uri_to_file_name()
4306 if (mg_match_prefix(opts[SSI_PATTERN], strlen(opts[SSI_PATTERN]), in do_ssi_include()
4560 } else if (mg_match_prefix(cgi_pat, strlen(cgi_pat), path) > 0) { in mg_send_file_internal()
[all …]
/dports/net-p2p/eiskaltdcpp-gtk/eiskaltdcpp-2.2.10/json/jsonrpc-cpp/
H A Dmongoose.c2577 int mg_match_prefix(const char *pattern, ssize_t pattern_len, const char *str) { in mg_match_prefix() function
2582 res = mg_match_prefix(pattern, or_str - pattern, str); in mg_match_prefix()
2583 return res > 0 ? res : mg_match_prefix(or_str + 1, in mg_match_prefix()
2604 res = mg_match_prefix(pattern + i, pattern_len - i, str + j + len); in mg_match_prefix()
2658 return mg_match_prefix(pw_pattern, strlen(pw_pattern), path) > 0 || in must_hide_file()
2659 (pattern != NULL && mg_match_prefix(pattern, strlen(pattern), path) > 0); in must_hide_file()
2703 if ((match_len = mg_match_prefix(a.ptr, a.len, uri)) > 0) { in convert_uri_to_file_name()
2716 if (mg_match_prefix(cgi_pat, strlen(cgi_pat), buf) > 0 && in convert_uri_to_file_name()
4306 if (mg_match_prefix(opts[SSI_PATTERN], strlen(opts[SSI_PATTERN]), in do_ssi_include()
4560 } else if (mg_match_prefix(cgi_pat, strlen(cgi_pat), path) > 0) { in mg_send_file_internal()
[all …]
/dports/net-p2p/eiskaltdcpp-lib/eiskaltdcpp-2.2.10/json/jsonrpc-cpp/
H A Dmongoose.c2577 int mg_match_prefix(const char *pattern, ssize_t pattern_len, const char *str) { in mg_match_prefix() function
2582 res = mg_match_prefix(pattern, or_str - pattern, str); in mg_match_prefix()
2583 return res > 0 ? res : mg_match_prefix(or_str + 1, in mg_match_prefix()
2604 res = mg_match_prefix(pattern + i, pattern_len - i, str + j + len); in mg_match_prefix()
2658 return mg_match_prefix(pw_pattern, strlen(pw_pattern), path) > 0 || in must_hide_file()
2659 (pattern != NULL && mg_match_prefix(pattern, strlen(pattern), path) > 0); in must_hide_file()
2703 if ((match_len = mg_match_prefix(a.ptr, a.len, uri)) > 0) { in convert_uri_to_file_name()
2716 if (mg_match_prefix(cgi_pat, strlen(cgi_pat), buf) > 0 && in convert_uri_to_file_name()
4306 if (mg_match_prefix(opts[SSI_PATTERN], strlen(opts[SSI_PATTERN]), in do_ssi_include()
4560 } else if (mg_match_prefix(cgi_pat, strlen(cgi_pat), path) > 0) { in mg_send_file_internal()
[all …]
/dports/net-p2p/eiskaltdcpp-daemon/eiskaltdcpp-2.2.10/json/jsonrpc-cpp/
H A Dmongoose.c2577 int mg_match_prefix(const char *pattern, ssize_t pattern_len, const char *str) { in mg_match_prefix() function
2582 res = mg_match_prefix(pattern, or_str - pattern, str); in mg_match_prefix()
2583 return res > 0 ? res : mg_match_prefix(or_str + 1, in mg_match_prefix()
2604 res = mg_match_prefix(pattern + i, pattern_len - i, str + j + len); in mg_match_prefix()
2658 return mg_match_prefix(pw_pattern, strlen(pw_pattern), path) > 0 || in must_hide_file()
2659 (pattern != NULL && mg_match_prefix(pattern, strlen(pattern), path) > 0); in must_hide_file()
2703 if ((match_len = mg_match_prefix(a.ptr, a.len, uri)) > 0) { in convert_uri_to_file_name()
2716 if (mg_match_prefix(cgi_pat, strlen(cgi_pat), buf) > 0 && in convert_uri_to_file_name()
4306 if (mg_match_prefix(opts[SSI_PATTERN], strlen(opts[SSI_PATTERN]), in do_ssi_include()
4560 } else if (mg_match_prefix(cgi_pat, strlen(cgi_pat), path) > 0) { in mg_send_file_internal()
[all …]
/dports/net-p2p/eiskaltdcpp-data/eiskaltdcpp-2.2.10/json/jsonrpc-cpp/
H A Dmongoose.c2577 int mg_match_prefix(const char *pattern, ssize_t pattern_len, const char *str) { in mg_match_prefix() function
2582 res = mg_match_prefix(pattern, or_str - pattern, str); in mg_match_prefix()
2583 return res > 0 ? res : mg_match_prefix(or_str + 1, in mg_match_prefix()
2604 res = mg_match_prefix(pattern + i, pattern_len - i, str + j + len); in mg_match_prefix()
2658 return mg_match_prefix(pw_pattern, strlen(pw_pattern), path) > 0 || in must_hide_file()
2659 (pattern != NULL && mg_match_prefix(pattern, strlen(pattern), path) > 0); in must_hide_file()
2703 if ((match_len = mg_match_prefix(a.ptr, a.len, uri)) > 0) { in convert_uri_to_file_name()
2716 if (mg_match_prefix(cgi_pat, strlen(cgi_pat), buf) > 0 && in convert_uri_to_file_name()
4306 if (mg_match_prefix(opts[SSI_PATTERN], strlen(opts[SSI_PATTERN]), in do_ssi_include()
4560 } else if (mg_match_prefix(cgi_pat, strlen(cgi_pat), path) > 0) { in mg_send_file_internal()
[all …]
/dports/audio/ympd/ympd-1.3.0/src/
H A Dmongoose.c2564 int mg_match_prefix(const char *pattern, ssize_t pattern_len, const char *str) {
2569 res = mg_match_prefix(pattern, or_str - pattern, str);
2570 return res > 0 ? res : mg_match_prefix(or_str + 1,
2591 res = mg_match_prefix(pattern + i, pattern_len - i, str + j + len);
2645 return mg_match_prefix(pw_pattern, strlen(pw_pattern), path) > 0 ||
2646 (pattern != NULL && mg_match_prefix(pattern, strlen(pattern), path) > 0);
2690 if ((match_len = mg_match_prefix(a.ptr, a.len, uri)) > 0) {
2703 if (mg_match_prefix(cgi_pat, strlen(cgi_pat), buf) > 0 &&
4289 if (mg_match_prefix(opts[SSI_PATTERN], strlen(opts[SSI_PATTERN]),
4543 } else if (mg_match_prefix(cgi_pat, strlen(cgi_pat), path) > 0) {
[all …]
/dports/www/ot-recorder/recorder-0.8.4/
H A Dmongoose.c2621 int mg_match_prefix(const char *pattern, ssize_t pattern_len, const char *str) { in mg_match_prefix() function
2626 res = mg_match_prefix(pattern, or_str - pattern, str); in mg_match_prefix()
2627 return res > 0 ? res : mg_match_prefix(or_str + 1, in mg_match_prefix()
2648 res = mg_match_prefix(pattern + i, pattern_len - i, str + j + len); in mg_match_prefix()
2702 return mg_match_prefix(pw_pattern, strlen(pw_pattern), path) > 0 || in must_hide_file()
2703 (pattern != NULL && mg_match_prefix(pattern, strlen(pattern), path) > 0); in must_hide_file()
2748 if ((match_len = mg_match_prefix(a.ptr, a.len, uri)) > 0) { in convert_uri_to_file_name()
2761 if (mg_match_prefix(cgi_pat, strlen(cgi_pat), buf) > 0 && in convert_uri_to_file_name()
4383 if (mg_match_prefix(opts[SSI_PATTERN], strlen(opts[SSI_PATTERN]), in do_ssi_include()
4637 } else if (mg_match_prefix(cgi_pat, strlen(cgi_pat), path) > 0) { in mg_send_file_internal()
[all …]
/dports/multimedia/smplayer/smplayer-21.10.0/webserver/
H A Dmongoose.c615 mg_match_prefix(s_filter_pattern, s_filter_pattern_len, func) == 0 && in cs_log_print_prefix()
616 mg_match_prefix(s_filter_pattern, s_filter_pattern_len, filename) == 0) { in cs_log_print_prefix()
2139 size_t mg_match_prefix(const char *, int, const char *) WEAK;
2140 size_t mg_match_prefix(const char *pattern, int pattern_len, const char *str) { in mg_match_prefix() function
6884 if (mg_match_prefix(opts->ssi_pattern, strlen(opts->ssi_pattern), path) > 0) {
7136 (p1 != NULL && mg_match_prefix(p1, strlen(p1), path) == strlen(p1)) ||
7137 (p2 != NULL && mg_match_prefix(p2, strlen(p2), path) > 0);
7929 (mg_match_prefix(opts->cgi_file_pattern, strlen(opts->cgi_file_pattern),
9019 if (mg_match_prefix(opts->ssi_pattern, strlen(opts->ssi_pattern), path) >
H A Dmongoose.h2235 size_t mg_match_prefix(const char *pattern, int pattern_len, const char *str);
/dports/comms/rtl-433/rtl_433-21.12/src/
H A Dmongoose.c2356 size_t mg_match_prefix(const char *, int, const char *) WEAK;
2357 size_t mg_match_prefix(const char *pattern, int pattern_len, const char *str) { in mg_match_prefix() function
7407 if (mg_match_prefix(opts->ssi_pattern, strlen(opts->ssi_pattern), path) > 0) {
7659 (p1 != NULL && mg_match_prefix(p1, strlen(p1), path) == strlen(p1)) ||
7660 (p2 != NULL && mg_match_prefix(p2, strlen(p2), path) > 0);
8453 (mg_match_prefix(opts->cgi_file_pattern, strlen(opts->cgi_file_pattern),
9550 if (mg_match_prefix(opts->ssi_pattern, strlen(opts->ssi_pattern), path) >
/dports/comms/rtl-433/rtl_433-21.12/include/
H A Dmongoose.h2748 size_t mg_match_prefix(const char *pattern, int pattern_len, const char *str);