MCPcopy Create free account
hub / github.com/KLayout/klayout / parse_part

Function parse_part

src/laybasic/laybasic/layParsedLayerSource.cc:761–776  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

759}
760
761static 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
778static std::vector <std::pair <bool, std::string> > parse_list (tl::Extractor &ex)
779{

Callers 1

parse_listFunction · 0.85

Calls 2

testMethod · 0.45

Tested by

no test coverage detected