Is there some code in C::B (the code completion a suppose) that can parse the type of that is returned from the 'whatis' command?
Using regexpr is not robust
In the Code Completion source code. There are two kind of parsers.
One is the general parser which parse all the files in the current workspace, and generate a database.
The other is a local parser which parse the locally context code, to give a tooltip or calltip things, it use many functionality from scintella.
I suggest using the first one. These code were located in:
parserthread.cpp (Note, both files in disk and wxstring in memory can be parsed)
But seems a little complex