[BACK]Return to strcmp.in CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc / regress / roff / cond

File: [cvsweb.bsd.lv] / mandoc / regress / roff / cond / strcmp.in (download)

Revision 1.1, Wed Feb 8 03:03:19 2017 UTC (7 years, 4 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_1, VERSION_1_13

Finally port the OpenBSD regression suite.
Both kristaps@ and wiz@ repeated asked for this,
literally for years.

.TH COND-STRCMP 1 "March 8, 2014" OpenBSD
.SH NAME
cond-strcmp \- roff conditions involving string comparison
.SH DESCRIPTION
empty:
.ie """ (t)
.el (f)
one char:
.ie xaxax (t)
.el (f)
three chars:
.ie xabcxabcx (t)
.el (f)
.br
mismatch:
.ie xabcxabdx (t)
.el (f)
longer:
.ie xabcxabcdx (t)
.el (f)
shorter:
.ie xabcdxabcx (t)
.el (f)
.br
no middle:
.ie xabc (t)
.el (f)
no end:
.ie xabcxabc
.el (f)
.SS Negation
match:
.ie !xabcxabcx (t)
.el (f)
mismatch:
.ie !xaxbx (t)
.el (f)