Lines Matching refs:m

33         std::cmatch m;  in main()  local
35 assert(std::regex_match(s, m, std::regex("a", std::regex_constants::extended))); in main()
36 assert(m.size() == 1); in main()
37 assert(!m.empty()); in main()
38 assert(!m.prefix().matched); in main()
39 assert(m.prefix().first == s); in main()
40 assert(m.prefix().second == m[0].first); in main()
41 assert(!m.suffix().matched); in main()
42 assert(m.suffix().first == m[0].second); in main()
43 assert(m.suffix().second == s+1); in main()
44 assert(m.length(0) == 1); in main()
45 assert(m.position(0) == 0); in main()
46 assert(m.str(0) == "a"); in main()
49 std::cmatch m; in main() local
51 assert(std::regex_match(s, m, std::regex("ab", std::regex_constants::extended))); in main()
52 assert(m.size() == 1); in main()
53 assert(!m.prefix().matched); in main()
54 assert(m.prefix().first == s); in main()
55 assert(m.prefix().second == m[0].first); in main()
56 assert(!m.suffix().matched); in main()
57 assert(m.suffix().first == m[0].second); in main()
58 assert(m.suffix().second == s+2); in main()
59 assert(m.length(0) == 2); in main()
60 assert(m.position(0) == 0); in main()
61 assert(m.str(0) == "ab"); in main()
64 std::cmatch m; in main() local
66 assert(!std::regex_match(s, m, std::regex("ba", std::regex_constants::extended))); in main()
67 assert(m.size() == 0); in main()
68 assert(m.empty()); in main()
71 std::cmatch m; in main() local
73 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::extended))); in main()
74 assert(m.size() == 0); in main()
77 std::cmatch m; in main() local
79 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::extended), in main()
81 assert(m.size() == 0); in main()
84 std::cmatch m; in main() local
86 assert(!std::regex_match(s, m, std::regex("bc", std::regex_constants::extended))); in main()
87 assert(m.size() == 0); in main()
90 std::cmatch m; in main() local
92 assert(std::regex_match(s, m, std::regex("ab*c", std::regex_constants::extended))); in main()
93 assert(m.size() == 1); in main()
94 assert(!m.prefix().matched); in main()
95 assert(m.prefix().first == s); in main()
96 assert(m.prefix().second == m[0].first); in main()
97 assert(!m.suffix().matched); in main()
98 assert(m.suffix().first == m[0].second); in main()
99 assert(m.suffix().second == s+4); in main()
100 assert(m.length(0) == 4); in main()
101 assert(m.position(0) == 0); in main()
102 assert(m.str(0) == s); in main()
105 std::cmatch m; in main() local
107 assert(std::regex_match(s, m, std::regex("(ab)*c", std::regex_constants::extended))); in main()
108 assert(m.size() == 2); in main()
109 assert(!m.prefix().matched); in main()
110 assert(m.prefix().first == s); in main()
111 assert(m.prefix().second == m[0].first); in main()
112 assert(!m.suffix().matched); in main()
113 assert(m.suffix().first == m[0].second); in main()
114 assert(m.suffix().second == s+5); in main()
115 assert(m.length(0) == 5); in main()
116 assert(m.position(0) == 0); in main()
117 assert(m.str(0) == s); in main()
118 assert(m.length(1) == 2); in main()
119 assert(m.position(1) == 2); in main()
120 assert(m.str(1) == "ab"); in main()
123 std::cmatch m; in main() local
125 assert(!std::regex_match(s, m, std::regex("cd((e)fg)hi", in main()
127 assert(m.size() == 0); in main()
130 std::cmatch m; in main() local
132 assert(std::regex_match(s, m, std::regex("^abc", std::regex_constants::extended))); in main()
133 assert(m.size() == 1); in main()
134 assert(!m.prefix().matched); in main()
135 assert(m.prefix().first == s); in main()
136 assert(m.prefix().second == m[0].first); in main()
137 assert(!m.suffix().matched); in main()
138 assert(m.suffix().first == m[0].second); in main()
139 assert(m.suffix().second == s+3); in main()
140 assert(m.length(0) == 3); in main()
141 assert(m.position(0) == 0); in main()
142 assert(m.str(0) == s); in main()
145 std::cmatch m; in main() local
147 assert(!std::regex_match(s, m, std::regex("^abc", std::regex_constants::extended))); in main()
148 assert(m.size() == 0); in main()
151 std::cmatch m; in main() local
153 assert(!std::regex_match(s, m, std::regex("^abc", std::regex_constants::extended))); in main()
154 assert(m.size() == 0); in main()
157 std::cmatch m; in main() local
159 assert(std::regex_match(s, m, std::regex("abc$", std::regex_constants::extended))); in main()
160 assert(m.size() == 1); in main()
161 assert(!m.prefix().matched); in main()
162 assert(m.prefix().first == s); in main()
163 assert(m.prefix().second == m[0].first); in main()
164 assert(!m.suffix().matched); in main()
165 assert(m.suffix().first == m[0].second); in main()
166 assert(m.suffix().second == s+3); in main()
167 assert(m.length(0) == 3); in main()
168 assert(m.position(0) == 0); in main()
169 assert(m.str(0) == s); in main()
172 std::cmatch m; in main() local
174 assert(!std::regex_match(s, m, std::regex("abc$", std::regex_constants::extended))); in main()
175 assert(m.size() == 0); in main()
178 std::cmatch m; in main() local
180 assert(!std::regex_match(s, m, std::regex("abc$", std::regex_constants::extended))); in main()
181 assert(m.size() == 0); in main()
184 std::cmatch m; in main() local
186 assert(std::regex_match(s, m, std::regex("a.c", std::regex_constants::extended))); in main()
187 assert(m.size() == 1); in main()
188 assert(!m.prefix().matched); in main()
189 assert(m.prefix().first == s); in main()
190 assert(m.prefix().second == m[0].first); in main()
191 assert(!m.suffix().matched); in main()
192 assert(m.suffix().first == m[0].second); in main()
193 assert(m.suffix().second == s+3); in main()
194 assert(m.length(0) == 3); in main()
195 assert(m.position(0) == 0); in main()
196 assert(m.str(0) == s); in main()
199 std::cmatch m; in main() local
201 assert(std::regex_match(s, m, std::regex("a.c", std::regex_constants::extended))); in main()
202 assert(m.size() == 1); in main()
203 assert(!m.prefix().matched); in main()
204 assert(m.prefix().first == s); in main()
205 assert(m.prefix().second == m[0].first); in main()
206 assert(!m.suffix().matched); in main()
207 assert(m.suffix().first == m[0].second); in main()
208 assert(m.suffix().second == s+3); in main()
209 assert(m.length(0) == 3); in main()
210 assert(m.position(0) == 0); in main()
211 assert(m.str(0) == s); in main()
214 std::cmatch m; in main() local
216 assert(std::regex_match(s, m, std::regex("a.c", std::regex_constants::extended))); in main()
217 assert(m.size() == 1); in main()
218 assert(!m.prefix().matched); in main()
219 assert(m.prefix().first == s); in main()
220 assert(m.prefix().second == m[0].first); in main()
221 assert(!m.suffix().matched); in main()
222 assert(m.suffix().first == m[0].second); in main()
223 assert(m.suffix().second == s+3); in main()
224 assert(m.length(0) == 3); in main()
225 assert(m.position(0) == 0); in main()
226 assert(m.str(0) == s); in main()
229 std::cmatch m; in main() local
231 assert(std::regex_match(s, m, std::regex("(.*).*", std::regex_constants::extended))); in main()
232 assert(m.size() == 2); in main()
233 assert(!m.prefix().matched); in main()
234 assert(m.prefix().first == s); in main()
235 assert(m.prefix().second == m[0].first); in main()
236 assert(!m.suffix().matched); in main()
237 assert(m.suffix().first == m[0].second); in main()
238 assert(m.suffix().second == s+6); in main()
239 assert(m.length(0) == 6); in main()
240 assert(m.position(0) == 0); in main()
241 assert(m.str(0) == s); in main()
242 assert(m.length(1) == 6); in main()
243 assert(m.position(1) == 0); in main()
244 assert(m.str(1) == s); in main()
247 std::cmatch m; in main() local
249 assert(!std::regex_match(s, m, std::regex("(a*)*", std::regex_constants::extended))); in main()
250 assert(m.size() == 0); in main()
253 std::cmatch m; in main() local
255 assert(!std::regex_match(s, m, std::regex("ab{3,5}c", std::regex_constants::extended))); in main()
256 assert(m.size() == 0); in main()
259 std::cmatch m; in main() local
261 assert(std::regex_match(s, m, std::regex("ab{3,5}c", std::regex_constants::extended))); in main()
262 assert(m.size() == 1); in main()
263 assert(!m.prefix().matched); in main()
264 assert(m.prefix().first == s); in main()
265 assert(m.prefix().second == m[0].first); in main()
266 assert(!m.suffix().matched); in main()
267 assert(m.suffix().first == m[0].second); in main()
268 assert(m.suffix().second == m[0].second); in main()
269 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
270 assert(m.position(0) == 0); in main()
271 assert(m.str(0) == s); in main()
274 std::cmatch m; in main() local
276 assert(std::regex_match(s, m, std::regex("ab{3,5}c", std::regex_constants::extended))); in main()
277 assert(m.size() == 1); in main()
278 assert(!m.prefix().matched); in main()
279 assert(m.prefix().first == s); in main()
280 assert(m.prefix().second == m[0].first); in main()
281 assert(!m.suffix().matched); in main()
282 assert(m.suffix().first == m[0].second); in main()
283 assert(m.suffix().second == m[0].second); in main()
284 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
285 assert(m.position(0) == 0); in main()
286 assert(m.str(0) == s); in main()
289 std::cmatch m; in main() local
291 assert(std::regex_match(s, m, std::regex("ab{3,5}c", std::regex_constants::extended))); in main()
292 assert(m.size() == 1); in main()
293 assert(!m.prefix().matched); in main()
294 assert(m.prefix().first == s); in main()
295 assert(m.prefix().second == m[0].first); in main()
296 assert(!m.suffix().matched); in main()
297 assert(m.suffix().first == m[0].second); in main()
298 assert(m.suffix().second == m[0].second); in main()
299 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
300 assert(m.position(0) == 0); in main()
301 assert(m.str(0) == s); in main()
304 std::cmatch m; in main() local
306 assert(!std::regex_match(s, m, std::regex("ab{3,5}c", std::regex_constants::extended))); in main()
307 assert(m.size() == 0); in main()
310 std::cmatch m; in main() local
312 assert(!std::regex_match(s, m, std::regex("ab{3,5}c", std::regex_constants::extended))); in main()
313 assert(m.size() == 0); in main()
316 std::cmatch m; in main() local
318 assert(!std::regex_match(s, m, std::regex("a.{3,5}c", std::regex_constants::extended))); in main()
319 assert(m.size() == 0); in main()
322 std::cmatch m; in main() local
324 assert(std::regex_match(s, m, std::regex("a.{3,5}c", std::regex_constants::extended))); in main()
325 assert(m.size() == 1); in main()
326 assert(!m.prefix().matched); in main()
327 assert(m.prefix().first == s); in main()
328 assert(m.prefix().second == m[0].first); in main()
329 assert(!m.suffix().matched); in main()
330 assert(m.suffix().first == m[0].second); in main()
331 assert(m.suffix().second == m[0].second); in main()
332 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
333 assert(m.position(0) == 0); in main()
334 assert(m.str(0) == s); in main()
337 std::cmatch m; in main() local
339 assert(std::regex_match(s, m, std::regex("a.{3,5}c", std::regex_constants::extended))); in main()
340 assert(m.size() == 1); in main()
341 assert(!m.prefix().matched); in main()
342 assert(m.prefix().first == s); in main()
343 assert(m.prefix().second == m[0].first); in main()
344 assert(!m.suffix().matched); in main()
345 assert(m.suffix().first == m[0].second); in main()
346 assert(m.suffix().second == m[0].second); in main()
347 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
348 assert(m.position(0) == 0); in main()
349 assert(m.str(0) == s); in main()
352 std::cmatch m; in main() local
354 assert(std::regex_match(s, m, std::regex("a.{3,5}c", std::regex_constants::extended))); in main()
355 assert(m.size() == 1); in main()
356 assert(!m.prefix().matched); in main()
357 assert(m.prefix().first == s); in main()
358 assert(m.prefix().second == m[0].first); in main()
359 assert(!m.suffix().matched); in main()
360 assert(m.suffix().first == m[0].second); in main()
361 assert(m.suffix().second == m[0].second); in main()
362 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
363 assert(m.position(0) == 0); in main()
364 assert(m.str(0) == s); in main()
367 std::cmatch m; in main() local
369 assert(!std::regex_match(s, m, std::regex("a.{3,5}c", std::regex_constants::extended))); in main()
370 assert(m.size() == 0); in main()
373 std::cmatch m; in main() local
375 assert(std::regex_match(s, m, std::regex("tour|to|tournament", in main()
377 assert(m.size() == 1); in main()
378 assert(!m.prefix().matched); in main()
379 assert(m.prefix().first == s); in main()
380 assert(m.prefix().second == m[0].first); in main()
381 assert(!m.suffix().matched); in main()
382 assert(m.suffix().first == m[0].second); in main()
383 assert(m.suffix().second == m[0].second); in main()
384 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
385 assert(m.position(0) == 0); in main()
386 assert(m.str(0) == s); in main()
389 std::cmatch m; in main() local
391 assert(std::regex_match(s, m, std::regex("(tour|to|tournament)+", in main()
393 assert(m.size() == 1); in main()
394 assert(!m.prefix().matched); in main()
395 assert(m.prefix().first == s); in main()
396 assert(m.prefix().second == m[0].first); in main()
397 assert(!m.suffix().matched); in main()
398 assert(m.suffix().first == m[0].second); in main()
399 assert(m.suffix().second == m[0].second); in main()
400 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
401 assert(m.position(0) == 0); in main()
402 assert(m.str(0) == s); in main()
405 std::cmatch m; in main() local
407 assert(std::regex_match(s, m, std::regex("(tour|to|t)+", in main()
409 assert(m.size() == 2); in main()
410 assert(!m.prefix().matched); in main()
411 assert(m.prefix().first == s); in main()
412 assert(m.prefix().second == m[0].first); in main()
413 assert(!m.suffix().matched); in main()
414 assert(m.suffix().first == m[0].second); in main()
415 assert(m.suffix().second == m[0].second); in main()
416 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
417 assert(m.position(0) == 0); in main()
418 assert(m.str(0) == s); in main()
419 assert(m.length(1) == 4); in main()
420 assert(m.position(1) == 3); in main()
421 assert(m.str(1) == "tour"); in main()
424 std::cmatch m; in main() local
426 assert(!std::regex_match(s, m, std::regex("-(.*),\1-", std::regex_constants::extended))); in main()
427 assert(m.size() == 0); in main()
430 std::cmatch m; in main() local
432 assert(std::regex_match(s, m, std::regex("-.*,.*-", std::regex_constants::extended))); in main()
433 assert(m.size() == 1); in main()
434 assert(!m.prefix().matched); in main()
435 assert(m.prefix().first == s); in main()
436 assert(m.prefix().second == m[0].first); in main()
437 assert(!m.suffix().matched); in main()
438 assert(m.suffix().first == m[0].second); in main()
439 assert(m.suffix().second == m[0].second); in main()
440 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
441 assert(m.position(0) == 0); in main()
442 assert(m.str(0) == s); in main()
445 std::cmatch m; in main() local
447 assert(std::regex_match(s, m, std::regex("^[a]$", in main()
449 assert(m.size() == 1); in main()
450 assert(!m.prefix().matched); in main()
451 assert(m.prefix().first == s); in main()
452 assert(m.prefix().second == m[0].first); in main()
453 assert(!m.suffix().matched); in main()
454 assert(m.suffix().first == m[0].second); in main()
455 assert(m.suffix().second == m[0].second); in main()
456 assert(m.length(0) == 1); in main()
457 assert(m.position(0) == 0); in main()
458 assert(m.str(0) == "a"); in main()
461 std::cmatch m; in main() local
463 assert(std::regex_match(s, m, std::regex("^[ab]$", in main()
465 assert(m.size() == 1); in main()
466 assert(!m.prefix().matched); in main()
467 assert(m.prefix().first == s); in main()
468 assert(m.prefix().second == m[0].first); in main()
469 assert(!m.suffix().matched); in main()
470 assert(m.suffix().first == m[0].second); in main()
471 assert(m.suffix().second == m[0].second); in main()
472 assert(m.length(0) == 1); in main()
473 assert(m.position(0) == 0); in main()
474 assert(m.str(0) == "a"); in main()
477 std::cmatch m; in main() local
479 assert(std::regex_match(s, m, std::regex("^[a-f]$", in main()
481 assert(m.size() == 1); in main()
482 assert(!m.prefix().matched); in main()
483 assert(m.prefix().first == s); in main()
484 assert(m.prefix().second == m[0].first); in main()
485 assert(!m.suffix().matched); in main()
486 assert(m.suffix().first == m[0].second); in main()
487 assert(m.suffix().second == m[0].second); in main()
488 assert(m.length(0) == 1); in main()
489 assert(m.position(0) == 0); in main()
490 assert(m.str(0) == s); in main()
493 std::cmatch m; in main() local
495 assert(!std::regex_match(s, m, std::regex("^[a-f]$", in main()
497 assert(m.size() == 0); in main()
500 std::cmatch m; in main() local
502 assert(!std::regex_match(s, m, std::regex("q[^u]", in main()
504 assert(m.size() == 0); in main()
507 std::cmatch m; in main() local
509 assert(!std::regex_match(s, m, std::regex("q[^u]", in main()
511 assert(m.size() == 0); in main()
514 std::cmatch m; in main() local
516 assert(std::regex_match(s, m, std::regex("A[[:lower:]]B", in main()
518 assert(m.size() == 1); in main()
519 assert(!m.prefix().matched); in main()
520 assert(m.prefix().first == s); in main()
521 assert(m.prefix().second == m[0].first); in main()
522 assert(!m.suffix().matched); in main()
523 assert(m.suffix().first == m[0].second); in main()
524 assert(m.suffix().second == m[0].second); in main()
525 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
526 assert(m.position(0) == 0); in main()
527 assert(m.str(0) == s); in main()
530 std::cmatch m; in main() local
532 assert(!std::regex_match(s, m, std::regex("A[[:lower:]]B", in main()
534 assert(m.size() == 0); in main()
537 std::cmatch m; in main() local
539 assert(std::regex_match(s, m, std::regex("A[^[:lower:]]B", in main()
541 assert(m.size() == 1); in main()
542 assert(!m.prefix().matched); in main()
543 assert(m.prefix().first == s); in main()
544 assert(m.prefix().second == m[0].first); in main()
545 assert(!m.suffix().matched); in main()
546 assert(m.suffix().first == m[0].second); in main()
547 assert(m.suffix().second == m[0].second); in main()
548 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
549 assert(m.position(0) == 0); in main()
550 assert(m.str(0) == s); in main()
553 std::cmatch m; in main() local
555 assert(!std::regex_match(s, m, std::regex("A[^[:lower:]]B", in main()
557 assert(m.size() == 0); in main()
560 std::cmatch m; in main() local
562 assert(!std::regex_match(s, m, std::regex("A[^[:lower:]0-9]B", in main()
564 assert(m.size() == 0); in main()
567 std::cmatch m; in main() local
569 assert(std::regex_match(s, m, std::regex("A[^[:lower:]0-9]B", in main()
571 assert(m.size() == 1); in main()
572 assert(!m.prefix().matched); in main()
573 assert(m.prefix().first == s); in main()
574 assert(m.prefix().second == m[0].first); in main()
575 assert(!m.suffix().matched); in main()
576 assert(m.suffix().first == m[0].second); in main()
577 assert(m.suffix().second == m[0].second); in main()
578 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
579 assert(m.position(0) == 0); in main()
580 assert(m.str(0) == s); in main()
583 std::cmatch m; in main() local
585 assert(std::regex_match(s, m, std::regex("[a[.hyphen.]z]", in main()
587 assert(m.size() == 1); in main()
588 assert(!m.prefix().matched); in main()
589 assert(m.prefix().first == s); in main()
590 assert(m.prefix().second == m[0].first); in main()
591 assert(!m.suffix().matched); in main()
592 assert(m.suffix().first == m[0].second); in main()
593 assert(m.suffix().second == m[0].second); in main()
594 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
595 assert(m.position(0) == 0); in main()
596 assert(m.str(0) == s); in main()
599 std::cmatch m; in main() local
601 assert(std::regex_match(s, m, std::regex("[a[.hyphen.]z]", in main()
603 assert(m.size() == 1); in main()
604 assert(!m.prefix().matched); in main()
605 assert(m.prefix().first == s); in main()
606 assert(m.prefix().second == m[0].first); in main()
607 assert(!m.suffix().matched); in main()
608 assert(m.suffix().first == m[0].second); in main()
609 assert(m.suffix().second == m[0].second); in main()
610 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
611 assert(m.position(0) == 0); in main()
612 assert(m.str(0) == s); in main()
615 std::cmatch m; in main() local
617 assert(!std::regex_match(s, m, std::regex("[a[.hyphen.]z]", in main()
619 assert(m.size() == 0); in main()
623 std::cmatch m; in main() local
625 assert(std::regex_match(s, m, std::regex("[a[=M=]z]", in main()
627 assert(m.size() == 1); in main()
628 assert(!m.prefix().matched); in main()
629 assert(m.prefix().first == s); in main()
630 assert(m.prefix().second == m[0].first); in main()
631 assert(!m.suffix().matched); in main()
632 assert(m.suffix().first == m[0].second); in main()
633 assert(m.suffix().second == m[0].second); in main()
634 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
635 assert(m.position(0) == 0); in main()
636 assert(m.str(0) == s); in main()
639 std::cmatch m; in main() local
641 assert(std::regex_match(s, m, std::regex("[a[.ch.]z]", in main()
643 assert(m.size() == 1); in main()
644 assert(!m.prefix().matched); in main()
645 assert(m.prefix().first == s); in main()
646 assert(m.prefix().second == m[0].first); in main()
647 assert(!m.suffix().matched); in main()
648 assert(m.suffix().first == m[0].second); in main()
649 assert(m.suffix().second == m[0].second); in main()
650 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
651 assert(m.position(0) == 0); in main()
652 assert(m.str(0) == s); in main()
656 std::cmatch m; in main() local
658 assert(!std::regex_match(s, m, std::regex("[a[=M=]z]", in main()
660 assert(m.size() == 0); in main()
663 std::cmatch m; in main() local
665 assert(!std::regex_match(s, m, std::regex("[ace1-9]*", in main()
667 assert(m.size() == 0); in main()
670 std::cmatch m; in main() local
672 assert(!std::regex_match(s, m, std::regex("[ace1-9]+", in main()
674 assert(m.size() == 0); in main()
682 std::match_results<BI> m; in main() local
685 assert(std::regex_match(BI(s), BI(s+ss), m, regex)); in main()
686 assert(m.size() == 1); in main()
687 assert(!m.prefix().matched); in main()
688 assert(m.prefix().first == BI(s)); in main()
689 assert(m.prefix().second == m[0].first); in main()
690 assert(!m.suffix().matched); in main()
691 assert(m.suffix().first == m[0].second); in main()
692 assert(m.suffix().second == m[0].second); in main()
693 assert(m.length(0) == 4); in main()
694 assert(m.position(0) == 0); in main()
695 assert(m.str(0) == s); in main()
699 std::wcmatch m; in main() local
701 assert(std::regex_match(s, m, std::wregex(L"a", std::regex_constants::extended))); in main()
702 assert(m.size() == 1); in main()
703 assert(!m.empty()); in main()
704 assert(!m.prefix().matched); in main()
705 assert(m.prefix().first == s); in main()
706 assert(m.prefix().second == m[0].first); in main()
707 assert(!m.suffix().matched); in main()
708 assert(m.suffix().first == m[0].second); in main()
709 assert(m.suffix().second == s+1); in main()
710 assert(m.length(0) == 1); in main()
711 assert(m.position(0) == 0); in main()
712 assert(m.str(0) == L"a"); in main()
715 std::wcmatch m; in main() local
717 assert(std::regex_match(s, m, std::wregex(L"ab", std::regex_constants::extended))); in main()
718 assert(m.size() == 1); in main()
719 assert(!m.prefix().matched); in main()
720 assert(m.prefix().first == s); in main()
721 assert(m.prefix().second == m[0].first); in main()
722 assert(!m.suffix().matched); in main()
723 assert(m.suffix().first == m[0].second); in main()
724 assert(m.suffix().second == s+2); in main()
725 assert(m.length(0) == 2); in main()
726 assert(m.position(0) == 0); in main()
727 assert(m.str(0) == L"ab"); in main()
730 std::wcmatch m; in main() local
732 assert(!std::regex_match(s, m, std::wregex(L"ba", std::regex_constants::extended))); in main()
733 assert(m.size() == 0); in main()
734 assert(m.empty()); in main()
737 std::wcmatch m; in main() local
739 assert(!std::regex_match(s, m, std::wregex(L"ab", std::regex_constants::extended))); in main()
740 assert(m.size() == 0); in main()
743 std::wcmatch m; in main() local
745 assert(!std::regex_match(s, m, std::wregex(L"ab", std::regex_constants::extended), in main()
747 assert(m.size() == 0); in main()
750 std::wcmatch m; in main() local
752 assert(!std::regex_match(s, m, std::wregex(L"bc", std::regex_constants::extended))); in main()
753 assert(m.size() == 0); in main()
756 std::wcmatch m; in main() local
758 assert(std::regex_match(s, m, std::wregex(L"ab*c", std::regex_constants::extended))); in main()
759 assert(m.size() == 1); in main()
760 assert(!m.prefix().matched); in main()
761 assert(m.prefix().first == s); in main()
762 assert(m.prefix().second == m[0].first); in main()
763 assert(!m.suffix().matched); in main()
764 assert(m.suffix().first == m[0].second); in main()
765 assert(m.suffix().second == s+4); in main()
766 assert(m.length(0) == 4); in main()
767 assert(m.position(0) == 0); in main()
768 assert(m.str(0) == s); in main()
771 std::wcmatch m; in main() local
773 assert(std::regex_match(s, m, std::wregex(L"(ab)*c", std::regex_constants::extended))); in main()
774 assert(m.size() == 2); in main()
775 assert(!m.prefix().matched); in main()
776 assert(m.prefix().first == s); in main()
777 assert(m.prefix().second == m[0].first); in main()
778 assert(!m.suffix().matched); in main()
779 assert(m.suffix().first == m[0].second); in main()
780 assert(m.suffix().second == s+5); in main()
781 assert(m.length(0) == 5); in main()
782 assert(m.position(0) == 0); in main()
783 assert(m.str(0) == s); in main()
784 assert(m.length(1) == 2); in main()
785 assert(m.position(1) == 2); in main()
786 assert(m.str(1) == L"ab"); in main()
789 std::wcmatch m; in main() local
791 assert(!std::regex_match(s, m, std::wregex(L"cd((e)fg)hi", in main()
793 assert(m.size() == 0); in main()
796 std::wcmatch m; in main() local
798 assert(std::regex_match(s, m, std::wregex(L"^abc", std::regex_constants::extended))); in main()
799 assert(m.size() == 1); in main()
800 assert(!m.prefix().matched); in main()
801 assert(m.prefix().first == s); in main()
802 assert(m.prefix().second == m[0].first); in main()
803 assert(!m.suffix().matched); in main()
804 assert(m.suffix().first == m[0].second); in main()
805 assert(m.suffix().second == s+3); in main()
806 assert(m.length(0) == 3); in main()
807 assert(m.position(0) == 0); in main()
808 assert(m.str(0) == s); in main()
811 std::wcmatch m; in main() local
813 assert(!std::regex_match(s, m, std::wregex(L"^abc", std::regex_constants::extended))); in main()
814 assert(m.size() == 0); in main()
817 std::wcmatch m; in main() local
819 assert(!std::regex_match(s, m, std::wregex(L"^abc", std::regex_constants::extended))); in main()
820 assert(m.size() == 0); in main()
823 std::wcmatch m; in main() local
825 assert(std::regex_match(s, m, std::wregex(L"abc$", std::regex_constants::extended))); in main()
826 assert(m.size() == 1); in main()
827 assert(!m.prefix().matched); in main()
828 assert(m.prefix().first == s); in main()
829 assert(m.prefix().second == m[0].first); in main()
830 assert(!m.suffix().matched); in main()
831 assert(m.suffix().first == m[0].second); in main()
832 assert(m.suffix().second == s+3); in main()
833 assert(m.length(0) == 3); in main()
834 assert(m.position(0) == 0); in main()
835 assert(m.str(0) == s); in main()
838 std::wcmatch m; in main() local
840 assert(!std::regex_match(s, m, std::wregex(L"abc$", std::regex_constants::extended))); in main()
841 assert(m.size() == 0); in main()
844 std::wcmatch m; in main() local
846 assert(!std::regex_match(s, m, std::wregex(L"abc$", std::regex_constants::extended))); in main()
847 assert(m.size() == 0); in main()
850 std::wcmatch m; in main() local
852 assert(std::regex_match(s, m, std::wregex(L"a.c", std::regex_constants::extended))); in main()
853 assert(m.size() == 1); in main()
854 assert(!m.prefix().matched); in main()
855 assert(m.prefix().first == s); in main()
856 assert(m.prefix().second == m[0].first); in main()
857 assert(!m.suffix().matched); in main()
858 assert(m.suffix().first == m[0].second); in main()
859 assert(m.suffix().second == s+3); in main()
860 assert(m.length(0) == 3); in main()
861 assert(m.position(0) == 0); in main()
862 assert(m.str(0) == s); in main()
865 std::wcmatch m; in main() local
867 assert(std::regex_match(s, m, std::wregex(L"a.c", std::regex_constants::extended))); in main()
868 assert(m.size() == 1); in main()
869 assert(!m.prefix().matched); in main()
870 assert(m.prefix().first == s); in main()
871 assert(m.prefix().second == m[0].first); in main()
872 assert(!m.suffix().matched); in main()
873 assert(m.suffix().first == m[0].second); in main()
874 assert(m.suffix().second == s+3); in main()
875 assert(m.length(0) == 3); in main()
876 assert(m.position(0) == 0); in main()
877 assert(m.str(0) == s); in main()
880 std::wcmatch m; in main() local
882 assert(std::regex_match(s, m, std::wregex(L"a.c", std::regex_constants::extended))); in main()
883 assert(m.size() == 1); in main()
884 assert(!m.prefix().matched); in main()
885 assert(m.prefix().first == s); in main()
886 assert(m.prefix().second == m[0].first); in main()
887 assert(!m.suffix().matched); in main()
888 assert(m.suffix().first == m[0].second); in main()
889 assert(m.suffix().second == s+3); in main()
890 assert(m.length(0) == 3); in main()
891 assert(m.position(0) == 0); in main()
892 assert(m.str(0) == s); in main()
895 std::wcmatch m; in main() local
897 assert(std::regex_match(s, m, std::wregex(L"(.*).*", std::regex_constants::extended))); in main()
898 assert(m.size() == 2); in main()
899 assert(!m.prefix().matched); in main()
900 assert(m.prefix().first == s); in main()
901 assert(m.prefix().second == m[0].first); in main()
902 assert(!m.suffix().matched); in main()
903 assert(m.suffix().first == m[0].second); in main()
904 assert(m.suffix().second == s+6); in main()
905 assert(m.length(0) == 6); in main()
906 assert(m.position(0) == 0); in main()
907 assert(m.str(0) == s); in main()
908 assert(m.length(1) == 6); in main()
909 assert(m.position(1) == 0); in main()
910 assert(m.str(1) == s); in main()
913 std::wcmatch m; in main() local
915 assert(!std::regex_match(s, m, std::wregex(L"(a*)*", std::regex_constants::extended))); in main()
916 assert(m.size() == 0); in main()
919 std::wcmatch m; in main() local
921 assert(!std::regex_match(s, m, std::wregex(L"ab{3,5}c", std::regex_constants::extended))); in main()
922 assert(m.size() == 0); in main()
925 std::wcmatch m; in main() local
927 assert(std::regex_match(s, m, std::wregex(L"ab{3,5}c", std::regex_constants::extended))); in main()
928 assert(m.size() == 1); in main()
929 assert(!m.prefix().matched); in main()
930 assert(m.prefix().first == s); in main()
931 assert(m.prefix().second == m[0].first); in main()
932 assert(!m.suffix().matched); in main()
933 assert(m.suffix().first == m[0].second); in main()
934 assert(m.suffix().second == m[0].second); in main()
935 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
936 assert(m.position(0) == 0); in main()
937 assert(m.str(0) == s); in main()
940 std::wcmatch m; in main() local
942 assert(std::regex_match(s, m, std::wregex(L"ab{3,5}c", std::regex_constants::extended))); in main()
943 assert(m.size() == 1); in main()
944 assert(!m.prefix().matched); in main()
945 assert(m.prefix().first == s); in main()
946 assert(m.prefix().second == m[0].first); in main()
947 assert(!m.suffix().matched); in main()
948 assert(m.suffix().first == m[0].second); in main()
949 assert(m.suffix().second == m[0].second); in main()
950 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
951 assert(m.position(0) == 0); in main()
952 assert(m.str(0) == s); in main()
955 std::wcmatch m; in main() local
957 assert(std::regex_match(s, m, std::wregex(L"ab{3,5}c", std::regex_constants::extended))); in main()
958 assert(m.size() == 1); in main()
959 assert(!m.prefix().matched); in main()
960 assert(m.prefix().first == s); in main()
961 assert(m.prefix().second == m[0].first); in main()
962 assert(!m.suffix().matched); in main()
963 assert(m.suffix().first == m[0].second); in main()
964 assert(m.suffix().second == m[0].second); in main()
965 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
966 assert(m.position(0) == 0); in main()
967 assert(m.str(0) == s); in main()
970 std::wcmatch m; in main() local
972 assert(!std::regex_match(s, m, std::wregex(L"ab{3,5}c", std::regex_constants::extended))); in main()
973 assert(m.size() == 0); in main()
976 std::wcmatch m; in main() local
978 assert(!std::regex_match(s, m, std::wregex(L"ab{3,5}c", std::regex_constants::extended))); in main()
979 assert(m.size() == 0); in main()
982 std::wcmatch m; in main() local
984 assert(!std::regex_match(s, m, std::wregex(L"a.{3,5}c", std::regex_constants::extended))); in main()
985 assert(m.size() == 0); in main()
988 std::wcmatch m; in main() local
990 assert(std::regex_match(s, m, std::wregex(L"a.{3,5}c", std::regex_constants::extended))); in main()
991 assert(m.size() == 1); in main()
992 assert(!m.prefix().matched); in main()
993 assert(m.prefix().first == s); in main()
994 assert(m.prefix().second == m[0].first); in main()
995 assert(!m.suffix().matched); in main()
996 assert(m.suffix().first == m[0].second); in main()
997 assert(m.suffix().second == m[0].second); in main()
998 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
999 assert(m.position(0) == 0); in main()
1000 assert(m.str(0) == s); in main()
1003 std::wcmatch m; in main() local
1005 assert(std::regex_match(s, m, std::wregex(L"a.{3,5}c", std::regex_constants::extended))); in main()
1006 assert(m.size() == 1); in main()
1007 assert(!m.prefix().matched); in main()
1008 assert(m.prefix().first == s); in main()
1009 assert(m.prefix().second == m[0].first); in main()
1010 assert(!m.suffix().matched); in main()
1011 assert(m.suffix().first == m[0].second); in main()
1012 assert(m.suffix().second == m[0].second); in main()
1013 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1014 assert(m.position(0) == 0); in main()
1015 assert(m.str(0) == s); in main()
1018 std::wcmatch m; in main() local
1020 assert(std::regex_match(s, m, std::wregex(L"a.{3,5}c", std::regex_constants::extended))); in main()
1021 assert(m.size() == 1); in main()
1022 assert(!m.prefix().matched); in main()
1023 assert(m.prefix().first == s); in main()
1024 assert(m.prefix().second == m[0].first); in main()
1025 assert(!m.suffix().matched); in main()
1026 assert(m.suffix().first == m[0].second); in main()
1027 assert(m.suffix().second == m[0].second); in main()
1028 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1029 assert(m.position(0) == 0); in main()
1030 assert(m.str(0) == s); in main()
1033 std::wcmatch m; in main() local
1035 assert(!std::regex_match(s, m, std::wregex(L"a.{3,5}c", std::regex_constants::extended))); in main()
1036 assert(m.size() == 0); in main()
1039 std::wcmatch m; in main() local
1041 assert(std::regex_match(s, m, std::wregex(L"tour|to|tournament", in main()
1043 assert(m.size() == 1); in main()
1044 assert(!m.prefix().matched); in main()
1045 assert(m.prefix().first == s); in main()
1046 assert(m.prefix().second == m[0].first); in main()
1047 assert(!m.suffix().matched); in main()
1048 assert(m.suffix().first == m[0].second); in main()
1049 assert(m.suffix().second == m[0].second); in main()
1050 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1051 assert(m.position(0) == 0); in main()
1052 assert(m.str(0) == s); in main()
1055 std::wcmatch m; in main() local
1057 assert(std::regex_match(s, m, std::wregex(L"(tour|to|tournament)+", in main()
1059 assert(m.size() == 1); in main()
1060 assert(!m.prefix().matched); in main()
1061 assert(m.prefix().first == s); in main()
1062 assert(m.prefix().second == m[0].first); in main()
1063 assert(!m.suffix().matched); in main()
1064 assert(m.suffix().first == m[0].second); in main()
1065 assert(m.suffix().second == m[0].second); in main()
1066 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1067 assert(m.position(0) == 0); in main()
1068 assert(m.str(0) == s); in main()
1071 std::wcmatch m; in main() local
1073 assert(std::regex_match(s, m, std::wregex(L"(tour|to|t)+", in main()
1075 assert(m.size() == 2); in main()
1076 assert(!m.prefix().matched); in main()
1077 assert(m.prefix().first == s); in main()
1078 assert(m.prefix().second == m[0].first); in main()
1079 assert(!m.suffix().matched); in main()
1080 assert(m.suffix().first == m[0].second); in main()
1081 assert(m.suffix().second == m[0].second); in main()
1082 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1083 assert(m.position(0) == 0); in main()
1084 assert(m.str(0) == s); in main()
1085 assert(m.length(1) == 4); in main()
1086 assert(m.position(1) == 3); in main()
1087 assert(m.str(1) == L"tour"); in main()
1090 std::wcmatch m; in main() local
1092 assert(!std::regex_match(s, m, std::wregex(L"-(.*),\1-", std::regex_constants::extended))); in main()
1093 assert(m.size() == 0); in main()
1096 std::wcmatch m; in main() local
1098 assert(std::regex_match(s, m, std::wregex(L"-.*,.*-", std::regex_constants::extended))); in main()
1099 assert(m.size() == 1); in main()
1100 assert(!m.prefix().matched); in main()
1101 assert(m.prefix().first == s); in main()
1102 assert(m.prefix().second == m[0].first); in main()
1103 assert(!m.suffix().matched); in main()
1104 assert(m.suffix().first == m[0].second); in main()
1105 assert(m.suffix().second == m[0].second); in main()
1106 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1107 assert(m.position(0) == 0); in main()
1108 assert(m.str(0) == s); in main()
1111 std::wcmatch m; in main() local
1113 assert(std::regex_match(s, m, std::wregex(L"^[a]$", in main()
1115 assert(m.size() == 1); in main()
1116 assert(!m.prefix().matched); in main()
1117 assert(m.prefix().first == s); in main()
1118 assert(m.prefix().second == m[0].first); in main()
1119 assert(!m.suffix().matched); in main()
1120 assert(m.suffix().first == m[0].second); in main()
1121 assert(m.suffix().second == m[0].second); in main()
1122 assert(m.length(0) == 1); in main()
1123 assert(m.position(0) == 0); in main()
1124 assert(m.str(0) == L"a"); in main()
1127 std::wcmatch m; in main() local
1129 assert(std::regex_match(s, m, std::wregex(L"^[ab]$", in main()
1131 assert(m.size() == 1); in main()
1132 assert(!m.prefix().matched); in main()
1133 assert(m.prefix().first == s); in main()
1134 assert(m.prefix().second == m[0].first); in main()
1135 assert(!m.suffix().matched); in main()
1136 assert(m.suffix().first == m[0].second); in main()
1137 assert(m.suffix().second == m[0].second); in main()
1138 assert(m.length(0) == 1); in main()
1139 assert(m.position(0) == 0); in main()
1140 assert(m.str(0) == L"a"); in main()
1143 std::wcmatch m; in main() local
1145 assert(std::regex_match(s, m, std::wregex(L"^[a-f]$", in main()
1147 assert(m.size() == 1); in main()
1148 assert(!m.prefix().matched); in main()
1149 assert(m.prefix().first == s); in main()
1150 assert(m.prefix().second == m[0].first); in main()
1151 assert(!m.suffix().matched); in main()
1152 assert(m.suffix().first == m[0].second); in main()
1153 assert(m.suffix().second == m[0].second); in main()
1154 assert(m.length(0) == 1); in main()
1155 assert(m.position(0) == 0); in main()
1156 assert(m.str(0) == s); in main()
1159 std::wcmatch m; in main() local
1161 assert(!std::regex_match(s, m, std::wregex(L"^[a-f]$", in main()
1163 assert(m.size() == 0); in main()
1166 std::wcmatch m; in main() local
1168 assert(!std::regex_match(s, m, std::wregex(L"q[^u]", in main()
1170 assert(m.size() == 0); in main()
1173 std::wcmatch m; in main() local
1175 assert(!std::regex_match(s, m, std::wregex(L"q[^u]", in main()
1177 assert(m.size() == 0); in main()
1180 std::wcmatch m; in main() local
1182 assert(std::regex_match(s, m, std::wregex(L"A[[:lower:]]B", in main()
1184 assert(m.size() == 1); in main()
1185 assert(!m.prefix().matched); in main()
1186 assert(m.prefix().first == s); in main()
1187 assert(m.prefix().second == m[0].first); in main()
1188 assert(!m.suffix().matched); in main()
1189 assert(m.suffix().first == m[0].second); in main()
1190 assert(m.suffix().second == m[0].second); in main()
1191 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1192 assert(m.position(0) == 0); in main()
1193 assert(m.str(0) == s); in main()
1196 std::wcmatch m; in main() local
1198 assert(!std::regex_match(s, m, std::wregex(L"A[[:lower:]]B", in main()
1200 assert(m.size() == 0); in main()
1203 std::wcmatch m; in main() local
1205 assert(std::regex_match(s, m, std::wregex(L"A[^[:lower:]]B", in main()
1207 assert(m.size() == 1); in main()
1208 assert(!m.prefix().matched); in main()
1209 assert(m.prefix().first == s); in main()
1210 assert(m.prefix().second == m[0].first); in main()
1211 assert(!m.suffix().matched); in main()
1212 assert(m.suffix().first == m[0].second); in main()
1213 assert(m.suffix().second == m[0].second); in main()
1214 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1215 assert(m.position(0) == 0); in main()
1216 assert(m.str(0) == s); in main()
1219 std::wcmatch m; in main() local
1221 assert(!std::regex_match(s, m, std::wregex(L"A[^[:lower:]]B", in main()
1223 assert(m.size() == 0); in main()
1226 std::wcmatch m; in main() local
1228 assert(!std::regex_match(s, m, std::wregex(L"A[^[:lower:]0-9]B", in main()
1230 assert(m.size() == 0); in main()
1233 std::wcmatch m; in main() local
1235 assert(std::regex_match(s, m, std::wregex(L"A[^[:lower:]0-9]B", in main()
1237 assert(m.size() == 1); in main()
1238 assert(!m.prefix().matched); in main()
1239 assert(m.prefix().first == s); in main()
1240 assert(m.prefix().second == m[0].first); in main()
1241 assert(!m.suffix().matched); in main()
1242 assert(m.suffix().first == m[0].second); in main()
1243 assert(m.suffix().second == m[0].second); in main()
1244 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1245 assert(m.position(0) == 0); in main()
1246 assert(m.str(0) == s); in main()
1249 std::wcmatch m; in main() local
1251 assert(std::regex_match(s, m, std::wregex(L"[a[.hyphen.]z]", in main()
1253 assert(m.size() == 1); in main()
1254 assert(!m.prefix().matched); in main()
1255 assert(m.prefix().first == s); in main()
1256 assert(m.prefix().second == m[0].first); in main()
1257 assert(!m.suffix().matched); in main()
1258 assert(m.suffix().first == m[0].second); in main()
1259 assert(m.suffix().second == m[0].second); in main()
1260 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1261 assert(m.position(0) == 0); in main()
1262 assert(m.str(0) == s); in main()
1265 std::wcmatch m; in main() local
1267 assert(std::regex_match(s, m, std::wregex(L"[a[.hyphen.]z]", in main()
1269 assert(m.size() == 1); in main()
1270 assert(!m.prefix().matched); in main()
1271 assert(m.prefix().first == s); in main()
1272 assert(m.prefix().second == m[0].first); in main()
1273 assert(!m.suffix().matched); in main()
1274 assert(m.suffix().first == m[0].second); in main()
1275 assert(m.suffix().second == m[0].second); in main()
1276 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1277 assert(m.position(0) == 0); in main()
1278 assert(m.str(0) == s); in main()
1281 std::wcmatch m; in main() local
1283 assert(!std::regex_match(s, m, std::wregex(L"[a[.hyphen.]z]", in main()
1285 assert(m.size() == 0); in main()
1289 std::wcmatch m; in main() local
1291 assert(std::regex_match(s, m, std::wregex(L"[a[=M=]z]", in main()
1293 assert(m.size() == 1); in main()
1294 assert(!m.prefix().matched); in main()
1295 assert(m.prefix().first == s); in main()
1296 assert(m.prefix().second == m[0].first); in main()
1297 assert(!m.suffix().matched); in main()
1298 assert(m.suffix().first == m[0].second); in main()
1299 assert(m.suffix().second == m[0].second); in main()
1300 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1301 assert(m.position(0) == 0); in main()
1302 assert(m.str(0) == s); in main()
1305 std::wcmatch m; in main() local
1307 assert(std::regex_match(s, m, std::wregex(L"[a[.ch.]z]", in main()
1309 assert(m.size() == 1); in main()
1310 assert(!m.prefix().matched); in main()
1311 assert(m.prefix().first == s); in main()
1312 assert(m.prefix().second == m[0].first); in main()
1313 assert(!m.suffix().matched); in main()
1314 assert(m.suffix().first == m[0].second); in main()
1315 assert(m.suffix().second == m[0].second); in main()
1316 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1317 assert(m.position(0) == 0); in main()
1318 assert(m.str(0) == s); in main()
1322 std::wcmatch m; in main() local
1324 assert(!std::regex_match(s, m, std::wregex(L"[a[=M=]z]", in main()
1326 assert(m.size() == 0); in main()
1329 std::wcmatch m; in main() local
1331 assert(!std::regex_match(s, m, std::wregex(L"[ace1-9]*", in main()
1333 assert(m.size() == 0); in main()
1336 std::wcmatch m; in main() local
1338 assert(!std::regex_match(s, m, std::wregex(L"[ace1-9]+", in main()
1340 assert(m.size() == 0); in main()
1348 std::match_results<BI> m; in main() local
1351 assert(std::regex_match(BI(s), BI(s+ss), m, regex)); in main()
1352 assert(m.size() == 1); in main()
1353 assert(!m.prefix().matched); in main()
1354 assert(m.prefix().first == BI(s)); in main()
1355 assert(m.prefix().second == m[0].first); in main()
1356 assert(!m.suffix().matched); in main()
1357 assert(m.suffix().first == m[0].second); in main()
1358 assert(m.suffix().second == m[0].second); in main()
1359 assert(m.length(0) == 4); in main()
1360 assert(m.position(0) == 0); in main()
1361 assert(m.str(0) == s); in main()