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 80 of file _db.py.
82 Split a C++ qualified namespace in the tuple (top_namespace, rest) starting
83 searching the separator from pos.
85 >>> split_namespace('std::chrono::time_point')
86 ('std', 'chrono::time_point')
89 tpos = typename.find(
"<")
90 pos = typename.find(
"::")
93 if pos > 0
and (tpos < 0
or pos < tpos):
95 tail = typename[pos + 2 :]