Re: Algorithm encoding for filename which size is greater than 128 characters
Dimitri Van Heesch <[email protected]>
| Newsgroups | gmane.text.doxygen.devel |
|---|---|
| Message-ID | <[email protected]> |
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 ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Ciosco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev