| 42 | } |
| 43 | |
| 44 | std::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 | |
| 53 | Key encodeMaybeDotted(std::string fieldname) { |
| 54 | if (fieldname.empty()) |
no outgoing calls
no test coverage detected