Split a C++ qualified namespace in the tuple (top_namespace, rest) starting
searching the separator from pos.
>>> split_namespace('std::chrono::time_point')
('std', 'chrono::time_point')
Definition at line 71 of file _db.py.
73 Split a C++ qualified namespace in the tuple (top_namespace, rest) starting
74 searching the separator from pos.
76 >>> split_namespace('std::chrono::time_point')
77 ('std', 'chrono::time_point')
80 tpos = typename.find(
"<")
81 pos = typename.find(
"::")
84 if pos > 0
and (tpos < 0
or pos < tpos):
86 tail = typename[pos + 2 :]