- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for HashStr (0.09 sec)
-
src/main/webapp/js/search.js
if (hashIndex >= 0) { hashStr = url.substring(hashIndex); buf.push("&hash="); buf.push(encodeURIComponent(hashStr)); buf.push(hashStr); } }); $result.on("click", "a.favorite", function(e) { var $favorite = $(this), values = $favorite.attr("href").split("#"), actionUrl, docId; if (values.length === 2 && $queryId.length > 0) { docId = values[1];
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Thu Mar 30 05:45:24 UTC 2023 - 7.5K bytes - Viewed (0) -
src/internal/bytealg/bytealg.go
// If MaxLen is not 0, make sure MaxLen >= 4. var MaxLen int // PrimeRK is the prime base used in Rabin-Karp algorithm. const PrimeRK = 16777619 // HashStr returns the hash and the appropriate multiplicative // factor for use in Rabin-Karp algorithm. func HashStr[T string | []byte](sep T) (uint32, uint32) { hash := uint32(0) for i := 0; i < len(sep); i++ { hash = hash*PrimeRK + uint32(sep[i]) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 19 19:51:15 UTC 2024 - 3.1K bytes - Viewed (0)