Lines Matching refs:m
32 std::cmatch m; in main() local
34 assert(std::regex_match(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_match(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_match(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_match(s, m, std::regex("ab", std::regex_constants::extended))); in main()
73 assert(m.size() == 0); in main()
76 std::cmatch m; in main() local
78 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::extended), in main()
80 assert(m.size() == 0); in main()
83 std::cmatch m; in main() local
85 assert(!std::regex_match(s, m, std::regex("bc", std::regex_constants::extended))); in main()
86 assert(m.size() == 0); in main()
89 std::cmatch m; in main() local
91 assert(std::regex_match(s, m, std::regex("ab*c", std::regex_constants::extended))); in main()
92 assert(m.size() == 1); in main()
93 assert(!m.prefix().matched); in main()
94 assert(m.prefix().first == s); in main()
95 assert(m.prefix().second == m[0].first); in main()
96 assert(!m.suffix().matched); in main()
97 assert(m.suffix().first == m[0].second); in main()
98 assert(m.suffix().second == s+4); in main()
99 assert(m.length(0) == 4); in main()
100 assert(m.position(0) == 0); in main()
101 assert(m.str(0) == s); in main()
104 std::cmatch m; in main() local
106 assert(std::regex_match(s, m, std::regex("(ab)*c", std::regex_constants::extended))); in main()
107 assert(m.size() == 2); in main()
108 assert(!m.prefix().matched); in main()
109 assert(m.prefix().first == s); in main()
110 assert(m.prefix().second == m[0].first); in main()
111 assert(!m.suffix().matched); in main()
112 assert(m.suffix().first == m[0].second); in main()
113 assert(m.suffix().second == s+5); in main()
114 assert(m.length(0) == 5); in main()
115 assert(m.position(0) == 0); in main()
116 assert(m.str(0) == s); in main()
117 assert(m.length(1) == 2); in main()
118 assert(m.position(1) == 2); in main()
119 assert(m.str(1) == "ab"); in main()
122 std::cmatch m; in main() local
124 assert(!std::regex_match(s, m, std::regex("cd((e)fg)hi", in main()
126 assert(m.size() == 0); in main()
129 std::cmatch m; in main() local
131 assert(std::regex_match(s, m, std::regex("^abc", std::regex_constants::extended))); in main()
132 assert(m.size() == 1); in main()
133 assert(!m.prefix().matched); in main()
134 assert(m.prefix().first == s); in main()
135 assert(m.prefix().second == m[0].first); in main()
136 assert(!m.suffix().matched); in main()
137 assert(m.suffix().first == m[0].second); in main()
138 assert(m.suffix().second == s+3); in main()
139 assert(m.length(0) == 3); in main()
140 assert(m.position(0) == 0); in main()
141 assert(m.str(0) == s); in main()
144 std::cmatch m; in main() local
146 assert(!std::regex_match(s, m, std::regex("^abc", std::regex_constants::extended))); in main()
147 assert(m.size() == 0); in main()
150 std::cmatch m; in main() local
152 assert(!std::regex_match(s, m, std::regex("^abc", std::regex_constants::extended))); in main()
153 assert(m.size() == 0); in main()
156 std::cmatch m; in main() local
158 assert(std::regex_match(s, m, std::regex("abc$", std::regex_constants::extended))); in main()
159 assert(m.size() == 1); in main()
160 assert(!m.prefix().matched); in main()
161 assert(m.prefix().first == s); in main()
162 assert(m.prefix().second == m[0].first); in main()
163 assert(!m.suffix().matched); in main()
164 assert(m.suffix().first == m[0].second); in main()
165 assert(m.suffix().second == s+3); in main()
166 assert(m.length(0) == 3); in main()
167 assert(m.position(0) == 0); in main()
168 assert(m.str(0) == s); in main()
171 std::cmatch m; in main() local
173 assert(!std::regex_match(s, m, std::regex("abc$", std::regex_constants::extended))); in main()
174 assert(m.size() == 0); in main()
177 std::cmatch m; in main() local
179 assert(!std::regex_match(s, m, std::regex("abc$", std::regex_constants::extended))); in main()
180 assert(m.size() == 0); in main()
183 std::cmatch m; in main() local
185 assert(std::regex_match(s, m, std::regex("a.c", std::regex_constants::extended))); in main()
186 assert(m.size() == 1); in main()
187 assert(!m.prefix().matched); in main()
188 assert(m.prefix().first == s); in main()
189 assert(m.prefix().second == m[0].first); in main()
190 assert(!m.suffix().matched); in main()
191 assert(m.suffix().first == m[0].second); in main()
192 assert(m.suffix().second == s+3); in main()
193 assert(m.length(0) == 3); in main()
194 assert(m.position(0) == 0); in main()
195 assert(m.str(0) == s); in main()
198 std::cmatch m; in main() local
200 assert(std::regex_match(s, m, std::regex("a.c", 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_match(s, m, std::regex("a.c", 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+3); in main()
223 assert(m.length(0) == 3); in main()
224 assert(m.position(0) == 0); in main()
225 assert(m.str(0) == s); in main()
228 std::cmatch m; in main() local
230 assert(std::regex_match(s, m, std::regex("(.*).*", std::regex_constants::extended))); in main()
231 assert(m.size() == 2); in main()
232 assert(!m.prefix().matched); in main()
233 assert(m.prefix().first == s); in main()
234 assert(m.prefix().second == m[0].first); in main()
235 assert(!m.suffix().matched); in main()
236 assert(m.suffix().first == m[0].second); in main()
237 assert(m.suffix().second == s+6); in main()
238 assert(m.length(0) == 6); in main()
239 assert(m.position(0) == 0); in main()
240 assert(m.str(0) == s); in main()
241 assert(m.length(1) == 6); in main()
242 assert(m.position(1) == 0); in main()
243 assert(m.str(1) == s); in main()
246 std::cmatch m; in main() local
248 assert(!std::regex_match(s, m, std::regex("(a*)*", std::regex_constants::extended))); in main()
249 assert(m.size() == 0); in main()
252 std::cmatch m; in main() local
254 assert(!std::regex_match(s, m, std::regex("ab{3,5}c", std::regex_constants::extended))); in main()
255 assert(m.size() == 0); in main()
258 std::cmatch m; in main() local
260 assert(std::regex_match(s, m, std::regex("ab{3,5}c", std::regex_constants::extended))); in main()
261 assert(m.size() == 1); in main()
262 assert(!m.prefix().matched); in main()
263 assert(m.prefix().first == s); in main()
264 assert(m.prefix().second == m[0].first); in main()
265 assert(!m.suffix().matched); in main()
266 assert(m.suffix().first == m[0].second); in main()
267 assert(m.suffix().second == m[0].second); in main()
268 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
269 assert(m.position(0) == 0); in main()
270 assert(m.str(0) == s); in main()
273 std::cmatch m; in main() local
275 assert(std::regex_match(s, m, std::regex("ab{3,5}c", std::regex_constants::extended))); in main()
276 assert(m.size() == 1); in main()
277 assert(!m.prefix().matched); in main()
278 assert(m.prefix().first == s); in main()
279 assert(m.prefix().second == m[0].first); in main()
280 assert(!m.suffix().matched); in main()
281 assert(m.suffix().first == m[0].second); in main()
282 assert(m.suffix().second == m[0].second); in main()
283 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
284 assert(m.position(0) == 0); in main()
285 assert(m.str(0) == s); in main()
288 std::cmatch m; in main() local
290 assert(std::regex_match(s, m, std::regex("ab{3,5}c", std::regex_constants::extended))); in main()
291 assert(m.size() == 1); in main()
292 assert(!m.prefix().matched); in main()
293 assert(m.prefix().first == s); in main()
294 assert(m.prefix().second == m[0].first); in main()
295 assert(!m.suffix().matched); in main()
296 assert(m.suffix().first == m[0].second); in main()
297 assert(m.suffix().second == m[0].second); in main()
298 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
299 assert(m.position(0) == 0); in main()
300 assert(m.str(0) == s); in main()
303 std::cmatch m; in main() local
305 assert(!std::regex_match(s, m, std::regex("ab{3,5}c", std::regex_constants::extended))); in main()
306 assert(m.size() == 0); in main()
309 std::cmatch m; in main() local
311 assert(!std::regex_match(s, m, std::regex("ab{3,5}c", std::regex_constants::extended))); in main()
312 assert(m.size() == 0); in main()
315 std::cmatch m; in main() local
317 assert(!std::regex_match(s, m, std::regex("a.{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_match(s, m, std::regex("a.{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_match(s, m, std::regex("a.{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_match(s, m, std::regex("a.{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_match(s, m, std::regex("a.{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_match(s, m, std::regex("tour|to|tournament", in main()
376 assert(m.size() == 1); in main()
377 assert(!m.prefix().matched); in main()
378 assert(m.prefix().first == s); in main()
379 assert(m.prefix().second == m[0].first); in main()
380 assert(!m.suffix().matched); in main()
381 assert(m.suffix().first == m[0].second); in main()
382 assert(m.suffix().second == m[0].second); in main()
383 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
384 assert(m.position(0) == 0); in main()
385 assert(m.str(0) == s); in main()
388 std::cmatch m; in main() local
390 assert(std::regex_match(s, m, std::regex("(tour|to|tournament)+", in main()
392 assert(m.size() == 1); in main()
393 assert(!m.prefix().matched); in main()
394 assert(m.prefix().first == s); in main()
395 assert(m.prefix().second == m[0].first); in main()
396 assert(!m.suffix().matched); in main()
397 assert(m.suffix().first == m[0].second); in main()
398 assert(m.suffix().second == m[0].second); in main()
399 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
400 assert(m.position(0) == 0); in main()
401 assert(m.str(0) == s); in main()
404 std::cmatch m; in main() local
406 assert(std::regex_match(s, m, std::regex("(tour|to|t)+", in main()
408 assert(m.size() == 2); in main()
409 assert(!m.prefix().matched); in main()
410 assert(m.prefix().first == s); in main()
411 assert(m.prefix().second == m[0].first); in main()
412 assert(!m.suffix().matched); in main()
413 assert(m.suffix().first == m[0].second); in main()
414 assert(m.suffix().second == m[0].second); in main()
415 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
416 assert(m.position(0) == 0); in main()
417 assert(m.str(0) == s); in main()
418 assert(m.length(1) == 4); in main()
419 assert(m.position(1) == 3); in main()
420 assert(m.str(1) == "tour"); in main()
423 std::cmatch m; in main() local
425 assert(!std::regex_match(s, m, std::regex("-(.*),\1-", std::regex_constants::extended))); in main()
426 assert(m.size() == 0); in main()
429 std::cmatch m; in main() local
431 assert(std::regex_match(s, m, std::regex("-.*,.*-", std::regex_constants::extended))); in main()
432 assert(m.size() == 1); in main()
433 assert(!m.prefix().matched); in main()
434 assert(m.prefix().first == s); in main()
435 assert(m.prefix().second == m[0].first); in main()
436 assert(!m.suffix().matched); in main()
437 assert(m.suffix().first == m[0].second); in main()
438 assert(m.suffix().second == m[0].second); in main()
439 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
440 assert(m.position(0) == 0); in main()
441 assert(m.str(0) == s); in main()
444 std::cmatch m; in main() local
446 assert(std::regex_match(s, m, std::regex("^[a]$", in main()
448 assert(m.size() == 1); in main()
449 assert(!m.prefix().matched); in main()
450 assert(m.prefix().first == s); in main()
451 assert(m.prefix().second == m[0].first); in main()
452 assert(!m.suffix().matched); in main()
453 assert(m.suffix().first == m[0].second); in main()
454 assert(m.suffix().second == m[0].second); in main()
455 assert(m.length(0) == 1); in main()
456 assert(m.position(0) == 0); in main()
457 assert(m.str(0) == "a"); in main()
460 std::cmatch m; in main() local
462 assert(std::regex_match(s, m, std::regex("^[ab]$", in main()
464 assert(m.size() == 1); in main()
465 assert(!m.prefix().matched); in main()
466 assert(m.prefix().first == s); in main()
467 assert(m.prefix().second == m[0].first); in main()
468 assert(!m.suffix().matched); in main()
469 assert(m.suffix().first == m[0].second); in main()
470 assert(m.suffix().second == m[0].second); in main()
471 assert(m.length(0) == 1); in main()
472 assert(m.position(0) == 0); in main()
473 assert(m.str(0) == "a"); in main()
476 std::cmatch m; in main() local
478 assert(std::regex_match(s, m, std::regex("^[a-f]$", in main()
480 assert(m.size() == 1); in main()
481 assert(!m.prefix().matched); in main()
482 assert(m.prefix().first == s); in main()
483 assert(m.prefix().second == m[0].first); in main()
484 assert(!m.suffix().matched); in main()
485 assert(m.suffix().first == m[0].second); in main()
486 assert(m.suffix().second == m[0].second); in main()
487 assert(m.length(0) == 1); in main()
488 assert(m.position(0) == 0); in main()
489 assert(m.str(0) == s); in main()
492 std::cmatch m; in main() local
494 assert(!std::regex_match(s, m, std::regex("^[a-f]$", in main()
496 assert(m.size() == 0); in main()
499 std::cmatch m; in main() local
501 assert(!std::regex_match(s, m, std::regex("q[^u]", in main()
503 assert(m.size() == 0); in main()
506 std::cmatch m; in main() local
508 assert(!std::regex_match(s, m, std::regex("q[^u]", in main()
510 assert(m.size() == 0); in main()
513 std::cmatch m; in main() local
515 assert(std::regex_match(s, m, std::regex("A[[:lower:]]B", in main()
517 assert(m.size() == 1); in main()
518 assert(!m.prefix().matched); in main()
519 assert(m.prefix().first == s); in main()
520 assert(m.prefix().second == m[0].first); in main()
521 assert(!m.suffix().matched); in main()
522 assert(m.suffix().first == m[0].second); in main()
523 assert(m.suffix().second == m[0].second); in main()
524 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
525 assert(m.position(0) == 0); in main()
526 assert(m.str(0) == s); in main()
529 std::cmatch m; in main() local
531 assert(!std::regex_match(s, m, std::regex("A[[:lower:]]B", in main()
533 assert(m.size() == 0); in main()
536 std::cmatch m; in main() local
538 assert(std::regex_match(s, m, std::regex("A[^[:lower:]]B", in main()
540 assert(m.size() == 1); in main()
541 assert(!m.prefix().matched); in main()
542 assert(m.prefix().first == s); in main()
543 assert(m.prefix().second == m[0].first); in main()
544 assert(!m.suffix().matched); in main()
545 assert(m.suffix().first == m[0].second); in main()
546 assert(m.suffix().second == m[0].second); in main()
547 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
548 assert(m.position(0) == 0); in main()
549 assert(m.str(0) == s); in main()
552 std::cmatch m; in main() local
554 assert(!std::regex_match(s, m, std::regex("A[^[:lower:]]B", in main()
556 assert(m.size() == 0); in main()
559 std::cmatch m; in main() local
561 assert(!std::regex_match(s, m, std::regex("A[^[:lower:]0-9]B", in main()
563 assert(m.size() == 0); in main()
566 std::cmatch m; in main() local
568 assert(std::regex_match(s, m, std::regex("A[^[:lower:]0-9]B", in main()
570 assert(m.size() == 1); in main()
571 assert(!m.prefix().matched); in main()
572 assert(m.prefix().first == s); in main()
573 assert(m.prefix().second == m[0].first); in main()
574 assert(!m.suffix().matched); in main()
575 assert(m.suffix().first == m[0].second); in main()
576 assert(m.suffix().second == m[0].second); in main()
577 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
578 assert(m.position(0) == 0); in main()
579 assert(m.str(0) == s); in main()
582 std::cmatch m; in main() local
584 assert(std::regex_match(s, m, std::regex("[a[.hyphen.]z]", in main()
586 assert(m.size() == 1); in main()
587 assert(!m.prefix().matched); in main()
588 assert(m.prefix().first == s); in main()
589 assert(m.prefix().second == m[0].first); in main()
590 assert(!m.suffix().matched); in main()
591 assert(m.suffix().first == m[0].second); in main()
592 assert(m.suffix().second == m[0].second); in main()
593 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
594 assert(m.position(0) == 0); in main()
595 assert(m.str(0) == s); in main()
598 std::cmatch m; in main() local
600 assert(std::regex_match(s, m, std::regex("[a[.hyphen.]z]", in main()
602 assert(m.size() == 1); in main()
603 assert(!m.prefix().matched); in main()
604 assert(m.prefix().first == s); in main()
605 assert(m.prefix().second == m[0].first); in main()
606 assert(!m.suffix().matched); in main()
607 assert(m.suffix().first == m[0].second); in main()
608 assert(m.suffix().second == m[0].second); in main()
609 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
610 assert(m.position(0) == 0); in main()
611 assert(m.str(0) == s); in main()
614 std::cmatch m; in main() local
616 assert(!std::regex_match(s, m, std::regex("[a[.hyphen.]z]", in main()
618 assert(m.size() == 0); in main()
622 std::cmatch m; in main() local
624 assert(std::regex_match(s, m, std::regex("[a[=M=]z]", in main()
626 assert(m.size() == 1); in main()
627 assert(!m.prefix().matched); in main()
628 assert(m.prefix().first == s); in main()
629 assert(m.prefix().second == m[0].first); in main()
630 assert(!m.suffix().matched); in main()
631 assert(m.suffix().first == m[0].second); in main()
632 assert(m.suffix().second == m[0].second); in main()
633 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
634 assert(m.position(0) == 0); in main()
635 assert(m.str(0) == s); in main()
638 std::cmatch m; in main() local
640 assert(std::regex_match(s, m, std::regex("[a[.ch.]z]", 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()
655 std::cmatch m; in main() local
657 assert(!std::regex_match(s, m, std::regex("[a[=M=]z]", in main()
659 assert(m.size() == 0); in main()
662 std::cmatch m; in main() local
664 assert(!std::regex_match(s, m, std::regex("[ace1-9]*", in main()
666 assert(m.size() == 0); in main()
669 std::cmatch m; in main() local
671 assert(!std::regex_match(s, m, std::regex("[ace1-9]+", in main()
673 assert(m.size() == 0); in main()
681 std::match_results<BI> m; in main() local
684 assert(std::regex_match(BI(s), BI(s+ss), m, regex)); in main()
685 assert(m.size() == 1); in main()
686 assert(!m.prefix().matched); in main()
687 assert(m.prefix().first == BI(s)); in main()
688 assert(m.prefix().second == m[0].first); in main()
689 assert(!m.suffix().matched); in main()
690 assert(m.suffix().first == m[0].second); in main()
691 assert(m.suffix().second == m[0].second); in main()
692 assert(m.length(0) == 4); in main()
693 assert(m.position(0) == 0); in main()
694 assert(m.str(0) == s); in main()
698 std::wcmatch m; in main() local
700 assert(std::regex_match(s, m, std::wregex(L"a", std::regex_constants::extended))); in main()
701 assert(m.size() == 1); in main()
702 assert(!m.empty()); in main()
703 assert(!m.prefix().matched); in main()
704 assert(m.prefix().first == s); in main()
705 assert(m.prefix().second == m[0].first); in main()
706 assert(!m.suffix().matched); in main()
707 assert(m.suffix().first == m[0].second); in main()
708 assert(m.suffix().second == s+1); in main()
709 assert(m.length(0) == 1); in main()
710 assert(m.position(0) == 0); in main()
711 assert(m.str(0) == L"a"); in main()
714 std::wcmatch m; in main() local
716 assert(std::regex_match(s, m, std::wregex(L"ab", std::regex_constants::extended))); in main()
717 assert(m.size() == 1); in main()
718 assert(!m.prefix().matched); in main()
719 assert(m.prefix().first == s); in main()
720 assert(m.prefix().second == m[0].first); in main()
721 assert(!m.suffix().matched); in main()
722 assert(m.suffix().first == m[0].second); in main()
723 assert(m.suffix().second == s+2); in main()
724 assert(m.length(0) == 2); in main()
725 assert(m.position(0) == 0); in main()
726 assert(m.str(0) == L"ab"); in main()
729 std::wcmatch m; in main() local
731 assert(!std::regex_match(s, m, std::wregex(L"ba", std::regex_constants::extended))); in main()
732 assert(m.size() == 0); in main()
733 assert(m.empty()); in main()
736 std::wcmatch m; in main() local
738 assert(!std::regex_match(s, m, std::wregex(L"ab", std::regex_constants::extended))); in main()
739 assert(m.size() == 0); in main()
742 std::wcmatch m; in main() local
744 assert(!std::regex_match(s, m, std::wregex(L"ab", std::regex_constants::extended), in main()
746 assert(m.size() == 0); in main()
749 std::wcmatch m; in main() local
751 assert(!std::regex_match(s, m, std::wregex(L"bc", std::regex_constants::extended))); in main()
752 assert(m.size() == 0); in main()
755 std::wcmatch m; in main() local
757 assert(std::regex_match(s, m, std::wregex(L"ab*c", std::regex_constants::extended))); in main()
758 assert(m.size() == 1); in main()
759 assert(!m.prefix().matched); in main()
760 assert(m.prefix().first == s); in main()
761 assert(m.prefix().second == m[0].first); in main()
762 assert(!m.suffix().matched); in main()
763 assert(m.suffix().first == m[0].second); in main()
764 assert(m.suffix().second == s+4); in main()
765 assert(m.length(0) == 4); in main()
766 assert(m.position(0) == 0); in main()
767 assert(m.str(0) == s); in main()
770 std::wcmatch m; in main() local
772 assert(std::regex_match(s, m, std::wregex(L"(ab)*c", std::regex_constants::extended))); in main()
773 assert(m.size() == 2); in main()
774 assert(!m.prefix().matched); in main()
775 assert(m.prefix().first == s); in main()
776 assert(m.prefix().second == m[0].first); in main()
777 assert(!m.suffix().matched); in main()
778 assert(m.suffix().first == m[0].second); in main()
779 assert(m.suffix().second == s+5); in main()
780 assert(m.length(0) == 5); in main()
781 assert(m.position(0) == 0); in main()
782 assert(m.str(0) == s); in main()
783 assert(m.length(1) == 2); in main()
784 assert(m.position(1) == 2); in main()
785 assert(m.str(1) == L"ab"); in main()
788 std::wcmatch m; in main() local
790 assert(!std::regex_match(s, m, std::wregex(L"cd((e)fg)hi", in main()
792 assert(m.size() == 0); in main()
795 std::wcmatch m; in main() local
797 assert(std::regex_match(s, m, std::wregex(L"^abc", std::regex_constants::extended))); in main()
798 assert(m.size() == 1); in main()
799 assert(!m.prefix().matched); in main()
800 assert(m.prefix().first == s); in main()
801 assert(m.prefix().second == m[0].first); in main()
802 assert(!m.suffix().matched); in main()
803 assert(m.suffix().first == m[0].second); in main()
804 assert(m.suffix().second == s+3); in main()
805 assert(m.length(0) == 3); in main()
806 assert(m.position(0) == 0); in main()
807 assert(m.str(0) == s); in main()
810 std::wcmatch m; in main() local
812 assert(!std::regex_match(s, m, std::wregex(L"^abc", std::regex_constants::extended))); in main()
813 assert(m.size() == 0); in main()
816 std::wcmatch m; in main() local
818 assert(!std::regex_match(s, m, std::wregex(L"^abc", std::regex_constants::extended))); in main()
819 assert(m.size() == 0); in main()
822 std::wcmatch m; in main() local
824 assert(std::regex_match(s, m, std::wregex(L"abc$", std::regex_constants::extended))); in main()
825 assert(m.size() == 1); in main()
826 assert(!m.prefix().matched); in main()
827 assert(m.prefix().first == s); in main()
828 assert(m.prefix().second == m[0].first); in main()
829 assert(!m.suffix().matched); in main()
830 assert(m.suffix().first == m[0].second); in main()
831 assert(m.suffix().second == s+3); in main()
832 assert(m.length(0) == 3); in main()
833 assert(m.position(0) == 0); in main()
834 assert(m.str(0) == s); in main()
837 std::wcmatch m; in main() local
839 assert(!std::regex_match(s, m, std::wregex(L"abc$", std::regex_constants::extended))); in main()
840 assert(m.size() == 0); in main()
843 std::wcmatch m; in main() local
845 assert(!std::regex_match(s, m, std::wregex(L"abc$", std::regex_constants::extended))); in main()
846 assert(m.size() == 0); in main()
849 std::wcmatch m; in main() local
851 assert(std::regex_match(s, m, std::wregex(L"a.c", std::regex_constants::extended))); in main()
852 assert(m.size() == 1); in main()
853 assert(!m.prefix().matched); in main()
854 assert(m.prefix().first == s); in main()
855 assert(m.prefix().second == m[0].first); in main()
856 assert(!m.suffix().matched); in main()
857 assert(m.suffix().first == m[0].second); in main()
858 assert(m.suffix().second == s+3); in main()
859 assert(m.length(0) == 3); in main()
860 assert(m.position(0) == 0); in main()
861 assert(m.str(0) == s); in main()
864 std::wcmatch m; in main() local
866 assert(std::regex_match(s, m, std::wregex(L"a.c", std::regex_constants::extended))); in main()
867 assert(m.size() == 1); in main()
868 assert(!m.prefix().matched); in main()
869 assert(m.prefix().first == s); in main()
870 assert(m.prefix().second == m[0].first); in main()
871 assert(!m.suffix().matched); in main()
872 assert(m.suffix().first == m[0].second); in main()
873 assert(m.suffix().second == s+3); in main()
874 assert(m.length(0) == 3); in main()
875 assert(m.position(0) == 0); in main()
876 assert(m.str(0) == s); in main()
879 std::wcmatch m; in main() local
881 assert(std::regex_match(s, m, std::wregex(L"a.c", std::regex_constants::extended))); in main()
882 assert(m.size() == 1); in main()
883 assert(!m.prefix().matched); in main()
884 assert(m.prefix().first == s); in main()
885 assert(m.prefix().second == m[0].first); in main()
886 assert(!m.suffix().matched); in main()
887 assert(m.suffix().first == m[0].second); in main()
888 assert(m.suffix().second == s+3); in main()
889 assert(m.length(0) == 3); in main()
890 assert(m.position(0) == 0); in main()
891 assert(m.str(0) == s); in main()
894 std::wcmatch m; in main() local
896 assert(std::regex_match(s, m, std::wregex(L"(.*).*", std::regex_constants::extended))); in main()
897 assert(m.size() == 2); in main()
898 assert(!m.prefix().matched); in main()
899 assert(m.prefix().first == s); in main()
900 assert(m.prefix().second == m[0].first); in main()
901 assert(!m.suffix().matched); in main()
902 assert(m.suffix().first == m[0].second); in main()
903 assert(m.suffix().second == s+6); in main()
904 assert(m.length(0) == 6); in main()
905 assert(m.position(0) == 0); in main()
906 assert(m.str(0) == s); in main()
907 assert(m.length(1) == 6); in main()
908 assert(m.position(1) == 0); in main()
909 assert(m.str(1) == s); in main()
912 std::wcmatch m; in main() local
914 assert(!std::regex_match(s, m, std::wregex(L"(a*)*", std::regex_constants::extended))); in main()
915 assert(m.size() == 0); in main()
918 std::wcmatch m; in main() local
920 assert(!std::regex_match(s, m, std::wregex(L"ab{3,5}c", std::regex_constants::extended))); in main()
921 assert(m.size() == 0); in main()
924 std::wcmatch m; in main() local
926 assert(std::regex_match(s, m, std::wregex(L"ab{3,5}c", std::regex_constants::extended))); in main()
927 assert(m.size() == 1); in main()
928 assert(!m.prefix().matched); in main()
929 assert(m.prefix().first == s); in main()
930 assert(m.prefix().second == m[0].first); in main()
931 assert(!m.suffix().matched); in main()
932 assert(m.suffix().first == m[0].second); in main()
933 assert(m.suffix().second == m[0].second); in main()
934 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
935 assert(m.position(0) == 0); in main()
936 assert(m.str(0) == s); in main()
939 std::wcmatch m; in main() local
941 assert(std::regex_match(s, m, std::wregex(L"ab{3,5}c", std::regex_constants::extended))); in main()
942 assert(m.size() == 1); in main()
943 assert(!m.prefix().matched); in main()
944 assert(m.prefix().first == s); in main()
945 assert(m.prefix().second == m[0].first); in main()
946 assert(!m.suffix().matched); in main()
947 assert(m.suffix().first == m[0].second); in main()
948 assert(m.suffix().second == m[0].second); in main()
949 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
950 assert(m.position(0) == 0); in main()
951 assert(m.str(0) == s); in main()
954 std::wcmatch m; in main() local
956 assert(std::regex_match(s, m, std::wregex(L"ab{3,5}c", 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 == m[0].second); in main()
964 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); 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_match(s, m, std::wregex(L"ab{3,5}c", std::regex_constants::extended))); in main()
972 assert(m.size() == 0); in main()
975 std::wcmatch m; in main() local
977 assert(!std::regex_match(s, m, std::wregex(L"ab{3,5}c", std::regex_constants::extended))); in main()
978 assert(m.size() == 0); in main()
981 std::wcmatch m; in main() local
983 assert(!std::regex_match(s, m, std::wregex(L"a.{3,5}c", std::regex_constants::extended))); in main()
984 assert(m.size() == 0); in main()
987 std::wcmatch m; in main() local
989 assert(std::regex_match(s, m, std::wregex(L"a.{3,5}c", std::regex_constants::extended))); in main()
990 assert(m.size() == 1); in main()
991 assert(!m.prefix().matched); in main()
992 assert(m.prefix().first == s); in main()
993 assert(m.prefix().second == m[0].first); in main()
994 assert(!m.suffix().matched); in main()
995 assert(m.suffix().first == m[0].second); in main()
996 assert(m.suffix().second == m[0].second); in main()
997 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
998 assert(m.position(0) == 0); in main()
999 assert(m.str(0) == s); in main()
1002 std::wcmatch m; in main() local
1004 assert(std::regex_match(s, m, std::wregex(L"a.{3,5}c", std::regex_constants::extended))); in main()
1005 assert(m.size() == 1); in main()
1006 assert(!m.prefix().matched); in main()
1007 assert(m.prefix().first == s); in main()
1008 assert(m.prefix().second == m[0].first); in main()
1009 assert(!m.suffix().matched); in main()
1010 assert(m.suffix().first == m[0].second); in main()
1011 assert(m.suffix().second == m[0].second); in main()
1012 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1013 assert(m.position(0) == 0); in main()
1014 assert(m.str(0) == s); in main()
1017 std::wcmatch m; in main() local
1019 assert(std::regex_match(s, m, std::wregex(L"a.{3,5}c", std::regex_constants::extended))); in main()
1020 assert(m.size() == 1); in main()
1021 assert(!m.prefix().matched); in main()
1022 assert(m.prefix().first == s); in main()
1023 assert(m.prefix().second == m[0].first); in main()
1024 assert(!m.suffix().matched); in main()
1025 assert(m.suffix().first == m[0].second); in main()
1026 assert(m.suffix().second == m[0].second); in main()
1027 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1028 assert(m.position(0) == 0); in main()
1029 assert(m.str(0) == s); in main()
1032 std::wcmatch m; in main() local
1034 assert(!std::regex_match(s, m, std::wregex(L"a.{3,5}c", std::regex_constants::extended))); in main()
1035 assert(m.size() == 0); in main()
1038 std::wcmatch m; in main() local
1040 assert(std::regex_match(s, m, std::wregex(L"tour|to|tournament", in main()
1042 assert(m.size() == 1); in main()
1043 assert(!m.prefix().matched); in main()
1044 assert(m.prefix().first == s); in main()
1045 assert(m.prefix().second == m[0].first); in main()
1046 assert(!m.suffix().matched); in main()
1047 assert(m.suffix().first == m[0].second); in main()
1048 assert(m.suffix().second == m[0].second); in main()
1049 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1050 assert(m.position(0) == 0); in main()
1051 assert(m.str(0) == s); in main()
1054 std::wcmatch m; in main() local
1056 assert(std::regex_match(s, m, std::wregex(L"(tour|to|tournament)+", in main()
1058 assert(m.size() == 1); in main()
1059 assert(!m.prefix().matched); in main()
1060 assert(m.prefix().first == s); in main()
1061 assert(m.prefix().second == m[0].first); in main()
1062 assert(!m.suffix().matched); in main()
1063 assert(m.suffix().first == m[0].second); in main()
1064 assert(m.suffix().second == m[0].second); in main()
1065 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1066 assert(m.position(0) == 0); in main()
1067 assert(m.str(0) == s); in main()
1070 std::wcmatch m; in main() local
1072 assert(std::regex_match(s, m, std::wregex(L"(tour|to|t)+", in main()
1074 assert(m.size() == 2); in main()
1075 assert(!m.prefix().matched); in main()
1076 assert(m.prefix().first == s); in main()
1077 assert(m.prefix().second == m[0].first); in main()
1078 assert(!m.suffix().matched); in main()
1079 assert(m.suffix().first == m[0].second); in main()
1080 assert(m.suffix().second == m[0].second); in main()
1081 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1082 assert(m.position(0) == 0); in main()
1083 assert(m.str(0) == s); in main()
1084 assert(m.length(1) == 4); in main()
1085 assert(m.position(1) == 3); in main()
1086 assert(m.str(1) == L"tour"); in main()
1089 std::wcmatch m; in main() local
1091 assert(!std::regex_match(s, m, std::wregex(L"-(.*),\1-", std::regex_constants::extended))); in main()
1092 assert(m.size() == 0); in main()
1095 std::wcmatch m; in main() local
1097 assert(std::regex_match(s, m, std::wregex(L"-.*,.*-", std::regex_constants::extended))); in main()
1098 assert(m.size() == 1); in main()
1099 assert(!m.prefix().matched); in main()
1100 assert(m.prefix().first == s); in main()
1101 assert(m.prefix().second == m[0].first); in main()
1102 assert(!m.suffix().matched); in main()
1103 assert(m.suffix().first == m[0].second); in main()
1104 assert(m.suffix().second == m[0].second); in main()
1105 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1106 assert(m.position(0) == 0); in main()
1107 assert(m.str(0) == s); in main()
1110 std::wcmatch m; in main() local
1112 assert(std::regex_match(s, m, std::wregex(L"^[a]$", in main()
1114 assert(m.size() == 1); in main()
1115 assert(!m.prefix().matched); in main()
1116 assert(m.prefix().first == s); in main()
1117 assert(m.prefix().second == m[0].first); in main()
1118 assert(!m.suffix().matched); in main()
1119 assert(m.suffix().first == m[0].second); in main()
1120 assert(m.suffix().second == m[0].second); in main()
1121 assert(m.length(0) == 1); in main()
1122 assert(m.position(0) == 0); in main()
1123 assert(m.str(0) == L"a"); in main()
1126 std::wcmatch m; in main() local
1128 assert(std::regex_match(s, m, std::wregex(L"^[ab]$", in main()
1130 assert(m.size() == 1); in main()
1131 assert(!m.prefix().matched); in main()
1132 assert(m.prefix().first == s); in main()
1133 assert(m.prefix().second == m[0].first); in main()
1134 assert(!m.suffix().matched); in main()
1135 assert(m.suffix().first == m[0].second); in main()
1136 assert(m.suffix().second == m[0].second); in main()
1137 assert(m.length(0) == 1); in main()
1138 assert(m.position(0) == 0); in main()
1139 assert(m.str(0) == L"a"); in main()
1142 std::wcmatch m; in main() local
1144 assert(std::regex_match(s, m, std::wregex(L"^[a-f]$", in main()
1146 assert(m.size() == 1); in main()
1147 assert(!m.prefix().matched); in main()
1148 assert(m.prefix().first == s); in main()
1149 assert(m.prefix().second == m[0].first); in main()
1150 assert(!m.suffix().matched); in main()
1151 assert(m.suffix().first == m[0].second); in main()
1152 assert(m.suffix().second == m[0].second); in main()
1153 assert(m.length(0) == 1); in main()
1154 assert(m.position(0) == 0); in main()
1155 assert(m.str(0) == s); in main()
1158 std::wcmatch m; in main() local
1160 assert(!std::regex_match(s, m, std::wregex(L"^[a-f]$", in main()
1162 assert(m.size() == 0); in main()
1165 std::wcmatch m; in main() local
1167 assert(!std::regex_match(s, m, std::wregex(L"q[^u]", in main()
1169 assert(m.size() == 0); in main()
1172 std::wcmatch m; in main() local
1174 assert(!std::regex_match(s, m, std::wregex(L"q[^u]", in main()
1176 assert(m.size() == 0); in main()
1179 std::wcmatch m; in main() local
1181 assert(std::regex_match(s, m, std::wregex(L"A[[:lower:]]B", in main()
1183 assert(m.size() == 1); in main()
1184 assert(!m.prefix().matched); in main()
1185 assert(m.prefix().first == s); in main()
1186 assert(m.prefix().second == m[0].first); in main()
1187 assert(!m.suffix().matched); in main()
1188 assert(m.suffix().first == m[0].second); in main()
1189 assert(m.suffix().second == m[0].second); in main()
1190 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1191 assert(m.position(0) == 0); in main()
1192 assert(m.str(0) == s); in main()
1195 std::wcmatch m; in main() local
1197 assert(!std::regex_match(s, m, std::wregex(L"A[[:lower:]]B", in main()
1199 assert(m.size() == 0); in main()
1202 std::wcmatch m; in main() local
1204 assert(std::regex_match(s, m, std::wregex(L"A[^[:lower:]]B", in main()
1206 assert(m.size() == 1); in main()
1207 assert(!m.prefix().matched); in main()
1208 assert(m.prefix().first == s); in main()
1209 assert(m.prefix().second == m[0].first); in main()
1210 assert(!m.suffix().matched); in main()
1211 assert(m.suffix().first == m[0].second); in main()
1212 assert(m.suffix().second == m[0].second); in main()
1213 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1214 assert(m.position(0) == 0); in main()
1215 assert(m.str(0) == s); in main()
1218 std::wcmatch m; in main() local
1220 assert(!std::regex_match(s, m, std::wregex(L"A[^[:lower:]]B", in main()
1222 assert(m.size() == 0); in main()
1225 std::wcmatch m; in main() local
1227 assert(!std::regex_match(s, m, std::wregex(L"A[^[:lower:]0-9]B", in main()
1229 assert(m.size() == 0); in main()
1232 std::wcmatch m; in main() local
1234 assert(std::regex_match(s, m, std::wregex(L"A[^[:lower:]0-9]B", in main()
1236 assert(m.size() == 1); in main()
1237 assert(!m.prefix().matched); in main()
1238 assert(m.prefix().first == s); in main()
1239 assert(m.prefix().second == m[0].first); in main()
1240 assert(!m.suffix().matched); in main()
1241 assert(m.suffix().first == m[0].second); in main()
1242 assert(m.suffix().second == m[0].second); in main()
1243 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1244 assert(m.position(0) == 0); in main()
1245 assert(m.str(0) == s); in main()
1248 std::wcmatch m; in main() local
1250 assert(std::regex_match(s, m, std::wregex(L"[a[.hyphen.]z]", in main()
1252 assert(m.size() == 1); in main()
1253 assert(!m.prefix().matched); in main()
1254 assert(m.prefix().first == s); in main()
1255 assert(m.prefix().second == m[0].first); in main()
1256 assert(!m.suffix().matched); in main()
1257 assert(m.suffix().first == m[0].second); in main()
1258 assert(m.suffix().second == m[0].second); in main()
1259 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1260 assert(m.position(0) == 0); in main()
1261 assert(m.str(0) == s); in main()
1264 std::wcmatch m; in main() local
1266 assert(std::regex_match(s, m, std::wregex(L"[a[.hyphen.]z]", in main()
1268 assert(m.size() == 1); in main()
1269 assert(!m.prefix().matched); in main()
1270 assert(m.prefix().first == s); in main()
1271 assert(m.prefix().second == m[0].first); in main()
1272 assert(!m.suffix().matched); in main()
1273 assert(m.suffix().first == m[0].second); in main()
1274 assert(m.suffix().second == m[0].second); in main()
1275 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1276 assert(m.position(0) == 0); in main()
1277 assert(m.str(0) == s); in main()
1280 std::wcmatch m; in main() local
1282 assert(!std::regex_match(s, m, std::wregex(L"[a[.hyphen.]z]", in main()
1284 assert(m.size() == 0); in main()
1288 std::wcmatch m; in main() local
1290 assert(std::regex_match(s, m, std::wregex(L"[a[=M=]z]", in main()
1292 assert(m.size() == 1); in main()
1293 assert(!m.prefix().matched); in main()
1294 assert(m.prefix().first == s); in main()
1295 assert(m.prefix().second == m[0].first); in main()
1296 assert(!m.suffix().matched); in main()
1297 assert(m.suffix().first == m[0].second); in main()
1298 assert(m.suffix().second == m[0].second); in main()
1299 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1300 assert(m.position(0) == 0); in main()
1301 assert(m.str(0) == s); in main()
1304 std::wcmatch m; in main() local
1306 assert(std::regex_match(s, m, std::wregex(L"[a[.ch.]z]", in main()
1308 assert(m.size() == 1); in main()
1309 assert(!m.prefix().matched); in main()
1310 assert(m.prefix().first == s); in main()
1311 assert(m.prefix().second == m[0].first); in main()
1312 assert(!m.suffix().matched); in main()
1313 assert(m.suffix().first == m[0].second); in main()
1314 assert(m.suffix().second == m[0].second); in main()
1315 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1316 assert(m.position(0) == 0); in main()
1317 assert(m.str(0) == s); in main()
1321 std::wcmatch m; in main() local
1323 assert(!std::regex_match(s, m, std::wregex(L"[a[=M=]z]", in main()
1325 assert(m.size() == 0); in main()
1328 std::wcmatch m; in main() local
1330 assert(!std::regex_match(s, m, std::wregex(L"[ace1-9]*", in main()
1332 assert(m.size() == 0); in main()
1335 std::wcmatch m; in main() local
1337 assert(!std::regex_match(s, m, std::wregex(L"[ace1-9]+", in main()
1339 assert(m.size() == 0); in main()
1347 std::match_results<BI> m; in main() local
1350 assert(std::regex_match(BI(s), BI(s+ss), m, regex)); in main()
1351 assert(m.size() == 1); in main()
1352 assert(!m.prefix().matched); in main()
1353 assert(m.prefix().first == BI(s)); in main()
1354 assert(m.prefix().second == m[0].first); in main()
1355 assert(!m.suffix().matched); in main()
1356 assert(m.suffix().first == m[0].second); in main()
1357 assert(m.suffix().second == m[0].second); in main()
1358 assert(m.length(0) == 4); in main()
1359 assert(m.position(0) == 0); in main()
1360 assert(m.str(0) == s); in main()