]> git.cameronkatri.com Git - mandoc.git/blob - regress/roff/cond/strcmp.in
implement the roff(7) d (macro or string defined) conditional
[mandoc.git] / regress / roff / cond / strcmp.in
1 .TH COND-STRCMP 1 "March 8, 2014" OpenBSD
2 .SH NAME
3 cond-strcmp \- roff conditions involving string comparison
4 .SH DESCRIPTION
5 empty:
6 .ie """ (t)
7 .el (f)
8 one char:
9 .ie xaxax (t)
10 .el (f)
11 three chars:
12 .ie xabcxabcx (t)
13 .el (f)
14 .br
15 mismatch:
16 .ie xabcxabdx (t)
17 .el (f)
18 longer:
19 .ie xabcxabcdx (t)
20 .el (f)
21 shorter:
22 .ie xabcdxabcx (t)
23 .el (f)
24 .br
25 no middle:
26 .ie xabc (t)
27 .el (f)
28 no end:
29 .ie xabcxabc
30 .el (f)
31 .SS Negation
32 match:
33 .ie !xabcxabcx (t)
34 .el (f)
35 mismatch:
36 .ie !xaxbx (t)
37 .el (f)