/dports/net-im/prosody/prosody-0.11.13/util/ |
H A D | rfc6724.lua | 12 local ip_commonPrefixLength = require"util.ip".commonPrefixLength 14 local function commonPrefixLength(ipA, ipB) function 70 if commonPrefixLength(ipA, dest) > commonPrefixLength(ipB, dest) then 123 if commonPrefixLength(ipA, ipAsource) > commonPrefixLength(ipB, ipBsource) then 125 elseif commonPrefixLength(ipA, ipAsource) < commonPrefixLength(ipB, ipBsource) then
|
H A D | ip.lua | 76 local function commonPrefixLength(ipA, ipB) function 240 commonPrefixLength = commonPrefixLength,
|
/dports/www/mediawiki135/mediawiki-1.35.5/includes/parser/ |
H A D | BlockLevelPass.php | 265 $commonPrefixLength = $this->getCommon( $prefix, $lastPrefix ); 269 while ( $commonPrefixLength < $lastPrefixLength ) { 276 if ( $prefixLength <= $commonPrefixLength && $commonPrefixLength > 0 ) { 277 $output .= $this->nextItem( $prefix[$commonPrefixLength - 1] ); 281 if ( $this->DTopen && $commonPrefixLength > 0 && $prefix[$commonPrefixLength - 1] === ':' ) { 286 if ( $lastPrefix && $prefixLength > $commonPrefixLength ) { 289 while ( $prefixLength > $commonPrefixLength ) { 290 $char = $prefix[$commonPrefixLength]; 301 ++$commonPrefixLength;
|
/dports/www/mediawiki136/mediawiki-1.36.3/includes/parser/ |
H A D | BlockLevelPass.php | 265 $commonPrefixLength = $this->getCommon( $prefix, $lastPrefix ); 269 while ( $commonPrefixLength < $lastPrefixLength ) { 276 if ( $prefixLength <= $commonPrefixLength && $commonPrefixLength > 0 ) { 277 $output .= $this->nextItem( $prefix[$commonPrefixLength - 1] ); 281 if ( $this->DTopen && $commonPrefixLength > 0 && $prefix[$commonPrefixLength - 1] === ':' ) { 286 if ( $lastPrefix && $prefixLength > $commonPrefixLength ) { 289 while ( $prefixLength > $commonPrefixLength ) { 290 $char = $prefix[$commonPrefixLength]; 301 ++$commonPrefixLength;
|
/dports/www/mediawiki137/mediawiki-1.37.1/includes/parser/ |
H A D | BlockLevelPass.php | 265 $commonPrefixLength = $this->getCommon( $prefix, $lastPrefix ); 269 while ( $commonPrefixLength < $lastPrefixLength ) { 276 if ( $prefixLength <= $commonPrefixLength && $commonPrefixLength > 0 ) { 277 $output .= $this->nextItem( $prefix[$commonPrefixLength - 1] ); 281 if ( $this->DTopen && $commonPrefixLength > 0 && $prefix[$commonPrefixLength - 1] === ':' ) { 286 if ( $lastPrefix && $prefixLength > $commonPrefixLength ) { 289 while ( $prefixLength > $commonPrefixLength ) { 290 $char = $prefix[$commonPrefixLength]; 301 ++$commonPrefixLength;
|
/dports/devel/qtcreator/qt-creator-opensource-src-5.0.3/src/plugins/cpptools/ |
H A D | cppfileiterationorder.cpp | 34 int commonPrefixLength, in Entry() argument 38 , commonFilePathPrefixLength(commonPrefixLength) in Entry() 109 static int commonPrefixLength(const QString &filePath1, const QString &filePath2) in commonPrefixLength() function 120 const int filePrefixLength = commonPrefixLength(m_referenceFilePath, filePath); in createEntryFromFilePath() 121 const int projectPartPrefixLength = commonPrefixLength(m_referenceProjectPartId, projectPartId); in createEntryFromFilePath()
|
/dports/www/typo3-9/typo3_src-9.5.31/typo3/sysext/core/Classes/Utility/ |
H A D | PathUtility.php | 80 $commonPrefixLength = strlen($commonPrefix); 84 if (strlen($sourcePath) > $commonPrefixLength) { 85 $resolvedSourcePath = (string)substr($sourcePath, $commonPrefixLength); 87 if (strlen($targetPath) > $commonPrefixLength) { 88 $resolvedTargetPath = (string)substr($targetPath, $commonPrefixLength);
|
/dports/www/typo3-10/typo3_src-10.4.25/typo3/sysext/core/Classes/Utility/ |
H A D | PathUtility.php | 81 $commonPrefixLength = strlen($commonPrefix); 85 if (strlen($sourcePath) > $commonPrefixLength) { 86 $resolvedSourcePath = (string)substr($sourcePath, $commonPrefixLength); 88 if (strlen($targetPath) > $commonPrefixLength) { 89 $resolvedTargetPath = (string)substr($targetPath, $commonPrefixLength);
|
/dports/net-im/prosody/prosody-0.11.13/spec/ |
H A D | util_ip_spec.lua | 7 local commonPrefixLength = ip.commonPrefixLength; 85 …assert.are.equal(commonPrefixLength(ipa, ipb), len, "common prefix length of "..a.." and "..b.." i… 86 …assert.are.equal(commonPrefixLength(ipb, ipa), len, "common prefix length of "..b.." and "..a.." i…
|
/dports/www/typo3-11/typo3_src-11.5.7/typo3/sysext/core/Classes/Utility/ |
H A D | PathUtility.php | 142 $commonPrefixLength = strlen($commonPrefix); 146 if (strlen($sourcePath) > $commonPrefixLength) { 147 $resolvedSourcePath = (string)substr($sourcePath, $commonPrefixLength); 149 if (strlen($targetPath) > $commonPrefixLength) { 150 $resolvedTargetPath = (string)substr($targetPath, $commonPrefixLength);
|
/dports/devel/hs-haskell-language-server/haskell-language-server-1.4.0/_cabal_deps/floskell-0.10.5/src/Floskell/ |
H A D | Imports.hs | 36 commonPrefixLength :: Eq a => [[a]] -> Int 37 commonPrefixLength = go 0 function 83 ImportsGroupGrouped -> groupImports (commonPrefixLength $
|
/dports/security/vault/vault-1.8.2/vendor/github.com/apple/foundationdb/fdbserver/ |
H A D | PrefixTree.h | 30 static inline int commonPrefixLength(uint8_t const* ap, uint8_t const* bp, int cl) { in commonPrefixLength() function 54 static int commonPrefixLength(StringRef a, StringRef b) { in commonPrefixLength() function 55 return commonPrefixLength(a.begin(), b.begin(), std::min(a.size(), b.size())); in commonPrefixLength() 912 …int nextPrevCommon = commonPrefixLength(nextAncestor.begin(), prevAncestor.begin(), std::min(nextA… in build() 918 …int extNext = commonPrefixLength(keyExt, nextAncestor.begin() + nextPrevCommon, std::min(key.size(… in build() 919 …int extPrev = commonPrefixLength(keyExt, prevAncestor.begin() + nextPrevCommon, std::min(key.size(… in build() 946 …splitLen = commonPrefixLength(key.begin(), prevKey.begin(), std::min(key.size(), prevKey.size())) … in build()
|
H A D | CompactMap.cpp | 130 int prefixLen = commonPrefixLength(searchKey.begin()+np, n->keyData(), cl); in lastLessOrEqual() 177 int prefixLen1 = commonPrefixLength(searchKey1.begin() + np1, n1->keyData(), cl1); in lastLessOrEqual2() 191 int prefixLen2 = commonPrefixLength(searchKey2.begin() + np2, n2->keyData(), cl2); in lastLessOrEqual2() 218 int prefixLen1 = commonPrefixLength(searchKey1.begin() + np1, n1->keyData(), cl1); in lastLessOrEqual2() 240 int prefixLen2 = commonPrefixLength(searchKey2.begin() + np2, n2->keyData(), cl2); in lastLessOrEqual2() 286 …int prefixLen = Node::ENABLE_PREFIX ? commonPrefixLength((uint8_t*)&bi.prefix[0], (uint8_t*)&s[0],… 332 …int prefixLen = Node::ENABLE_PREFIX ? commonPrefixLength((uint8_t*)&prefix[0], (uint8_t*)&s[0], st… in build() 423 int common = commonPrefixLength(StringRef(testData[i]), StringRef(testData[i - 1])); in compactMapTests() 624 int p = commonPrefixLength(a.begin(), b.begin(), std::min(a.size(), b.size())); in shortestKeyBetween()
|
/dports/lang/clips/clips_core_source_630/core/ |
H A D | symbol.c | 1439 size_t *commonPrefixLength) in FindSymbolMatches() argument 1449 FALSE,commonPrefixLength)) != NULL) in FindSymbolMatches() 1503 size_t *commonPrefixLength) in GetNextSymbolMatch() argument 1515 if (anywhere && (commonPrefixLength != NULL)) in GetNextSymbolMatch() 1516 *commonPrefixLength = 0; in GetNextSymbolMatch() 1596 if (commonPrefixLength != NULL) in GetNextSymbolMatch() 1599 *commonPrefixLength = strlen(hashPtr->contents); in GetNextSymbolMatch() 1600 else if (prefixLength < *commonPrefixLength) in GetNextSymbolMatch() 1601 *commonPrefixLength = prefixLength; in GetNextSymbolMatch()
|
/dports/devel/scalatest/scalatest-1.6.1/src/main/scala/org/scalatest/ |
H A D | Suite.scala | 2628 val commonPrefixLength = findCommonPrefixLength(s, t) constant 2629 …nSuffixLength = findCommonSuffixLength(s.substring(commonPrefixLength), t.substring(commonPrefixLe… 2630 val prefix = s.substring(0, commonPrefixLength) 2634 val sMiddle = s.substring(commonPrefixLength, sMiddleEnd) 2635 val tMiddle = t.substring(commonPrefixLength, tMiddleEnd) 2637 …val shortPrefix = if (commonPrefixLength > MaxContext) "..." + prefix.substring(prefix.length - Ma…
|
/dports/devel/hyperscan/hyperscan-5.4.0/src/nfagraph/ |
H A D | ng_uncalc_components.cpp | 154 u32 commonPrefixLength(const NGHolder &ga, const ranking_info &a_ranking, in commonPrefixLength() function 242 u32 commonPrefixLength(const NGHolder &ga, const NGHolder &gb) { in commonPrefixLength() function 243 return commonPrefixLength(ga, ranking_info(ga), gb, ranking_info(gb)); in commonPrefixLength() 465 cpl = commonPrefixLength(g_i, states_map[ci], in buildNfaMergeQueue() 544 u32 cpl = commonPrefixLength(ga, gb); in mergeNfaPair()
|
H A D | ng_uncalc_components.h | 52 u32 commonPrefixLength(const NGHolder &ga, const NGHolder &gb);
|
/dports/devel/elf-dissector/elf-dissector-942274185cc89fabf74f5f1efb886ecf210ab2fb/src/lib/elf/ |
H A D | elfhashsection.cpp | 27 int ElfHashSection::commonPrefixLength(const char* s1, const char* s2) in commonPrefixLength() function in ElfHashSection
|
H A D | elfhashsection.h | 45 static int commonPrefixLength(const char *s1, const char *s2);
|
H A D | elfsysvhashsection.cpp | 114 sum += commonPrefixLength(entry1->name(), entry2->name()); in averagePrefixLength()
|
/dports/audio/amarok/amarok-3e11ccdd1417e70486eaaa84d8475182eec44c20/src/dialogs/ |
H A D | TrackOrganizer.cpp | 88 strFolder = strFolder.mid( commonPrefixLength( m_folderPrefix, strFolder ) ); in buildDestination() 149 int TrackOrganizer::commonPrefixLength( const QString &a, const QString &b ) in commonPrefixLength() function in TrackOrganizer
|
H A D | TrackOrganizer.h | 108 static int commonPrefixLength( const QString &a, const QString &b );
|
/dports/misc/cheat/cheat-4.2.2/vendor/github.com/sergi/go-diff/diffmatchpatch/ |
H A D | diff.go | 107 commonlength := commonPrefixLength(text1, text2) 464 return commonPrefixLength([]rune(text1), []rune(text2)) 474 func commonPrefixLength(text1, text2 []rune) int { func 619 prefixLength := commonPrefixLength(l[i:], s[j:]) 1026 commonlength = commonPrefixLength(textInsert, textDelete)
|
/dports/net-mgmt/promscale/promscale-0.6.2/vendor/github.com/sergi/go-diff/diffmatchpatch/ |
H A D | diff.go | 72 commonlength := commonPrefixLength(text1, text2) 426 return commonPrefixLength([]rune(text1), []rune(text2)) 436 func commonPrefixLength(text1, text2 []rune) int { func 600 prefixLength := commonPrefixLength(l[i:], s[j:]) 1025 commonlength = commonPrefixLength(textInsert, textDelete)
|
/dports/net-mgmt/mysqld_exporter/mysqld_exporter-0.12.1/vendor/github.com/smartystreets/assertions/internal/go-diff/diffmatchpatch/ |
H A D | diff.go | 107 commonlength := commonPrefixLength(text1, text2) 464 return commonPrefixLength([]rune(text1), []rune(text2)) 474 func commonPrefixLength(text1, text2 []rune) int { func 619 prefixLength := commonPrefixLength(l[i:], s[j:]) 1026 commonlength = commonPrefixLength(textInsert, textDelete)
|