| 759 | } |
| 760 | |
| 761 | static std::pair <bool, std::string> parse_part (tl::Extractor &ex) |
| 762 | { |
| 763 | bool sel = true; |
| 764 | if (ex.test ("-")) { |
| 765 | sel = false; |
| 766 | } else if (ex.test ("+")) { |
| 767 | sel = true; |
| 768 | } |
| 769 | |
| 770 | std::string nf; |
| 771 | if (ex.try_read_word_or_quoted (nf, "_.$*?[]")) { |
| 772 | return std::make_pair (sel, nf); |
| 773 | } else { |
| 774 | return std::pair <bool, std::string> (); |
| 775 | } |
| 776 | } |
| 777 | |
| 778 | static std::vector <std::pair <bool, std::string> > parse_list (tl::Extractor &ex) |
| 779 | { |
no test coverage detected