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

Function name_from_title

src/laybasic/laybasic/layLayoutViewBase.cc:6005–6018  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6003}
6004
6005static std::string
6006name_from_title (const std::string &title)
6007{
6008 std::string s = title;
6009 std::string::size_type tab = s.find ('\t');
6010 if (tab != std::string::npos) {
6011 s = std::string (s, 0, tab);
6012 }
6013 std::string::size_type colon = s.find (':');
6014 if (colon != std::string::npos) {
6015 s = std::string (s, 0, colon);
6016 }
6017 return s;
6018}
6019
6020static bool
6021edit_mode_from_title (const std::string &title)

Callers 3

mode_namesMethod · 0.85
mode_nameMethod · 0.85
switch_modeMethod · 0.85

Calls 2

stringFunction · 0.50
findMethod · 0.45

Tested by

no test coverage detected