]> git.cameronkatri.com Git - mandoc.git/blob - regress/roff/cond/strcmp.in
while $() is more modern than ``, it does not work with the
[mandoc.git] / regress / roff / cond / strcmp.in
1 .\" $OpenBSD: strcmp.in,v 1.2 2017/07/04 14:53:26 schwarze Exp $
2 .TH COND-STRCMP 1 "March 8, 2014"
3 .SH NAME
4 cond-strcmp \- roff conditions involving string comparison
5 .SH DESCRIPTION
6 empty:
7 .ie """ (t)
8 .el (f)
9 one char:
10 .ie xaxax (t)
11 .el (f)
12 three chars:
13 .ie xabcxabcx (t)
14 .el (f)
15 .br
16 mismatch:
17 .ie xabcxabdx (t)
18 .el (f)
19 longer:
20 .ie xabcxabcdx (t)
21 .el (f)
22 shorter:
23 .ie xabcdxabcx (t)
24 .el (f)
25 .br
26 no middle:
27 .ie xabc (t)
28 .el (f)
29 no end:
30 .ie xabcxabc
31 .el (f)
32 .SS Negation
33 match:
34 .ie !xabcxabcx (t)
35 .el (f)
36 mismatch:
37 .ie !xaxbx (t)
38 .el (f)