Name can be treated as compound if it contains dot (.) in the middle. */
| 44 | /** Name can be treated as compound if it contains dot (.) in the middle. |
| 45 | */ |
| 46 | std::pair<std::string, std::string> splitName(const std::string & name) |
| 47 | { |
| 48 | auto idx = name.find_first_of('.'); |
| 49 | if (idx == std::string::npos || idx == 0 || idx + 1 == name.size()) |
| 50 | return {name, {}}; |
| 51 | |
| 52 | return {name.substr(0, idx), name.substr(idx + 1)}; |
| 53 | } |
| 54 | |
| 55 | |
| 56 | std::string extractTableName(const std::string & nested_name) |
no test coverage detected