| 597 | |
| 598 | |
| 599 | bool strip_quotes( |
| 600 | const string& st, |
| 601 | char * cstr, |
| 602 | const string& errtag) |
| 603 | { |
| 604 | // Could just be past the last one. |
| 605 | if (st.size() == 0) |
| 606 | return false; |
| 607 | |
| 608 | if (st.front() != '\"' || st.back() != '\"') |
| 609 | { |
| 610 | cout << errtag << " not in quotations: '" << st << "'\n"; |
| 611 | return false; |
| 612 | } |
| 613 | strcpy(cstr, st.substr(1, st.size()-2).c_str()); |
| 614 | return true; |
| 615 | } |
| 616 | |
| 617 | |
| 618 | bool strip_quotes( |
no test coverage detected