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 79 of file _db.py.
81 Split a C++ qualified namespace in the tuple (top_namespace, rest) starting 82 searching the separator from pos. 84 >>> split_namespace('std::chrono::time_point') 85 ('std', 'chrono::time_point') 88 tpos = typename.find(
'<')
89 pos = typename.find(
'::')
92 if pos > 0
and (tpos < 0
or pos < tpos):
94 tail = typename[pos + 2:]
def split_namespace(typename)