Dimitri van Heesch <doxy...@gmail.com> schrieb am [Sa, 10.01.2015 19:17]: > > On 10 Jan 2015, at 13:56 , Uwe Scholz <u.schol...@gmx.de> wrote: > > It is not possible to find "s$foo_bar" in the HTML-search field from the > > doxygen HTML pages. Modifying "find html/ -type f" to "find html/ > > -maxdepth 1 -type f" in step 5 makes it possible that all these > > s$-functions can be found by typing "__sdollar__...". > > > > So, there seems to be a problem with the doxygen search-engine and > > function names with dollar signs. > > This is a bit more tricky indeed. > > In the html/search directory there are a number of .js files. > You need to replace '_5f_5fsdollar_5f_5f' with 's_24' there, > and also make sure the searchdata.js file has the letter 's' in > indexSectionsWithContent for > the rows matching 'all' and 'functions', i.e. >
I did this with the following scripts: for II in $(find html/ -type f); do sed 's/__sdollar__/s\$/g' -i $II; done for II in $(find html/search/*.js -type f); do sed 's/_5f_5fsdollar_5f_5f/s_24/g' -i $II; done After this, indexSectionsWithContent in search.js looks still like this: var indexSectionsWithContent = { 0: "_f", 1: "f", 2: "_" }; and replacing "_" with "s" makes that one can find "s$foo_bar" in the html search field. Great! Unfortunately, this is not working when there is another function definition in foo.c, starting with "s" already: void s$foo_bar(){} void search(){} After executing doxygen and the two sed scripts from above, indexSectionsWithContent in search.js still looks like this: var indexSectionsWithContent = { 0: "_fs", 1: "f", 2: "_s" }; and typing "s" in the html search field yields only the function "search" in foo.c. Typing "_" yields nothing. Removing "_" in search.js even shows no single search result when typing one of "s", "_" or "f". I don't really get what is the cause for this behaviour and how to find "s$foo_bar", when there already is another function beginning with "s" in my C file. :-) But up to now: Thank you very much! I think I can also live with searching for "__sdollar__ in the html search field. Regards Uwe ------------------------------------------------------------------------------ Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ Doxygen-users mailing list Doxygen-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/doxygen-users