xref: /netbsd-src/tests/lib/libc/regex/data/bracket.in (revision 17f9a364e668e2a515980aeea268264bdfd1c52d)
1*17f9a364Spgoyette# brackets, and numerous perversions thereof
2*17f9a364Spgoyettea[b]c		&	abc	abc
3*17f9a364Spgoyettea[ab]c		&	abc	abc
4*17f9a364Spgoyettea[^ab]c		&	adc	adc
5*17f9a364Spgoyettea[]b]c		&	a]c	a]c
6*17f9a364Spgoyettea[[b]c		&	a[c	a[c
7*17f9a364Spgoyettea[-b]c		&	a-c	a-c
8*17f9a364Spgoyettea[^]b]c		&	adc	adc
9*17f9a364Spgoyettea[^-b]c		&	adc	adc
10*17f9a364Spgoyettea[b-]c		&	a-c	a-c
11*17f9a364Spgoyettea[b		&C	EBRACK
12*17f9a364Spgoyettea[]		&C	EBRACK
13*17f9a364Spgoyettea[1-3]c		&	a2c	a2c
14*17f9a364Spgoyettea[3-1]c		&C	ERANGE
15*17f9a364Spgoyettea[1-3-5]c	&C	ERANGE
16*17f9a364Spgoyettea[[.-.]--]c	&	a-c	a-c
17*17f9a364Spgoyettea[1-		&C	ERANGE
18*17f9a364Spgoyettea[[.		&C	EBRACK
19*17f9a364Spgoyettea[[.x		&C	EBRACK
20*17f9a364Spgoyettea[[.x.		&C	EBRACK
21*17f9a364Spgoyettea[[.x.]		&C	EBRACK
22*17f9a364Spgoyettea[[.x.]]	&	ax	ax
23*17f9a364Spgoyettea[[.x,.]]	&C	ECOLLATE
24*17f9a364Spgoyettea[[.one.]]b	&	a1b	a1b
25*17f9a364Spgoyettea[[.notdef.]]b	&C	ECOLLATE
26*17f9a364Spgoyettea[[.].]]b	&	a]b	a]b
27*17f9a364Spgoyettea[[:alpha:]]c	&	abc	abc
28*17f9a364Spgoyettea[[:notdef:]]c	&C	ECTYPE
29*17f9a364Spgoyettea[[:		&C	EBRACK
30*17f9a364Spgoyettea[[:alpha	&C	EBRACK
31*17f9a364Spgoyettea[[:alpha:]	&C	EBRACK
32*17f9a364Spgoyettea[[:alpha,:]	&C	ECTYPE
33*17f9a364Spgoyettea[[:]:]]b	&C	ECTYPE
34*17f9a364Spgoyettea[[:-:]]b	&C	ECTYPE
35*17f9a364Spgoyettea[[:alph:]]	&C	ECTYPE
36*17f9a364Spgoyettea[[:alphabet:]]	&C	ECTYPE
37*17f9a364Spgoyette[[:alnum:]]+	-	-%@a0X-	a0X
38*17f9a364Spgoyette[[:alpha:]]+	-	-%@aX0-	aX
39*17f9a364Spgoyette[[:blank:]]+	-	aSSTb	SST
40*17f9a364Spgoyette[[:cntrl:]]+	-	aNTb	NT
41*17f9a364Spgoyette[[:digit:]]+	-	a019b	019
42*17f9a364Spgoyette[[:graph:]]+	-	Sa%bS	a%b
43*17f9a364Spgoyette[[:lower:]]+	-	AabC	ab
44*17f9a364Spgoyette[[:print:]]+	-	NaSbN	aSb
45*17f9a364Spgoyette[[:punct:]]+	-	S%-&T	%-&
46*17f9a364Spgoyette[[:space:]]+	-	aSNTb	SNT
47*17f9a364Spgoyette[[:upper:]]+	-	aBCd	BC
48*17f9a364Spgoyette[[:xdigit:]]+	-	p0f3Cq	0f3C
49*17f9a364Spgoyettea[[=b=]]c	&	abc	abc
50*17f9a364Spgoyettea[[=		&C	EBRACK
51*17f9a364Spgoyettea[[=b		&C	EBRACK
52*17f9a364Spgoyettea[[=b=		&C	EBRACK
53*17f9a364Spgoyettea[[=b=]		&C	EBRACK
54*17f9a364Spgoyettea[[=b,=]]	&C	ECOLLATE
55*17f9a364Spgoyettea[[=one=]]b	&	a1b	a1b
56