59 if (ext.at(0)<
'0' || ext.at(0)>
'9')
113 if (!d.exists() && !d.mkdir(manOutput))
115 err(
"Could not create output directory %s\n",manOutput.data());
118 d.setPath(manOutput +
"/" +
getSubdir());
119 if (!d.exists() && !d.mkdir(manOutput +
"/" +
getSubdir()))
121 err(
"Could not create output directory %s/%s\n",manOutput.data(),
getSubdir().data());
130 if (name==0)
return "noname";
160 if (fileName.right(manExtension.length())!=manExtension)
162 fileName+=manExtension;
190 t <<
"\" \\\" -*- nroff -*-" <<
endl;
191 t <<
".ad l" <<
endl;
193 t <<
".SH NAME" <<
endl;
194 t << name <<
" \\- ";
240 const char *,
const char *)
245 const char *,
const char *name)
251 const char *,
const char *name,
280 t <<
"\"\n.PP " <<
endl;
309 case '-':
t <<
"\\-";
break;
310 case '.':
t <<
"\\&.";
break;
311 case '\\':
t <<
"\\\\";
col++;
break;
312 case '\n':
t <<
"\n";
col=0;
break;
314 default:
t << c;
col++;
break;
330 int spacesToNextTabStop;
336 case '.':
t <<
"\\&.";
break;
337 case '\t': spacesToNextTabStop =
340 col+=spacesToNextTabStop;
343 case '\\':
t <<
"\\";
col++;
break;
359 case '\\':
t <<
"\\\\";
break;
361 default:
t << c;
break;
430 const char *,
const char *name,
441 QCString baseName = name;
442 int i=baseName.findRev(
"::");
443 if (i!=-1) baseName=baseName.right(baseName.length()-i-2);
450 QFile linkfile( fileName );
452 if ( !linkfile.open( IO_ReadOnly ) )
454 if ( linkfile.open( IO_WriteOnly ) )
500 t <<
".SH SYNOPSIS\n.br\n.PP\n";
522 t <<
".in +1c" <<
endl;
534 t <<
"\" 1c" <<
endl;
558 t <<
"\n.ti -1c\n.RI \"";
585 t <<
"\n.PP\n.RI \"\\fB";
590 t <<
"\\fP\"\n.br\n";
625 default: ASSERT(0);
break;
641 default: ASSERT(0);
break;
654 const char *,
const char *title)
761 t <<
"\\fP\"" <<
endl <<
".in +1c" <<
endl;
780 t <<
":\\fP" <<
endl;
781 t <<
".RS 4" <<
endl;
829 t <<
"\\fC [" << l <<
"]\\fP";
830 if (!isLast)
t <<
", ";