Re: [Doxygen-develop] Algorithm encoding for filename which size is greater than 128 characters
Brought to you by:
dimitri
From: Dimitri V. H. <do...@gm...> - 2011-10-19 18:26:22
|
Hi David, On Oct 19, 2011, at 15:23 , Francois, David wrote: > Hi, > > We need to generate the HTML file name to access the documentation for a given class or file. > > What is the algorithm for encoding the HTML file name (specially for file which the name size is greater than 128 characters)? > Example: classcom_1_1orange_1_1identity_1_1buse_1_1mediation_1_1generic_1_1applicatif_1_1transformer_1_1b1c9ae228053eafb0aa0fdc07c2b5fe82.html > See function convertNameToFile() in src/utils.cpp, in particular the "long names" case. Basically, first a number of characters are escaped (e.g. a ':' becomes '_1'), and when the resulting file name gets longer than 128 characters, an md5 hash is created for this name, and this is then appended to the first 96 characters of the name. Regards, Dimitri |