Throughout this page references to namespaces(s) are erroneous – please read unit scope name(s) wherever you see namespace(s). Yep, I misunderstood the difference when I first named the program!
Unit2NS is a little tool for Delphi programmers to find the namespace(s) that a unit belongs to.
Since the introduction of namespaces to Delphi I've been struggling to remember which namespaces some units belong to. OK, sometimes the code editor pops up a list of unit names in a namespace, but what I wanted was to type in a unit name and be told what namespace(s) the unit may belong to.
This program does that. When you have found the required namespace you can copy the fully qualified unit name to the clipboard ready for pasting into your code editor. It will also let you examine a namespace to see what units it contains.
You have to teach Unit2NS about what units exist and the namespaces they belong to. The program makes this easy to do by being able to scan directory trees of source code. Unit2NS can remember more than one set of unit-namespace "mappings", which makes it useful for using with different versions of Delphi.
The program is available as either 32 or 64 bit versions.