| 35 | } |
| 36 | |
| 37 | void SubstringDetection(char str_1, string &str_2, const string &name_str_1, const string &name_str_2) { |
| 38 | if (str_1 == '\0' || str_2.empty()) { |
| 39 | return; |
| 40 | } |
| 41 | if (str_2.find(str_1) != string::npos) { |
| 42 | throw BinderException("%s must not appear in the %s specification and vice versa", name_str_1, name_str_2); |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | void StringDetection(const string &str_1, const string &str_2, const string &name_str_1, const string &name_str_2) { |
| 47 | if (str_1.empty() || str_2.empty()) { |
no test coverage detected