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

Function edit_mode_from_title

src/laybasic/laybasic/layLayoutViewBase.cc:6020–6035  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6018}
6019
6020static bool
6021edit_mode_from_title (const std::string &title)
6022{
6023 std::string s = title;
6024 std::string::size_type tab = s.find ('\t');
6025 if (tab != std::string::npos) {
6026 s = std::string (s, 0, tab);
6027 }
6028 std::vector<std::string> parts = tl::split (s, ":");
6029 for (auto i = parts.begin (); i != parts.end (); ++i) {
6030 if (*i == "edit_mode") {
6031 return true;
6032 }
6033 }
6034 return false;
6035}
6036
6037std::vector<std::string>
6038LayoutViewBase::mode_names () const

Callers 1

mode_namesMethod · 0.85

Calls 5

splitFunction · 0.85
stringFunction · 0.50
findMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected