/dports/devel/py-robotframework/robotframework-3.1.2/src/robot/utils/ |
H A D | robotpath.py | 115 common_len = len(_common_path(base, target)) 117 return target[common_len:] 118 if common_len == len(base_drive) + len(os.sep): 119 common_len -= len(os.sep) 120 dirs_up = os.sep.join([os.pardir] * base[common_len:].count(os.sep)) 121 path = os.path.join(dirs_up, target[common_len + len(os.sep):])
|
/dports/java/java-subversion/subversion-1.14.1/subversion/libsvn_delta/ |
H A D | path_driver.c | 241 size_t common_len; in svn_delta_path_driver_step() local 265 common_len = strlen(common); in svn_delta_path_driver_step() 272 if ((state->last_path) && (strlen(state->last_path) > common_len)) in svn_delta_path_driver_step() 274 const char *rel = state->last_path + (common_len ? (common_len + 1) : 0); in svn_delta_path_driver_step() 286 if (strlen(pdir) > common_len) in svn_delta_path_driver_step() 288 const char *piece = pdir + common_len + 1; in svn_delta_path_driver_step()
|
/dports/devel/py-subversion/subversion-1.14.1/subversion/libsvn_delta/ |
H A D | path_driver.c | 241 size_t common_len; in svn_delta_path_driver_step() local 265 common_len = strlen(common); in svn_delta_path_driver_step() 272 if ((state->last_path) && (strlen(state->last_path) > common_len)) in svn_delta_path_driver_step() 274 const char *rel = state->last_path + (common_len ? (common_len + 1) : 0); in svn_delta_path_driver_step() 286 if (strlen(pdir) > common_len) in svn_delta_path_driver_step() 288 const char *piece = pdir + common_len + 1; in svn_delta_path_driver_step()
|
/dports/security/subversion-gnome-keyring/subversion-1.14.1/subversion/libsvn_delta/ |
H A D | path_driver.c | 241 size_t common_len; in svn_delta_path_driver_step() local 265 common_len = strlen(common); in svn_delta_path_driver_step() 272 if ((state->last_path) && (strlen(state->last_path) > common_len)) in svn_delta_path_driver_step() 274 const char *rel = state->last_path + (common_len ? (common_len + 1) : 0); in svn_delta_path_driver_step() 286 if (strlen(pdir) > common_len) in svn_delta_path_driver_step() 288 const char *piece = pdir + common_len + 1; in svn_delta_path_driver_step()
|
/dports/devel/p5-subversion/subversion-1.14.1/subversion/libsvn_delta/ |
H A D | path_driver.c | 241 size_t common_len; in svn_delta_path_driver_step() local 265 common_len = strlen(common); in svn_delta_path_driver_step() 272 if ((state->last_path) && (strlen(state->last_path) > common_len)) in svn_delta_path_driver_step() 274 const char *rel = state->last_path + (common_len ? (common_len + 1) : 0); in svn_delta_path_driver_step() 286 if (strlen(pdir) > common_len) in svn_delta_path_driver_step() 288 const char *piece = pdir + common_len + 1; in svn_delta_path_driver_step()
|
/dports/graphics/librsvg2-rust/librsvg-2.52.8/vendor/matrixmultiply/src/ |
H A D | kernel.rs | 230 let common_len = Ord::min(a.len(), c.len()); in test_a_kernel() localVariable 231 assert_eq!(&a[..common_len], &c[..common_len]); in test_a_kernel() 258 let common_len = Ord::min(b.len(), c.len()); in test_a_kernel() localVariable 259 assert_eq!(&b[..common_len], &c[..common_len]); in test_a_kernel()
|
/dports/print/lyx/lyx-2.3.4.2/src/support/ |
H A D | os_unix.cpp | 128 docstring::size_type common_len = common_path(p1, p2); in path_prefix_is() local 131 ++common_len; in path_prefix_is() 133 if (common_len != p2_len) in path_prefix_is() 137 if (p1_len < common_len) in path_prefix_is() 140 path = to_utf8(p2 + p1.substr(common_len, in path_prefix_is() 141 p1_len - common_len)); in path_prefix_is()
|
H A D | os_cygwin.cpp | 287 docstring::size_type common_len = common_path(p1, p2); in path_prefix_is() local 290 ++common_len; in path_prefix_is() 292 if (common_len != p2_len) in path_prefix_is() 296 if (p1_len < common_len) in path_prefix_is() 299 path = to_utf8(p2 + p1.substr(common_len, in path_prefix_is() 300 p1_len - common_len)); in path_prefix_is()
|
/dports/lang/gnu-apl/apl-1.8/src/ |
H A D | TabExpansion.cc | 228 const int common_len = compute_common_length(prefix.size(), matches); in expand_help_topics() local 229 if (common_len > prefix.size()) in expand_help_topics() 233 matches[0].resize(common_len); in expand_help_topics() 369 const int common_len = compute_common_length(qxx.size(), matches); in expand_distinguished_name() local 370 if (common_len == qxx.size()) in expand_distinguished_name() 389 user.resize(common_len); in expand_distinguished_name() 661 const int common_len = compute_common_length(prefix_len, matches); in show_alternatives() local 663 if (common_len == prefix_len) in show_alternatives() 683 user.resize(usize + common_len); in show_alternatives()
|
/dports/devel/py-unittest2/unittest2-1.1.0/unittest2/ |
H A D | util.py | 33 common_len = _MAX_LENGTH - \ 35 if common_len > _MIN_COMMON_LEN: 38 prefix = _shorten(prefix, _MIN_BEGIN_LEN, common_len)
|
/dports/dns/p5-DNS-Ldns/ldns-1.8.1/ |
H A D | radix.c | 1110 radix_strlen_t common_len = 0, l1 = 0, l2 = 0; in ldns_radix_array_split() local 1113 assert(common_len < array->len); in ldns_radix_array_split() 1114 assert(common_len < strlen_to_add); in ldns_radix_array_split() 1120 if (array->len - common_len > 1) { in ldns_radix_array_split() 1121 if (!ldns_radix_prefix_remainder(common_len+1, in ldns_radix_array_split() 1127 if (strlen_to_add - common_len > 1) { in ldns_radix_array_split() 1128 if (!ldns_radix_prefix_remainder(common_len+1, in ldns_radix_array_split() 1136 if (common_len > 0) { in ldns_radix_array_split() 1137 common_str = LDNS_XMALLOC(uint8_t, common_len); in ldns_radix_array_split() 1144 memcpy(common_str, str_to_add, common_len); in ldns_radix_array_split() [all …]
|
/dports/dns/py-ldns/ldns-1.8.1/ |
H A D | radix.c | 1110 radix_strlen_t common_len = 0, l1 = 0, l2 = 0; in ldns_radix_array_split() local 1113 assert(common_len < array->len); in ldns_radix_array_split() 1114 assert(common_len < strlen_to_add); in ldns_radix_array_split() 1120 if (array->len - common_len > 1) { in ldns_radix_array_split() 1121 if (!ldns_radix_prefix_remainder(common_len+1, in ldns_radix_array_split() 1127 if (strlen_to_add - common_len > 1) { in ldns_radix_array_split() 1128 if (!ldns_radix_prefix_remainder(common_len+1, in ldns_radix_array_split() 1136 if (common_len > 0) { in ldns_radix_array_split() 1137 common_str = LDNS_XMALLOC(uint8_t, common_len); in ldns_radix_array_split() 1144 memcpy(common_str, str_to_add, common_len); in ldns_radix_array_split() [all …]
|
/dports/dns/ldns/ldns-1.8.1/ |
H A D | radix.c | 1110 radix_strlen_t common_len = 0, l1 = 0, l2 = 0; in ldns_radix_array_split() local 1113 assert(common_len < array->len); in ldns_radix_array_split() 1114 assert(common_len < strlen_to_add); in ldns_radix_array_split() 1120 if (array->len - common_len > 1) { in ldns_radix_array_split() 1121 if (!ldns_radix_prefix_remainder(common_len+1, in ldns_radix_array_split() 1127 if (strlen_to_add - common_len > 1) { in ldns_radix_array_split() 1128 if (!ldns_radix_prefix_remainder(common_len+1, in ldns_radix_array_split() 1136 if (common_len > 0) { in ldns_radix_array_split() 1137 common_str = LDNS_XMALLOC(uint8_t, common_len); in ldns_radix_array_split() 1144 memcpy(common_str, str_to_add, common_len); in ldns_radix_array_split() [all …]
|
/dports/dns/nsd/nsd-4.3.9/ |
H A D | radtree.c | 422 radstrlen_type common_len, s1_len=0, s2_len=0; in radsel_split() local 424 assert(common_len < r->len); in radsel_split() 425 assert(common_len < addlen); in radsel_split() 432 if(r->len-common_len > 1) { in radsel_split() 440 if(addlen-common_len > 1) { in radsel_split() 450 if(common_len > 0) { in radsel_split() 452 common_len*sizeof(uint8_t)); in radsel_split() 459 memcpy(common_str, addstr, common_len); in radsel_split() 477 r->node->pidx = r->str[common_len]-com->offset; in radsel_split() 479 add->pidx = addstr[common_len]-com->offset; in radsel_split() [all …]
|
/dports/dns/knot3-lib/knot-3.1.5/src/libknot/ |
H A D | rdata.h | 92 size_t common_len = (rdata1->len <= rdata2->len) ? rdata1->len : rdata2->len; in knot_rdata_cmp() local 94 int cmp = memcmp(rdata1->data, rdata2->data, common_len); in knot_rdata_cmp()
|
/dports/dns/knot3/knot-3.1.5/src/libknot/ |
H A D | rdata.h | 92 size_t common_len = (rdata1->len <= rdata2->len) ? rdata1->len : rdata2->len; in knot_rdata_cmp() local 94 int cmp = memcmp(rdata1->data, rdata2->data, common_len); in knot_rdata_cmp()
|
/dports/textproc/raptor2/raptor2-2.0.15/src/ |
H A D | raptor_uri.c | 1210 ptrdiff_t common_len = 0; in raptor_uri_path_common_base_length() local 1220 if(strncmp((const char*)first_path + common_len, in raptor_uri_path_common_base_length() 1221 (const char*)second_path + common_len, cur_ptr - prev_ptr)) in raptor_uri_path_common_base_length() 1226 common_len = prev_ptr - first_path; in raptor_uri_path_common_base_length() 1254 size_t common_len, cur_len, final_len, to_dir_len; in raptor_uri_path_make_relative_path() local 1266 cur_ptr = from_path + common_len; in raptor_uri_path_make_relative_path() 1268 cur_len = from_path_len - common_len; in raptor_uri_path_make_relative_path() 1278 cur_ptr = to_path + common_len; in raptor_uri_path_make_relative_path() 1280 cur_len = to_path_len - common_len; in raptor_uri_path_make_relative_path() 1286 to_dir_len = prev_ptr - (to_path + common_len); in raptor_uri_path_make_relative_path() [all …]
|
/dports/textproc/raptor/raptor-1.4.21/src/ |
H A D | raptor_uri.c | 1363 int common_len=0; in raptor_uri_path_common_base_length() local 1372 if(strncmp((const char*)first_path+common_len, in raptor_uri_path_common_base_length() 1373 (const char*)second_path+common_len, cur_ptr-prev_ptr)) in raptor_uri_path_common_base_length() 1378 common_len = prev_ptr - first_path; in raptor_uri_path_common_base_length() 1405 int common_len, cur_len, final_len, up_dirs = 0, to_dir_len = 0; in raptor_uri_path_make_relative_path() local 1416 cur_ptr = from_path + common_len; in raptor_uri_path_make_relative_path() 1418 cur_len = from_path_len - common_len; in raptor_uri_path_make_relative_path() 1428 cur_ptr = to_path + common_len; in raptor_uri_path_make_relative_path() 1430 cur_len = to_path_len - common_len; in raptor_uri_path_make_relative_path() 1436 to_dir_len = prev_ptr - (to_path + common_len); in raptor_uri_path_make_relative_path() [all …]
|
/dports/databases/py-gdbm/Python-3.8.12/Lib/unittest/ |
H A D | util.py | 33 common_len = _MAX_LENGTH - \ 35 if common_len > _MIN_COMMON_LEN: 38 prefix = _shorten(prefix, _MIN_BEGIN_LEN, common_len)
|
/dports/lang/python310/Python-3.10.1/Lib/unittest/ |
H A D | util.py | 33 common_len = _MAX_LENGTH - \ 35 if common_len > _MIN_COMMON_LEN: 38 prefix = _shorten(prefix, _MIN_BEGIN_LEN, common_len)
|
/dports/lang/python37/Python-3.7.12/Lib/unittest/ |
H A D | util.py | 33 common_len = _MAX_LENGTH - \ 35 if common_len > _MIN_COMMON_LEN: 38 prefix = _shorten(prefix, _MIN_BEGIN_LEN, common_len)
|
/dports/lang/python311/Python-3.11.0a3/Lib/unittest/ |
H A D | util.py | 33 common_len = _MAX_LENGTH - \ 35 if common_len > _MIN_COMMON_LEN: 38 prefix = _shorten(prefix, _MIN_BEGIN_LEN, common_len)
|
/dports/lang/python-tools/Python-3.8.12/Lib/unittest/ |
H A D | util.py | 33 common_len = _MAX_LENGTH - \ 35 if common_len > _MIN_COMMON_LEN: 38 prefix = _shorten(prefix, _MIN_BEGIN_LEN, common_len)
|
/dports/lang/python39/Python-3.9.9/Lib/unittest/ |
H A D | util.py | 33 common_len = _MAX_LENGTH - \ 35 if common_len > _MIN_COMMON_LEN: 38 prefix = _shorten(prefix, _MIN_BEGIN_LEN, common_len)
|
/dports/lang/python38/Python-3.8.12/Lib/unittest/ |
H A D | util.py | 33 common_len = _MAX_LENGTH - \ 35 if common_len > _MIN_COMMON_LEN: 38 prefix = _shorten(prefix, _MIN_BEGIN_LEN, common_len)
|