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

Function upOneLevel

src/ExtUtil.actor.cpp:35–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33using namespace FDB;
34
35std::string upOneLevel(std::string maybeDottedFieldName) {
36 size_t pos = maybeDottedFieldName.rfind('.');
37 if (pos == std::string::npos) {
38 return "";
39 } else {
40 return maybeDottedFieldName.substr(0, pos);
41 }
42}
43
44std::string getLastPart(std::string maybeDottedFieldName) {
45 size_t pos = maybeDottedFieldName.rfind('.');

Calls

no outgoing calls

Tested by

no test coverage detected