void consolewin_info::add_filter_entry(astring &dest, const char *description, const char *extensions) { // add the description dest.cat(description); dest.catformat(" ("); // add the extensions to the description copy_extension_list(dest, extensions); // add the trailing rparen and '|' character dest.cat(")|"); // now add the extension list itself copy_extension_list(dest, extensions); // append a '|' dest.cat('|'); }