Assuming you are using linux, you can use nm.
nm --demangle foo.o gives you demarcated names for your characters nm --no-demangle foo.o gives you malformed names for your characters.
You can then compare the output of these two files to match the search name with the demangulated name.
source
share