Lines Matching refs:m
32 std::cmatch m; in main() local
34 assert(std::regex_search(s, m, std::regex("a", std::regex_constants::extended))); in main()
35 assert(m.size() == 1); in main()
36 assert(!m.empty()); in main()
37 assert(!m.prefix().matched); in main()
38 assert(m.prefix().first == s); in main()
39 assert(m.prefix().second == m[0].first); in main()
40 assert(!m.suffix().matched); in main()
41 assert(m.suffix().first == m[0].second); in main()
42 assert(m.suffix().second == s+1); in main()
43 assert(m.length(0) == 1); in main()
44 assert(m.position(0) == 0); in main()
45 assert(m.str(0) == "a"); in main()
48 std::cmatch m; in main() local
50 assert(std::regex_search(s, m, std::regex("ab", std::regex_constants::extended))); in main()
51 assert(m.size() == 1); in main()
52 assert(!m.prefix().matched); in main()
53 assert(m.prefix().first == s); in main()
54 assert(m.prefix().second == m[0].first); in main()
55 assert(!m.suffix().matched); in main()
56 assert(m.suffix().first == m[0].second); in main()
57 assert(m.suffix().second == s+2); in main()
58 assert(m.length(0) == 2); in main()
59 assert(m.position(0) == 0); in main()
60 assert(m.str(0) == "ab"); in main()
63 std::cmatch m; in main() local
65 assert(!std::regex_search(s, m, std::regex("ba", std::regex_constants::extended))); in main()
66 assert(m.size() == 0); in main()
67 assert(m.empty()); in main()
70 std::cmatch m; in main() local
72 assert(std::regex_search(s, m, std::regex("ab", std::regex_constants::extended))); in main()
73 assert(m.size() == 1); in main()
74 assert(m.prefix().matched); in main()
75 assert(m.prefix().first == s); in main()
76 assert(m.prefix().second == m[0].first); in main()
77 assert(!m.suffix().matched); in main()
78 assert(m.suffix().first == m[0].second); in main()
79 assert(m.suffix().second == s+3); in main()
80 assert(m.length(0) == 2); in main()
81 assert(m.position(0) == 1); in main()
82 assert(m.str(0) == "ab"); in main()
85 std::cmatch m; in main() local
87 assert(!std::regex_search(s, m, std::regex("ab", std::regex_constants::extended), in main()
89 assert(m.size() == 0); in main()
92 std::cmatch m; in main() local
94 assert(std::regex_search(s, m, std::regex("bc", std::regex_constants::extended))); in main()
95 assert(m.size() == 1); in main()
96 assert(m.prefix().matched); in main()
97 assert(m.prefix().first == s); in main()
98 assert(m.prefix().second == m[0].first); in main()
99 assert(m.suffix().matched); in main()
100 assert(m.suffix().first == m[0].second); in main()
101 assert(m.suffix().second == s+4); in main()
102 assert(m.length(0) == 2); in main()
103 assert(m.position(0) == 1); in main()
104 assert(m.str(0) == "bc"); in main()
107 std::cmatch m; in main() local
109 assert(std::regex_search(s, m, std::regex("ab*c", std::regex_constants::extended))); in main()
110 assert(m.size() == 1); in main()
111 assert(!m.prefix().matched); in main()
112 assert(m.prefix().first == s); in main()
113 assert(m.prefix().second == m[0].first); in main()
114 assert(!m.suffix().matched); in main()
115 assert(m.suffix().first == m[0].second); in main()
116 assert(m.suffix().second == s+4); in main()
117 assert(m.length(0) == 4); in main()
118 assert(m.position(0) == 0); in main()
119 assert(m.str(0) == s); in main()
122 std::cmatch m; in main() local
124 assert(std::regex_search(s, m, std::regex("(ab)*c", std::regex_constants::extended))); in main()
125 assert(m.size() == 2); in main()
126 assert(!m.prefix().matched); in main()
127 assert(m.prefix().first == s); in main()
128 assert(m.prefix().second == m[0].first); in main()
129 assert(!m.suffix().matched); in main()
130 assert(m.suffix().first == m[0].second); in main()
131 assert(m.suffix().second == s+5); in main()
132 assert(m.length(0) == 5); in main()
133 assert(m.position(0) == 0); in main()
134 assert(m.str(0) == s); in main()
135 assert(m.length(1) == 2); in main()
136 assert(m.position(1) == 2); in main()
137 assert(m.str(1) == "ab"); in main()
140 std::cmatch m; in main() local
142 assert(std::regex_search(s, m, std::regex("cd((e)fg)hi", in main()
144 assert(m.size() == 3); in main()
145 assert(m.prefix().matched); in main()
146 assert(m.prefix().first == s); in main()
147 assert(m.prefix().second == m[0].first); in main()
148 assert(m.suffix().matched); in main()
149 assert(m.suffix().first == m[0].second); in main()
150 assert(m.suffix().second == s+std::regex_traits<char>::length(s)); in main()
151 assert(m.length(0) == 7); in main()
152 assert(m.position(0) == 2); in main()
153 assert(m.str(0) == "cdefghi"); in main()
154 assert(m.length(1) == 3); in main()
155 assert(m.position(1) == 4); in main()
156 assert(m.str(1) == "efg"); in main()
157 assert(m.length(2) == 1); in main()
158 assert(m.position(2) == 4); in main()
159 assert(m.str(2) == "e"); in main()
162 std::cmatch m; in main() local
164 assert(std::regex_search(s, m, std::regex("^abc", std::regex_constants::extended))); in main()
165 assert(m.size() == 1); in main()
166 assert(!m.prefix().matched); in main()
167 assert(m.prefix().first == s); in main()
168 assert(m.prefix().second == m[0].first); in main()
169 assert(!m.suffix().matched); in main()
170 assert(m.suffix().first == m[0].second); in main()
171 assert(m.suffix().second == s+3); in main()
172 assert(m.length(0) == 3); in main()
173 assert(m.position(0) == 0); in main()
174 assert(m.str(0) == s); in main()
177 std::cmatch m; in main() local
179 assert(std::regex_search(s, m, std::regex("^abc", std::regex_constants::extended))); in main()
180 assert(m.size() == 1); in main()
181 assert(!m.prefix().matched); in main()
182 assert(m.prefix().first == s); in main()
183 assert(m.prefix().second == m[0].first); in main()
184 assert(m.suffix().matched); in main()
185 assert(m.suffix().first == m[0].second); in main()
186 assert(m.suffix().second == s+4); in main()
187 assert(m.length(0) == 3); in main()
188 assert(m.position(0) == 0); in main()
189 assert(m.str(0) == "abc"); in main()
192 std::cmatch m; in main() local
194 assert(!std::regex_search(s, m, std::regex("^abc", std::regex_constants::extended))); in main()
195 assert(m.size() == 0); in main()
198 std::cmatch m; in main() local
200 assert(std::regex_search(s, m, std::regex("abc$", std::regex_constants::extended))); in main()
201 assert(m.size() == 1); in main()
202 assert(!m.prefix().matched); in main()
203 assert(m.prefix().first == s); in main()
204 assert(m.prefix().second == m[0].first); in main()
205 assert(!m.suffix().matched); in main()
206 assert(m.suffix().first == m[0].second); in main()
207 assert(m.suffix().second == s+3); in main()
208 assert(m.length(0) == 3); in main()
209 assert(m.position(0) == 0); in main()
210 assert(m.str(0) == s); in main()
213 std::cmatch m; in main() local
215 assert(std::regex_search(s, m, std::regex("abc$", std::regex_constants::extended))); in main()
216 assert(m.size() == 1); in main()
217 assert(m.prefix().matched); in main()
218 assert(m.prefix().first == s); in main()
219 assert(m.prefix().second == m[0].first); in main()
220 assert(!m.suffix().matched); in main()
221 assert(m.suffix().first == m[0].second); in main()
222 assert(m.suffix().second == s+5); in main()
223 assert(m.length(0) == 3); in main()
224 assert(m.position(0) == 2); in main()
225 assert(m.str(0) == s+2); in main()
228 std::cmatch m; in main() local
230 assert(!std::regex_search(s, m, std::regex("abc$", std::regex_constants::extended))); in main()
231 assert(m.size() == 0); in main()
234 std::cmatch m; in main() local
236 assert(std::regex_search(s, m, std::regex("a.c", std::regex_constants::extended))); in main()
237 assert(m.size() == 1); in main()
238 assert(!m.prefix().matched); in main()
239 assert(m.prefix().first == s); in main()
240 assert(m.prefix().second == m[0].first); in main()
241 assert(!m.suffix().matched); in main()
242 assert(m.suffix().first == m[0].second); in main()
243 assert(m.suffix().second == s+3); in main()
244 assert(m.length(0) == 3); in main()
245 assert(m.position(0) == 0); in main()
246 assert(m.str(0) == s); in main()
249 std::cmatch m; in main() local
251 assert(std::regex_search(s, m, std::regex("a.c", std::regex_constants::extended))); in main()
252 assert(m.size() == 1); in main()
253 assert(!m.prefix().matched); in main()
254 assert(m.prefix().first == s); in main()
255 assert(m.prefix().second == m[0].first); in main()
256 assert(!m.suffix().matched); in main()
257 assert(m.suffix().first == m[0].second); in main()
258 assert(m.suffix().second == s+3); in main()
259 assert(m.length(0) == 3); in main()
260 assert(m.position(0) == 0); in main()
261 assert(m.str(0) == s); in main()
264 std::cmatch m; in main() local
266 assert(std::regex_search(s, m, std::regex("a.c", std::regex_constants::extended))); in main()
267 assert(m.size() == 1); in main()
268 assert(!m.prefix().matched); in main()
269 assert(m.prefix().first == s); in main()
270 assert(m.prefix().second == m[0].first); in main()
271 assert(!m.suffix().matched); in main()
272 assert(m.suffix().first == m[0].second); in main()
273 assert(m.suffix().second == s+3); in main()
274 assert(m.length(0) == 3); in main()
275 assert(m.position(0) == 0); in main()
276 assert(m.str(0) == s); in main()
279 std::cmatch m; in main() local
281 assert(std::regex_search(s, m, std::regex("(.*).*", std::regex_constants::extended))); in main()
282 assert(m.size() == 2); in main()
283 assert(!m.prefix().matched); in main()
284 assert(m.prefix().first == s); in main()
285 assert(m.prefix().second == m[0].first); in main()
286 assert(!m.suffix().matched); in main()
287 assert(m.suffix().first == m[0].second); in main()
288 assert(m.suffix().second == s+6); in main()
289 assert(m.length(0) == 6); in main()
290 assert(m.position(0) == 0); in main()
291 assert(m.str(0) == s); in main()
292 assert(m.length(1) == 6); in main()
293 assert(m.position(1) == 0); in main()
294 assert(m.str(1) == s); in main()
297 std::cmatch m; in main() local
299 assert(std::regex_search(s, m, std::regex("(a*)*", std::regex_constants::extended))); in main()
300 assert(m.size() == 2); in main()
301 assert(!m.prefix().matched); in main()
302 assert(m.prefix().first == s); in main()
303 assert(m.prefix().second == m[0].first); in main()
304 assert(m.suffix().matched); in main()
305 assert(m.suffix().first == m[0].second); in main()
306 assert(m.suffix().second == s+2); in main()
307 assert(m.length(0) == 0); in main()
308 assert(m.position(0) == 0); in main()
309 assert(m.str(0) == ""); in main()
310 assert(m.length(1) == 0); in main()
311 assert(m.position(1) == 0); in main()
312 assert(m.str(1) == ""); in main()
315 std::cmatch m; in main() local
317 assert(!std::regex_search(s, m, std::regex("ab{3,5}c", std::regex_constants::extended))); in main()
318 assert(m.size() == 0); in main()
321 std::cmatch m; in main() local
323 assert(std::regex_search(s, m, std::regex("ab{3,5}c", std::regex_constants::extended))); in main()
324 assert(m.size() == 1); in main()
325 assert(!m.prefix().matched); in main()
326 assert(m.prefix().first == s); in main()
327 assert(m.prefix().second == m[0].first); in main()
328 assert(!m.suffix().matched); in main()
329 assert(m.suffix().first == m[0].second); in main()
330 assert(m.suffix().second == m[0].second); in main()
331 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
332 assert(m.position(0) == 0); in main()
333 assert(m.str(0) == s); in main()
336 std::cmatch m; in main() local
338 assert(std::regex_search(s, m, std::regex("ab{3,5}c", std::regex_constants::extended))); in main()
339 assert(m.size() == 1); in main()
340 assert(!m.prefix().matched); in main()
341 assert(m.prefix().first == s); in main()
342 assert(m.prefix().second == m[0].first); in main()
343 assert(!m.suffix().matched); in main()
344 assert(m.suffix().first == m[0].second); in main()
345 assert(m.suffix().second == m[0].second); in main()
346 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
347 assert(m.position(0) == 0); in main()
348 assert(m.str(0) == s); in main()
351 std::cmatch m; in main() local
353 assert(std::regex_search(s, m, std::regex("ab{3,5}c", std::regex_constants::extended))); in main()
354 assert(m.size() == 1); in main()
355 assert(!m.prefix().matched); in main()
356 assert(m.prefix().first == s); in main()
357 assert(m.prefix().second == m[0].first); in main()
358 assert(!m.suffix().matched); in main()
359 assert(m.suffix().first == m[0].second); in main()
360 assert(m.suffix().second == m[0].second); in main()
361 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
362 assert(m.position(0) == 0); in main()
363 assert(m.str(0) == s); in main()
366 std::cmatch m; in main() local
368 assert(!std::regex_search(s, m, std::regex("ab{3,5}c", std::regex_constants::extended))); in main()
369 assert(m.size() == 0); in main()
372 std::cmatch m; in main() local
374 assert(!std::regex_search(s, m, std::regex("ab{3,5}c", std::regex_constants::extended))); in main()
375 assert(m.size() == 0); in main()
378 std::cmatch m; in main() local
380 assert(!std::regex_search(s, m, std::regex("a.{3,5}c", std::regex_constants::extended))); in main()
381 assert(m.size() == 0); in main()
384 std::cmatch m; in main() local
386 assert(std::regex_search(s, m, std::regex("a.{3,5}c", std::regex_constants::extended))); in main()
387 assert(m.size() == 1); in main()
388 assert(!m.prefix().matched); in main()
389 assert(m.prefix().first == s); in main()
390 assert(m.prefix().second == m[0].first); in main()
391 assert(!m.suffix().matched); in main()
392 assert(m.suffix().first == m[0].second); in main()
393 assert(m.suffix().second == m[0].second); in main()
394 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
395 assert(m.position(0) == 0); in main()
396 assert(m.str(0) == s); in main()
399 std::cmatch m; in main() local
401 assert(std::regex_search(s, m, std::regex("a.{3,5}c", std::regex_constants::extended))); in main()
402 assert(m.size() == 1); in main()
403 assert(!m.prefix().matched); in main()
404 assert(m.prefix().first == s); in main()
405 assert(m.prefix().second == m[0].first); in main()
406 assert(!m.suffix().matched); in main()
407 assert(m.suffix().first == m[0].second); in main()
408 assert(m.suffix().second == m[0].second); in main()
409 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
410 assert(m.position(0) == 0); in main()
411 assert(m.str(0) == s); in main()
414 std::cmatch m; in main() local
416 assert(std::regex_search(s, m, std::regex("a.{3,5}c", std::regex_constants::extended))); in main()
417 assert(m.size() == 1); in main()
418 assert(!m.prefix().matched); in main()
419 assert(m.prefix().first == s); in main()
420 assert(m.prefix().second == m[0].first); in main()
421 assert(!m.suffix().matched); in main()
422 assert(m.suffix().first == m[0].second); in main()
423 assert(m.suffix().second == m[0].second); in main()
424 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
425 assert(m.position(0) == 0); in main()
426 assert(m.str(0) == s); in main()
429 std::cmatch m; in main() local
431 assert(!std::regex_search(s, m, std::regex("a.{3,5}c", std::regex_constants::extended))); in main()
432 assert(m.size() == 0); in main()
435 std::cmatch m; in main() local
437 assert(std::regex_search(s, m, std::regex("tour|to|tournament", in main()
439 assert(m.size() == 1); in main()
440 assert(!m.prefix().matched); in main()
441 assert(m.prefix().first == s); in main()
442 assert(m.prefix().second == m[0].first); in main()
443 assert(!m.suffix().matched); in main()
444 assert(m.suffix().first == m[0].second); in main()
445 assert(m.suffix().second == m[0].second); in main()
446 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
447 assert(m.position(0) == 0); in main()
448 assert(m.str(0) == s); in main()
451 std::cmatch m; in main() local
453 assert(std::regex_search(s, m, std::regex("(tour|to|tournament)+", in main()
455 assert(m.size() == 1); in main()
456 assert(!m.prefix().matched); in main()
457 assert(m.prefix().first == s); in main()
458 assert(m.prefix().second == m[0].first); in main()
459 assert(!m.suffix().matched); in main()
460 assert(m.suffix().first == m[0].second); in main()
461 assert(m.suffix().second == m[0].second); in main()
462 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
463 assert(m.position(0) == 0); in main()
464 assert(m.str(0) == s); in main()
467 std::cmatch m; in main() local
469 assert(std::regex_search(s, m, std::regex("(tour|to|t)+", in main()
471 assert(m.size() == 2); in main()
472 assert(!m.prefix().matched); in main()
473 assert(m.prefix().first == s); in main()
474 assert(m.prefix().second == m[0].first); in main()
475 assert(!m.suffix().matched); in main()
476 assert(m.suffix().first == m[0].second); in main()
477 assert(m.suffix().second == m[0].second); in main()
478 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
479 assert(m.position(0) == 0); in main()
480 assert(m.str(0) == s); in main()
481 assert(m.length(1) == 4); in main()
482 assert(m.position(1) == 3); in main()
483 assert(m.str(1) == "tour"); in main()
486 std::cmatch m; in main() local
488 assert(!std::regex_search(s, m, std::regex("-(.*),\1-", std::regex_constants::extended))); in main()
489 assert(m.size() == 0); in main()
492 std::cmatch m; in main() local
494 assert(std::regex_search(s, m, std::regex("-.*,.*-", std::regex_constants::extended))); in main()
495 assert(m.size() == 1); in main()
496 assert(!m.prefix().matched); in main()
497 assert(m.prefix().first == s); in main()
498 assert(m.prefix().second == m[0].first); in main()
499 assert(!m.suffix().matched); in main()
500 assert(m.suffix().first == m[0].second); in main()
501 assert(m.suffix().second == m[0].second); in main()
502 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
503 assert(m.position(0) == 0); in main()
504 assert(m.str(0) == s); in main()
507 std::cmatch m; in main() local
509 assert(std::regex_search(s, m, std::regex("^[a]$", in main()
511 assert(m.size() == 1); in main()
512 assert(!m.prefix().matched); in main()
513 assert(m.prefix().first == s); in main()
514 assert(m.prefix().second == m[0].first); in main()
515 assert(!m.suffix().matched); in main()
516 assert(m.suffix().first == m[0].second); in main()
517 assert(m.suffix().second == m[0].second); in main()
518 assert(m.length(0) == 1); in main()
519 assert(m.position(0) == 0); in main()
520 assert(m.str(0) == "a"); in main()
523 std::cmatch m; in main() local
525 assert(std::regex_search(s, m, std::regex("^[ab]$", in main()
527 assert(m.size() == 1); in main()
528 assert(!m.prefix().matched); in main()
529 assert(m.prefix().first == s); in main()
530 assert(m.prefix().second == m[0].first); in main()
531 assert(!m.suffix().matched); in main()
532 assert(m.suffix().first == m[0].second); in main()
533 assert(m.suffix().second == m[0].second); in main()
534 assert(m.length(0) == 1); in main()
535 assert(m.position(0) == 0); in main()
536 assert(m.str(0) == "a"); in main()
539 std::cmatch m; in main() local
541 assert(std::regex_search(s, m, std::regex("^[a-f]$", in main()
543 assert(m.size() == 1); in main()
544 assert(!m.prefix().matched); in main()
545 assert(m.prefix().first == s); in main()
546 assert(m.prefix().second == m[0].first); in main()
547 assert(!m.suffix().matched); in main()
548 assert(m.suffix().first == m[0].second); in main()
549 assert(m.suffix().second == m[0].second); in main()
550 assert(m.length(0) == 1); in main()
551 assert(m.position(0) == 0); in main()
552 assert(m.str(0) == s); in main()
555 std::cmatch m; in main() local
557 assert(!std::regex_search(s, m, std::regex("^[a-f]$", in main()
559 assert(m.size() == 0); in main()
562 std::cmatch m; in main() local
564 assert(std::regex_search(s, m, std::regex("q[^u]", in main()
566 assert(m.size() == 1); in main()
567 assert(m.prefix().matched); in main()
568 assert(m.prefix().first == s); in main()
569 assert(m.prefix().second == m[0].first); in main()
570 assert(!m.suffix().matched); in main()
571 assert(m.suffix().first == m[0].second); in main()
572 assert(m.suffix().second == m[0].second); in main()
573 assert(m.length(0) == 2); in main()
574 assert(m.position(0) == 3); in main()
575 assert(m.str(0) == "qi"); in main()
578 std::cmatch m; in main() local
580 assert(!std::regex_search(s, m, std::regex("q[^u]", in main()
582 assert(m.size() == 0); in main()
585 std::cmatch m; in main() local
587 assert(std::regex_search(s, m, std::regex("A[[:lower:]]B", in main()
589 assert(m.size() == 1); in main()
590 assert(!m.prefix().matched); in main()
591 assert(m.prefix().first == s); in main()
592 assert(m.prefix().second == m[0].first); in main()
593 assert(!m.suffix().matched); in main()
594 assert(m.suffix().first == m[0].second); in main()
595 assert(m.suffix().second == m[0].second); in main()
596 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
597 assert(m.position(0) == 0); in main()
598 assert(m.str(0) == s); in main()
601 std::cmatch m; in main() local
603 assert(!std::regex_search(s, m, std::regex("A[[:lower:]]B", in main()
605 assert(m.size() == 0); in main()
608 std::cmatch m; in main() local
610 assert(std::regex_search(s, m, std::regex("A[^[:lower:]]B", in main()
612 assert(m.size() == 1); in main()
613 assert(!m.prefix().matched); in main()
614 assert(m.prefix().first == s); in main()
615 assert(m.prefix().second == m[0].first); in main()
616 assert(!m.suffix().matched); in main()
617 assert(m.suffix().first == m[0].second); in main()
618 assert(m.suffix().second == m[0].second); in main()
619 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
620 assert(m.position(0) == 0); in main()
621 assert(m.str(0) == s); in main()
624 std::cmatch m; in main() local
626 assert(!std::regex_search(s, m, std::regex("A[^[:lower:]]B", in main()
628 assert(m.size() == 0); in main()
631 std::cmatch m; in main() local
633 assert(!std::regex_search(s, m, std::regex("A[^[:lower:]0-9]B", in main()
635 assert(m.size() == 0); in main()
638 std::cmatch m; in main() local
640 assert(std::regex_search(s, m, std::regex("A[^[:lower:]0-9]B", in main()
642 assert(m.size() == 1); in main()
643 assert(!m.prefix().matched); in main()
644 assert(m.prefix().first == s); in main()
645 assert(m.prefix().second == m[0].first); in main()
646 assert(!m.suffix().matched); in main()
647 assert(m.suffix().first == m[0].second); in main()
648 assert(m.suffix().second == m[0].second); in main()
649 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
650 assert(m.position(0) == 0); in main()
651 assert(m.str(0) == s); in main()
654 std::cmatch m; in main() local
656 assert(std::regex_search(s, m, std::regex("[a[.hyphen.]z]", in main()
658 assert(m.size() == 1); in main()
659 assert(!m.prefix().matched); in main()
660 assert(m.prefix().first == s); in main()
661 assert(m.prefix().second == m[0].first); in main()
662 assert(!m.suffix().matched); in main()
663 assert(m.suffix().first == m[0].second); in main()
664 assert(m.suffix().second == m[0].second); in main()
665 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
666 assert(m.position(0) == 0); in main()
667 assert(m.str(0) == s); in main()
670 std::cmatch m; in main() local
672 assert(std::regex_search(s, m, std::regex("[a[.hyphen.]z]", in main()
674 assert(m.size() == 1); in main()
675 assert(!m.prefix().matched); in main()
676 assert(m.prefix().first == s); in main()
677 assert(m.prefix().second == m[0].first); in main()
678 assert(!m.suffix().matched); in main()
679 assert(m.suffix().first == m[0].second); in main()
680 assert(m.suffix().second == m[0].second); in main()
681 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
682 assert(m.position(0) == 0); in main()
683 assert(m.str(0) == s); in main()
686 std::cmatch m; in main() local
688 assert(!std::regex_search(s, m, std::regex("[a[.hyphen.]z]", in main()
690 assert(m.size() == 0); in main()
694 std::cmatch m; in main() local
696 assert(std::regex_search(s, m, std::regex("[a[=M=]z]", in main()
698 assert(m.size() == 1); in main()
699 assert(!m.prefix().matched); in main()
700 assert(m.prefix().first == s); in main()
701 assert(m.prefix().second == m[0].first); in main()
702 assert(!m.suffix().matched); in main()
703 assert(m.suffix().first == m[0].second); in main()
704 assert(m.suffix().second == m[0].second); in main()
705 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
706 assert(m.position(0) == 0); in main()
707 assert(m.str(0) == s); in main()
710 std::cmatch m; in main() local
712 assert(std::regex_search(s, m, std::regex("[a[.ch.]z]", in main()
714 assert(m.size() == 1); in main()
715 assert(!m.prefix().matched); in main()
716 assert(m.prefix().first == s); in main()
717 assert(m.prefix().second == m[0].first); in main()
718 assert(!m.suffix().matched); in main()
719 assert(m.suffix().first == m[0].second); in main()
720 assert(m.suffix().second == m[0].second); in main()
721 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
722 assert(m.position(0) == 0); in main()
723 assert(m.str(0) == s); in main()
727 std::cmatch m; in main() local
729 assert(!std::regex_search(s, m, std::regex("[a[=M=]z]", in main()
731 assert(m.size() == 0); in main()
734 std::cmatch m; in main() local
736 assert(std::regex_search(s, m, std::regex("[ace1-9]*", in main()
738 assert(m.size() == 1); in main()
739 assert(!m.prefix().matched); in main()
740 assert(m.prefix().first == s); in main()
741 assert(m.prefix().second == m[0].first); in main()
742 assert(m.suffix().matched); in main()
743 assert(m.suffix().first == m[0].second); in main()
744 assert(m.suffix().second == s + std::char_traits<char>::length(s)); in main()
745 assert(m.length(0) == 0); in main()
746 assert(m.position(0) == 0); in main()
747 assert(m.str(0) == ""); in main()
750 std::cmatch m; in main() local
752 assert(std::regex_search(s, m, std::regex("[ace1-9]+", in main()
754 assert(m.size() == 1); in main()
755 assert(m.prefix().matched); in main()
756 assert(m.prefix().first == s); in main()
757 assert(m.prefix().second == m[0].first); in main()
758 assert(m.suffix().matched); in main()
759 assert(m.suffix().first == m[0].second); in main()
760 assert(m.suffix().second == s + std::char_traits<char>::length(s)); in main()
761 assert(m.length(0) == 6); in main()
762 assert(m.position(0) == 1); in main()
763 assert(m.str(0) == "1a45ce"); in main()
771 std::match_results<BI> m; in main() local
774 assert(std::regex_search(BI(s), BI(s+ss), m, regex)); in main()
775 assert(m.size() == 1); in main()
776 assert(!m.prefix().matched); in main()
777 assert(m.prefix().first == BI(s)); in main()
778 assert(m.prefix().second == m[0].first); in main()
779 assert(!m.suffix().matched); in main()
780 assert(m.suffix().first == m[0].second); in main()
781 assert(m.suffix().second == m[0].second); in main()
782 assert(m.length(0) == 4); in main()
783 assert(m.position(0) == 0); in main()
784 assert(m.str(0) == s); in main()
788 std::wcmatch m; in main() local
790 assert(std::regex_search(s, m, std::wregex(L"a", std::regex_constants::extended))); in main()
791 assert(m.size() == 1); in main()
792 assert(!m.empty()); in main()
793 assert(!m.prefix().matched); in main()
794 assert(m.prefix().first == s); in main()
795 assert(m.prefix().second == m[0].first); in main()
796 assert(!m.suffix().matched); in main()
797 assert(m.suffix().first == m[0].second); in main()
798 assert(m.suffix().second == s+1); in main()
799 assert(m.length(0) == 1); in main()
800 assert(m.position(0) == 0); in main()
801 assert(m.str(0) == L"a"); in main()
804 std::wcmatch m; in main() local
806 assert(std::regex_search(s, m, std::wregex(L"ab", std::regex_constants::extended))); in main()
807 assert(m.size() == 1); in main()
808 assert(!m.prefix().matched); in main()
809 assert(m.prefix().first == s); in main()
810 assert(m.prefix().second == m[0].first); in main()
811 assert(!m.suffix().matched); in main()
812 assert(m.suffix().first == m[0].second); in main()
813 assert(m.suffix().second == s+2); in main()
814 assert(m.length(0) == 2); in main()
815 assert(m.position(0) == 0); in main()
816 assert(m.str(0) == L"ab"); in main()
819 std::wcmatch m; in main() local
821 assert(!std::regex_search(s, m, std::wregex(L"ba", std::regex_constants::extended))); in main()
822 assert(m.size() == 0); in main()
823 assert(m.empty()); in main()
826 std::wcmatch m; in main() local
828 assert(std::regex_search(s, m, std::wregex(L"ab", std::regex_constants::extended))); in main()
829 assert(m.size() == 1); in main()
830 assert(m.prefix().matched); in main()
831 assert(m.prefix().first == s); in main()
832 assert(m.prefix().second == m[0].first); in main()
833 assert(!m.suffix().matched); in main()
834 assert(m.suffix().first == m[0].second); in main()
835 assert(m.suffix().second == s+3); in main()
836 assert(m.length(0) == 2); in main()
837 assert(m.position(0) == 1); in main()
838 assert(m.str(0) == L"ab"); in main()
841 std::wcmatch m; in main() local
843 assert(!std::regex_search(s, m, std::wregex(L"ab", std::regex_constants::extended), in main()
845 assert(m.size() == 0); in main()
848 std::wcmatch m; in main() local
850 assert(std::regex_search(s, m, std::wregex(L"bc", std::regex_constants::extended))); in main()
851 assert(m.size() == 1); in main()
852 assert(m.prefix().matched); in main()
853 assert(m.prefix().first == s); in main()
854 assert(m.prefix().second == m[0].first); in main()
855 assert(m.suffix().matched); in main()
856 assert(m.suffix().first == m[0].second); in main()
857 assert(m.suffix().second == s+4); in main()
858 assert(m.length(0) == 2); in main()
859 assert(m.position(0) == 1); in main()
860 assert(m.str(0) == L"bc"); in main()
863 std::wcmatch m; in main() local
865 assert(std::regex_search(s, m, std::wregex(L"ab*c", std::regex_constants::extended))); in main()
866 assert(m.size() == 1); in main()
867 assert(!m.prefix().matched); in main()
868 assert(m.prefix().first == s); in main()
869 assert(m.prefix().second == m[0].first); in main()
870 assert(!m.suffix().matched); in main()
871 assert(m.suffix().first == m[0].second); in main()
872 assert(m.suffix().second == s+4); in main()
873 assert(m.length(0) == 4); in main()
874 assert(m.position(0) == 0); in main()
875 assert(m.str(0) == s); in main()
878 std::wcmatch m; in main() local
880 assert(std::regex_search(s, m, std::wregex(L"(ab)*c", std::regex_constants::extended))); in main()
881 assert(m.size() == 2); in main()
882 assert(!m.prefix().matched); in main()
883 assert(m.prefix().first == s); in main()
884 assert(m.prefix().second == m[0].first); in main()
885 assert(!m.suffix().matched); in main()
886 assert(m.suffix().first == m[0].second); in main()
887 assert(m.suffix().second == s+5); in main()
888 assert(m.length(0) == 5); in main()
889 assert(m.position(0) == 0); in main()
890 assert(m.str(0) == s); in main()
891 assert(m.length(1) == 2); in main()
892 assert(m.position(1) == 2); in main()
893 assert(m.str(1) == L"ab"); in main()
896 std::wcmatch m; in main() local
898 assert(std::regex_search(s, m, std::wregex(L"cd((e)fg)hi", in main()
900 assert(m.size() == 3); in main()
901 assert(m.prefix().matched); in main()
902 assert(m.prefix().first == s); in main()
903 assert(m.prefix().second == m[0].first); in main()
904 assert(m.suffix().matched); in main()
905 assert(m.suffix().first == m[0].second); in main()
906 assert(m.suffix().second == s+std::regex_traits<wchar_t>::length(s)); in main()
907 assert(m.length(0) == 7); in main()
908 assert(m.position(0) == 2); in main()
909 assert(m.str(0) == L"cdefghi"); in main()
910 assert(m.length(1) == 3); in main()
911 assert(m.position(1) == 4); in main()
912 assert(m.str(1) == L"efg"); in main()
913 assert(m.length(2) == 1); in main()
914 assert(m.position(2) == 4); in main()
915 assert(m.str(2) == L"e"); in main()
918 std::wcmatch m; in main() local
920 assert(std::regex_search(s, m, std::wregex(L"^abc", std::regex_constants::extended))); in main()
921 assert(m.size() == 1); in main()
922 assert(!m.prefix().matched); in main()
923 assert(m.prefix().first == s); in main()
924 assert(m.prefix().second == m[0].first); in main()
925 assert(!m.suffix().matched); in main()
926 assert(m.suffix().first == m[0].second); in main()
927 assert(m.suffix().second == s+3); in main()
928 assert(m.length(0) == 3); in main()
929 assert(m.position(0) == 0); in main()
930 assert(m.str(0) == s); in main()
933 std::wcmatch m; in main() local
935 assert(std::regex_search(s, m, std::wregex(L"^abc", std::regex_constants::extended))); in main()
936 assert(m.size() == 1); in main()
937 assert(!m.prefix().matched); in main()
938 assert(m.prefix().first == s); in main()
939 assert(m.prefix().second == m[0].first); in main()
940 assert(m.suffix().matched); in main()
941 assert(m.suffix().first == m[0].second); in main()
942 assert(m.suffix().second == s+4); in main()
943 assert(m.length(0) == 3); in main()
944 assert(m.position(0) == 0); in main()
945 assert(m.str(0) == L"abc"); in main()
948 std::wcmatch m; in main() local
950 assert(!std::regex_search(s, m, std::wregex(L"^abc", std::regex_constants::extended))); in main()
951 assert(m.size() == 0); in main()
954 std::wcmatch m; in main() local
956 assert(std::regex_search(s, m, std::wregex(L"abc$", std::regex_constants::extended))); in main()
957 assert(m.size() == 1); in main()
958 assert(!m.prefix().matched); in main()
959 assert(m.prefix().first == s); in main()
960 assert(m.prefix().second == m[0].first); in main()
961 assert(!m.suffix().matched); in main()
962 assert(m.suffix().first == m[0].second); in main()
963 assert(m.suffix().second == s+3); in main()
964 assert(m.length(0) == 3); in main()
965 assert(m.position(0) == 0); in main()
966 assert(m.str(0) == s); in main()
969 std::wcmatch m; in main() local
971 assert(std::regex_search(s, m, std::wregex(L"abc$", std::regex_constants::extended))); in main()
972 assert(m.size() == 1); in main()
973 assert(m.prefix().matched); in main()
974 assert(m.prefix().first == s); in main()
975 assert(m.prefix().second == m[0].first); in main()
976 assert(!m.suffix().matched); in main()
977 assert(m.suffix().first == m[0].second); in main()
978 assert(m.suffix().second == s+5); in main()
979 assert(m.length(0) == 3); in main()
980 assert(m.position(0) == 2); in main()
981 assert(m.str(0) == s+2); in main()
984 std::wcmatch m; in main() local
986 assert(!std::regex_search(s, m, std::wregex(L"abc$", std::regex_constants::extended))); in main()
987 assert(m.size() == 0); in main()
990 std::wcmatch m; in main() local
992 assert(std::regex_search(s, m, std::wregex(L"a.c", std::regex_constants::extended))); in main()
993 assert(m.size() == 1); in main()
994 assert(!m.prefix().matched); in main()
995 assert(m.prefix().first == s); in main()
996 assert(m.prefix().second == m[0].first); in main()
997 assert(!m.suffix().matched); in main()
998 assert(m.suffix().first == m[0].second); in main()
999 assert(m.suffix().second == s+3); in main()
1000 assert(m.length(0) == 3); in main()
1001 assert(m.position(0) == 0); in main()
1002 assert(m.str(0) == s); in main()
1005 std::wcmatch m; in main() local
1007 assert(std::regex_search(s, m, std::wregex(L"a.c", std::regex_constants::extended))); in main()
1008 assert(m.size() == 1); in main()
1009 assert(!m.prefix().matched); in main()
1010 assert(m.prefix().first == s); in main()
1011 assert(m.prefix().second == m[0].first); in main()
1012 assert(!m.suffix().matched); in main()
1013 assert(m.suffix().first == m[0].second); in main()
1014 assert(m.suffix().second == s+3); in main()
1015 assert(m.length(0) == 3); in main()
1016 assert(m.position(0) == 0); in main()
1017 assert(m.str(0) == s); in main()
1020 std::wcmatch m; in main() local
1022 assert(std::regex_search(s, m, std::wregex(L"a.c", std::regex_constants::extended))); in main()
1023 assert(m.size() == 1); in main()
1024 assert(!m.prefix().matched); in main()
1025 assert(m.prefix().first == s); in main()
1026 assert(m.prefix().second == m[0].first); in main()
1027 assert(!m.suffix().matched); in main()
1028 assert(m.suffix().first == m[0].second); in main()
1029 assert(m.suffix().second == s+3); in main()
1030 assert(m.length(0) == 3); in main()
1031 assert(m.position(0) == 0); in main()
1032 assert(m.str(0) == s); in main()
1035 std::wcmatch m; in main() local
1037 assert(std::regex_search(s, m, std::wregex(L"(.*).*", std::regex_constants::extended))); in main()
1038 assert(m.size() == 2); in main()
1039 assert(!m.prefix().matched); in main()
1040 assert(m.prefix().first == s); in main()
1041 assert(m.prefix().second == m[0].first); in main()
1042 assert(!m.suffix().matched); in main()
1043 assert(m.suffix().first == m[0].second); in main()
1044 assert(m.suffix().second == s+6); in main()
1045 assert(m.length(0) == 6); in main()
1046 assert(m.position(0) == 0); in main()
1047 assert(m.str(0) == s); in main()
1048 assert(m.length(1) == 6); in main()
1049 assert(m.position(1) == 0); in main()
1050 assert(m.str(1) == s); in main()
1053 std::wcmatch m; in main() local
1055 assert(std::regex_search(s, m, std::wregex(L"(a*)*", std::regex_constants::extended))); in main()
1056 assert(m.size() == 2); in main()
1057 assert(!m.prefix().matched); in main()
1058 assert(m.prefix().first == s); in main()
1059 assert(m.prefix().second == m[0].first); in main()
1060 assert(m.suffix().matched); in main()
1061 assert(m.suffix().first == m[0].second); in main()
1062 assert(m.suffix().second == s+2); in main()
1063 assert(m.length(0) == 0); in main()
1064 assert(m.position(0) == 0); in main()
1065 assert(m.str(0) == L""); in main()
1066 assert(m.length(1) == 0); in main()
1067 assert(m.position(1) == 0); in main()
1068 assert(m.str(1) == L""); in main()
1071 std::wcmatch m; in main() local
1073 assert(!std::regex_search(s, m, std::wregex(L"ab{3,5}c", std::regex_constants::extended))); in main()
1074 assert(m.size() == 0); in main()
1077 std::wcmatch m; in main() local
1079 assert(std::regex_search(s, m, std::wregex(L"ab{3,5}c", std::regex_constants::extended))); in main()
1080 assert(m.size() == 1); in main()
1081 assert(!m.prefix().matched); in main()
1082 assert(m.prefix().first == s); in main()
1083 assert(m.prefix().second == m[0].first); in main()
1084 assert(!m.suffix().matched); in main()
1085 assert(m.suffix().first == m[0].second); in main()
1086 assert(m.suffix().second == m[0].second); in main()
1087 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1088 assert(m.position(0) == 0); in main()
1089 assert(m.str(0) == s); in main()
1092 std::wcmatch m; in main() local
1094 assert(std::regex_search(s, m, std::wregex(L"ab{3,5}c", std::regex_constants::extended))); in main()
1095 assert(m.size() == 1); in main()
1096 assert(!m.prefix().matched); in main()
1097 assert(m.prefix().first == s); in main()
1098 assert(m.prefix().second == m[0].first); in main()
1099 assert(!m.suffix().matched); in main()
1100 assert(m.suffix().first == m[0].second); in main()
1101 assert(m.suffix().second == m[0].second); in main()
1102 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1103 assert(m.position(0) == 0); in main()
1104 assert(m.str(0) == s); in main()
1107 std::wcmatch m; in main() local
1109 assert(std::regex_search(s, m, std::wregex(L"ab{3,5}c", std::regex_constants::extended))); in main()
1110 assert(m.size() == 1); in main()
1111 assert(!m.prefix().matched); in main()
1112 assert(m.prefix().first == s); in main()
1113 assert(m.prefix().second == m[0].first); in main()
1114 assert(!m.suffix().matched); in main()
1115 assert(m.suffix().first == m[0].second); in main()
1116 assert(m.suffix().second == m[0].second); in main()
1117 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1118 assert(m.position(0) == 0); in main()
1119 assert(m.str(0) == s); in main()
1122 std::wcmatch m; in main() local
1124 assert(!std::regex_search(s, m, std::wregex(L"ab{3,5}c", std::regex_constants::extended))); in main()
1125 assert(m.size() == 0); in main()
1128 std::wcmatch m; in main() local
1130 assert(!std::regex_search(s, m, std::wregex(L"ab{3,5}c", std::regex_constants::extended))); in main()
1131 assert(m.size() == 0); in main()
1134 std::wcmatch m; in main() local
1136 assert(!std::regex_search(s, m, std::wregex(L"a.{3,5}c", std::regex_constants::extended))); in main()
1137 assert(m.size() == 0); in main()
1140 std::wcmatch m; in main() local
1142 assert(std::regex_search(s, m, std::wregex(L"a.{3,5}c", std::regex_constants::extended))); in main()
1143 assert(m.size() == 1); in main()
1144 assert(!m.prefix().matched); in main()
1145 assert(m.prefix().first == s); in main()
1146 assert(m.prefix().second == m[0].first); in main()
1147 assert(!m.suffix().matched); in main()
1148 assert(m.suffix().first == m[0].second); in main()
1149 assert(m.suffix().second == m[0].second); in main()
1150 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1151 assert(m.position(0) == 0); in main()
1152 assert(m.str(0) == s); in main()
1155 std::wcmatch m; in main() local
1157 assert(std::regex_search(s, m, std::wregex(L"a.{3,5}c", std::regex_constants::extended))); in main()
1158 assert(m.size() == 1); in main()
1159 assert(!m.prefix().matched); in main()
1160 assert(m.prefix().first == s); in main()
1161 assert(m.prefix().second == m[0].first); in main()
1162 assert(!m.suffix().matched); in main()
1163 assert(m.suffix().first == m[0].second); in main()
1164 assert(m.suffix().second == m[0].second); in main()
1165 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1166 assert(m.position(0) == 0); in main()
1167 assert(m.str(0) == s); in main()
1170 std::wcmatch m; in main() local
1172 assert(std::regex_search(s, m, std::wregex(L"a.{3,5}c", std::regex_constants::extended))); in main()
1173 assert(m.size() == 1); in main()
1174 assert(!m.prefix().matched); in main()
1175 assert(m.prefix().first == s); in main()
1176 assert(m.prefix().second == m[0].first); in main()
1177 assert(!m.suffix().matched); in main()
1178 assert(m.suffix().first == m[0].second); in main()
1179 assert(m.suffix().second == m[0].second); in main()
1180 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1181 assert(m.position(0) == 0); in main()
1182 assert(m.str(0) == s); in main()
1185 std::wcmatch m; in main() local
1187 assert(!std::regex_search(s, m, std::wregex(L"a.{3,5}c", std::regex_constants::extended))); in main()
1188 assert(m.size() == 0); in main()
1191 std::wcmatch m; in main() local
1193 assert(std::regex_search(s, m, std::wregex(L"tour|to|tournament", in main()
1195 assert(m.size() == 1); in main()
1196 assert(!m.prefix().matched); in main()
1197 assert(m.prefix().first == s); in main()
1198 assert(m.prefix().second == m[0].first); in main()
1199 assert(!m.suffix().matched); in main()
1200 assert(m.suffix().first == m[0].second); in main()
1201 assert(m.suffix().second == m[0].second); in main()
1202 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1203 assert(m.position(0) == 0); in main()
1204 assert(m.str(0) == s); in main()
1207 std::wcmatch m; in main() local
1209 assert(std::regex_search(s, m, std::wregex(L"(tour|to|tournament)+", in main()
1211 assert(m.size() == 1); in main()
1212 assert(!m.prefix().matched); in main()
1213 assert(m.prefix().first == s); in main()
1214 assert(m.prefix().second == m[0].first); in main()
1215 assert(!m.suffix().matched); in main()
1216 assert(m.suffix().first == m[0].second); in main()
1217 assert(m.suffix().second == m[0].second); in main()
1218 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1219 assert(m.position(0) == 0); in main()
1220 assert(m.str(0) == s); in main()
1223 std::wcmatch m; in main() local
1225 assert(std::regex_search(s, m, std::wregex(L"(tour|to|t)+", in main()
1227 assert(m.size() == 2); in main()
1228 assert(!m.prefix().matched); in main()
1229 assert(m.prefix().first == s); in main()
1230 assert(m.prefix().second == m[0].first); in main()
1231 assert(!m.suffix().matched); in main()
1232 assert(m.suffix().first == m[0].second); in main()
1233 assert(m.suffix().second == m[0].second); in main()
1234 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1235 assert(m.position(0) == 0); in main()
1236 assert(m.str(0) == s); in main()
1237 assert(m.length(1) == 4); in main()
1238 assert(m.position(1) == 3); in main()
1239 assert(m.str(1) == L"tour"); in main()
1242 std::wcmatch m; in main() local
1244 assert(!std::regex_search(s, m, std::wregex(L"-(.*),\1-", std::regex_constants::extended))); in main()
1245 assert(m.size() == 0); in main()
1248 std::wcmatch m; in main() local
1250 assert(std::regex_search(s, m, std::wregex(L"-.*,.*-", std::regex_constants::extended))); in main()
1251 assert(m.size() == 1); in main()
1252 assert(!m.prefix().matched); in main()
1253 assert(m.prefix().first == s); in main()
1254 assert(m.prefix().second == m[0].first); in main()
1255 assert(!m.suffix().matched); in main()
1256 assert(m.suffix().first == m[0].second); in main()
1257 assert(m.suffix().second == m[0].second); in main()
1258 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1259 assert(m.position(0) == 0); in main()
1260 assert(m.str(0) == s); in main()
1263 std::wcmatch m; in main() local
1265 assert(std::regex_search(s, m, std::wregex(L"^[a]$", in main()
1267 assert(m.size() == 1); in main()
1268 assert(!m.prefix().matched); in main()
1269 assert(m.prefix().first == s); in main()
1270 assert(m.prefix().second == m[0].first); in main()
1271 assert(!m.suffix().matched); in main()
1272 assert(m.suffix().first == m[0].second); in main()
1273 assert(m.suffix().second == m[0].second); in main()
1274 assert(m.length(0) == 1); in main()
1275 assert(m.position(0) == 0); in main()
1276 assert(m.str(0) == L"a"); in main()
1279 std::wcmatch m; in main() local
1281 assert(std::regex_search(s, m, std::wregex(L"^[ab]$", in main()
1283 assert(m.size() == 1); in main()
1284 assert(!m.prefix().matched); in main()
1285 assert(m.prefix().first == s); in main()
1286 assert(m.prefix().second == m[0].first); in main()
1287 assert(!m.suffix().matched); in main()
1288 assert(m.suffix().first == m[0].second); in main()
1289 assert(m.suffix().second == m[0].second); in main()
1290 assert(m.length(0) == 1); in main()
1291 assert(m.position(0) == 0); in main()
1292 assert(m.str(0) == L"a"); in main()
1295 std::wcmatch m; in main() local
1297 assert(std::regex_search(s, m, std::wregex(L"^[a-f]$", in main()
1299 assert(m.size() == 1); in main()
1300 assert(!m.prefix().matched); in main()
1301 assert(m.prefix().first == s); in main()
1302 assert(m.prefix().second == m[0].first); in main()
1303 assert(!m.suffix().matched); in main()
1304 assert(m.suffix().first == m[0].second); in main()
1305 assert(m.suffix().second == m[0].second); in main()
1306 assert(m.length(0) == 1); in main()
1307 assert(m.position(0) == 0); in main()
1308 assert(m.str(0) == s); in main()
1311 std::wcmatch m; in main() local
1313 assert(!std::regex_search(s, m, std::wregex(L"^[a-f]$", in main()
1315 assert(m.size() == 0); in main()
1318 std::wcmatch m; in main() local
1320 assert(std::regex_search(s, m, std::wregex(L"q[^u]", in main()
1322 assert(m.size() == 1); in main()
1323 assert(m.prefix().matched); in main()
1324 assert(m.prefix().first == s); in main()
1325 assert(m.prefix().second == m[0].first); in main()
1326 assert(!m.suffix().matched); in main()
1327 assert(m.suffix().first == m[0].second); in main()
1328 assert(m.suffix().second == m[0].second); in main()
1329 assert(m.length(0) == 2); in main()
1330 assert(m.position(0) == 3); in main()
1331 assert(m.str(0) == L"qi"); in main()
1334 std::wcmatch m; in main() local
1336 assert(!std::regex_search(s, m, std::wregex(L"q[^u]", in main()
1338 assert(m.size() == 0); in main()
1341 std::wcmatch m; in main() local
1343 assert(std::regex_search(s, m, std::wregex(L"A[[:lower:]]B", in main()
1345 assert(m.size() == 1); in main()
1346 assert(!m.prefix().matched); in main()
1347 assert(m.prefix().first == s); in main()
1348 assert(m.prefix().second == m[0].first); in main()
1349 assert(!m.suffix().matched); in main()
1350 assert(m.suffix().first == m[0].second); in main()
1351 assert(m.suffix().second == m[0].second); in main()
1352 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1353 assert(m.position(0) == 0); in main()
1354 assert(m.str(0) == s); in main()
1357 std::wcmatch m; in main() local
1359 assert(!std::regex_search(s, m, std::wregex(L"A[[:lower:]]B", in main()
1361 assert(m.size() == 0); in main()
1364 std::wcmatch m; in main() local
1366 assert(std::regex_search(s, m, std::wregex(L"A[^[:lower:]]B", in main()
1368 assert(m.size() == 1); in main()
1369 assert(!m.prefix().matched); in main()
1370 assert(m.prefix().first == s); in main()
1371 assert(m.prefix().second == m[0].first); in main()
1372 assert(!m.suffix().matched); in main()
1373 assert(m.suffix().first == m[0].second); in main()
1374 assert(m.suffix().second == m[0].second); in main()
1375 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1376 assert(m.position(0) == 0); in main()
1377 assert(m.str(0) == s); in main()
1380 std::wcmatch m; in main() local
1382 assert(!std::regex_search(s, m, std::wregex(L"A[^[:lower:]]B", in main()
1384 assert(m.size() == 0); in main()
1387 std::wcmatch m; in main() local
1389 assert(!std::regex_search(s, m, std::wregex(L"A[^[:lower:]0-9]B", in main()
1391 assert(m.size() == 0); in main()
1394 std::wcmatch m; in main() local
1396 assert(std::regex_search(s, m, std::wregex(L"A[^[:lower:]0-9]B", in main()
1398 assert(m.size() == 1); in main()
1399 assert(!m.prefix().matched); in main()
1400 assert(m.prefix().first == s); in main()
1401 assert(m.prefix().second == m[0].first); in main()
1402 assert(!m.suffix().matched); in main()
1403 assert(m.suffix().first == m[0].second); in main()
1404 assert(m.suffix().second == m[0].second); in main()
1405 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1406 assert(m.position(0) == 0); in main()
1407 assert(m.str(0) == s); in main()
1410 std::wcmatch m; in main() local
1412 assert(std::regex_search(s, m, std::wregex(L"[a[.hyphen.]z]", in main()
1414 assert(m.size() == 1); in main()
1415 assert(!m.prefix().matched); in main()
1416 assert(m.prefix().first == s); in main()
1417 assert(m.prefix().second == m[0].first); in main()
1418 assert(!m.suffix().matched); in main()
1419 assert(m.suffix().first == m[0].second); in main()
1420 assert(m.suffix().second == m[0].second); in main()
1421 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1422 assert(m.position(0) == 0); in main()
1423 assert(m.str(0) == s); in main()
1426 std::wcmatch m; in main() local
1428 assert(std::regex_search(s, m, std::wregex(L"[a[.hyphen.]z]", in main()
1430 assert(m.size() == 1); in main()
1431 assert(!m.prefix().matched); in main()
1432 assert(m.prefix().first == s); in main()
1433 assert(m.prefix().second == m[0].first); in main()
1434 assert(!m.suffix().matched); in main()
1435 assert(m.suffix().first == m[0].second); in main()
1436 assert(m.suffix().second == m[0].second); in main()
1437 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1438 assert(m.position(0) == 0); in main()
1439 assert(m.str(0) == s); in main()
1442 std::wcmatch m; in main() local
1444 assert(!std::regex_search(s, m, std::wregex(L"[a[.hyphen.]z]", in main()
1446 assert(m.size() == 0); in main()
1450 std::wcmatch m; in main() local
1452 assert(std::regex_search(s, m, std::wregex(L"[a[=M=]z]", in main()
1454 assert(m.size() == 1); in main()
1455 assert(!m.prefix().matched); in main()
1456 assert(m.prefix().first == s); in main()
1457 assert(m.prefix().second == m[0].first); in main()
1458 assert(!m.suffix().matched); in main()
1459 assert(m.suffix().first == m[0].second); in main()
1460 assert(m.suffix().second == m[0].second); in main()
1461 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1462 assert(m.position(0) == 0); in main()
1463 assert(m.str(0) == s); in main()
1466 std::wcmatch m; in main() local
1468 assert(std::regex_search(s, m, std::wregex(L"[a[.ch.]z]", in main()
1470 assert(m.size() == 1); in main()
1471 assert(!m.prefix().matched); in main()
1472 assert(m.prefix().first == s); in main()
1473 assert(m.prefix().second == m[0].first); in main()
1474 assert(!m.suffix().matched); in main()
1475 assert(m.suffix().first == m[0].second); in main()
1476 assert(m.suffix().second == m[0].second); in main()
1477 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1478 assert(m.position(0) == 0); in main()
1479 assert(m.str(0) == s); in main()
1483 std::wcmatch m; in main() local
1485 assert(!std::regex_search(s, m, std::wregex(L"[a[=M=]z]", in main()
1487 assert(m.size() == 0); in main()
1490 std::wcmatch m; in main() local
1492 assert(std::regex_search(s, m, std::wregex(L"[ace1-9]*", in main()
1494 assert(m.size() == 1); in main()
1495 assert(!m.prefix().matched); in main()
1496 assert(m.prefix().first == s); in main()
1497 assert(m.prefix().second == m[0].first); in main()
1498 assert(m.suffix().matched); in main()
1499 assert(m.suffix().first == m[0].second); in main()
1500 assert(m.suffix().second == s + std::char_traits<wchar_t>::length(s)); in main()
1501 assert(m.length(0) == 0); in main()
1502 assert(m.position(0) == 0); in main()
1503 assert(m.str(0) == L""); in main()
1506 std::wcmatch m; in main() local
1508 assert(std::regex_search(s, m, std::wregex(L"[ace1-9]+", in main()
1510 assert(m.size() == 1); in main()
1511 assert(m.prefix().matched); in main()
1512 assert(m.prefix().first == s); in main()
1513 assert(m.prefix().second == m[0].first); in main()
1514 assert(m.suffix().matched); in main()
1515 assert(m.suffix().first == m[0].second); in main()
1516 assert(m.suffix().second == s + std::char_traits<wchar_t>::length(s)); in main()
1517 assert(m.length(0) == 6); in main()
1518 assert(m.position(0) == 1); in main()
1519 assert(m.str(0) == L"1a45ce"); in main()
1527 std::match_results<BI> m; in main() local
1530 assert(std::regex_search(BI(s), BI(s+ss), m, regex)); in main()
1531 assert(m.size() == 1); in main()
1532 assert(!m.prefix().matched); in main()
1533 assert(m.prefix().first == BI(s)); in main()
1534 assert(m.prefix().second == m[0].first); in main()
1535 assert(!m.suffix().matched); in main()
1536 assert(m.suffix().first == m[0].second); in main()
1537 assert(m.suffix().second == m[0].second); in main()
1538 assert(m.length(0) == 4); in main()
1539 assert(m.position(0) == 0); in main()
1540 assert(m.str(0) == s); in main()