| 33 | using namespace FDB; |
| 34 | |
| 35 | std::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 | |
| 44 | std::string getLastPart(std::string maybeDottedFieldName) { |
| 45 | size_t pos = maybeDottedFieldName.rfind('.'); |
no outgoing calls
no test coverage detected