Debian Code Search FAQ
Q: What kind of keywords can I use in the search field?
Each keyword must be specified as "type:value", without additional spaces.
Keywords are separated from search terms by space, e.g. "printf filetype:c".
Filters file names according to their extension.
To find source code dealing with XMPP written in Perl, you could search for "XMPP filetype:perl".
The currently supported languages are c, c++, perl, python, go, java, ruby, shell, vala.
Searches only within the specified Debian source package.
To find all calls to xcb_create_window which the window manager i3 does, you could search for "xcb_create_window package:i3-wm".
Searches only files that match the given path (using regular expressions).
To find only matches within Debian packaging, use e.g. "systemctl path:debian/".
To find only matches within the libi3 folder of any version of i3-wm, use "i3Font path:i3-wm_.*/libi3/".
Q: Can I use regular expressions?
Why yes! The full syntax is described at RE2:Syntax.
Q: Where is the source code of DCS?
You can find the source at github.com/Debian/dcs
Q: Which Debian distributions are indexed (e.g. testing, sid, experimental)?
Currently, DCS indexes sid only. If you have good arguments for extending or changing this, please let us know. Consider that including multiple versions of the source will lead to more search results from “the same” code.