Return to strings.c CVS log | Up to [cvsweb.bsd.lv] / mandoc |
version 1.15, 2009/02/23 15:34:53 | version 1.16, 2009/02/24 11:43:13 | ||
---|---|---|---|
|
|
||
extern char *strptime(const char *, const char *, struct tm *); | extern char *strptime(const char *, const char *, struct tm *); | ||
#endif | #endif | ||
size_t | |||
mdoc_isescape(const char *p) | |||
{ | |||
size_t c; | |||
if ('\\' != *p++) | |||
return(0); | |||
switch (*p) { | |||
case ('\\'): | |||
/* FALLTHROUGH */ | |||
case ('\''): | |||
/* FALLTHROUGH */ | |||
case ('`'): | |||
/* FALLTHROUGH */ | |||
case ('-'): | |||
/* FALLTHROUGH */ | |||
case (' '): | |||
/* FALLTHROUGH */ | |||
case ('.'): | |||
/* FALLTHROUGH */ | |||
case ('e'): | |||
return(2); | |||
case ('('): | |||
if (0 == *++p) | |||
return(0); | |||
if (0 == *++p) | |||
return(0); | |||
return(4); | |||
case ('['): | |||
break; | |||
default: | |||
return(0); | |||
} | |||
for (c = 3, p++; *p && ']' != *p; p++, c++) | |||
if (isspace(*p)) | |||
break; | |||
return(*p == ']' ? c : 0); | |||
} | |||
int | int | ||
mdoc_iscdelim(char p) | mdoc_iscdelim(char p) | ||
{ | { |