MCPcopy Create free account
hub / github.com/FoundationDB/fdb-document-layer / getLastPart

Function getLastPart

src/ExtUtil.actor.cpp:44–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44std::string getLastPart(std::string maybeDottedFieldName) {
45 size_t pos = maybeDottedFieldName.rfind('.');
46 if (pos == std::string::npos) {
47 return "";
48 } else {
49 return maybeDottedFieldName.substr(pos + 1, std::string::npos);
50 }
51}
52
53Key encodeMaybeDotted(std::string fieldname) {
54 if (fieldname.empty())

Callers 4

executeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected