MCPcopy Create free account
hub / github.com/apache/kvrocks / StringNext

Function StringNext

src/common/string_util.cc:550–558  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

548}
549
550std::string StringNext(std::string s) {
551 for (auto iter = s.rbegin(); iter != s.rend(); ++iter) {
552 if (*iter != char(0xff)) {
553 (*iter)++;
554 break;
555 }
556 }
557 return s;
558}
559
560std::string StringDigest(std::string_view s) {
561 XXH64_hash_t hash = XXH3_64bits(s.data(), s.size());

Callers 7

DestroyGroupMethod · 0.85
ExecuteMethod · 0.85
FlushScriptsMethod · 0.85
GetTotalSizeMethod · 0.85
FlushDBMethod · 0.85
FlushAllMethod · 0.85
FunctionFlushFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected