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 66 of file _db.py.
68 Split a C++ qualified namespace in the tuple (top_namespace, rest) starting
69 searching the separator from pos.
71 >>> split_namespace('std::chrono::time_point')
72 ('std', 'chrono::time_point')
75 tpos = typename.find(
"<")
76 pos = typename.find(
"::")
79 if pos > 0
and (tpos < 0
or pos < tpos):
81 tail = typename[pos + 2 :]