Lines Matching refs:m
31 std::cmatch m; in main()
33 assert(std::regex_match(s, m, std::regex("a", std::regex_constants::awk))); in main()
34 assert(m.size() == 1); in main()
35 assert(!m.empty()); in main()
36 assert(!m.prefix().matched); in main()
37 assert(m.prefix().first == s); in main()
38 assert(m.prefix().second == m[0].first); in main()
39 assert(!m.suffix().matched); in main()
40 assert(m.suffix().first == m[0].second); in main()
41 assert(m.suffix().second == s+1); in main()
42 assert(m.length(0) == 1); in main()
43 assert(m.position(0) == 0); in main()
44 assert(m.str(0) == "a"); in main()
47 std::cmatch m; in main()
49 assert(std::regex_match(s, m, std::regex("ab", std::regex_constants::awk))); in main()
50 assert(m.size() == 1); in main()
51 assert(!m.prefix().matched); in main()
52 assert(m.prefix().first == s); in main()
53 assert(m.prefix().second == m[0].first); in main()
54 assert(!m.suffix().matched); in main()
55 assert(m.suffix().first == m[0].second); in main()
56 assert(m.suffix().second == s+2); in main()
57 assert(m.length(0) == 2); in main()
58 assert(m.position(0) == 0); in main()
59 assert(m.str(0) == "ab"); in main()
62 std::cmatch m; in main()
64 assert(!std::regex_match(s, m, std::regex("ba", std::regex_constants::awk))); in main()
65 assert(m.size() == 0); in main()
66 assert(m.empty()); in main()
69 std::cmatch m; in main()
71 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::awk))); in main()
72 assert(m.size() == 0); in main()
75 std::cmatch m; in main()
77 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::awk), in main()
79 assert(m.size() == 0); in main()
82 std::cmatch m; in main()
84 assert(!std::regex_match(s, m, std::regex("bc", std::regex_constants::awk))); in main()
85 assert(m.size() == 0); in main()
88 std::cmatch m; in main()
90 assert(std::regex_match(s, m, std::regex("ab*c", std::regex_constants::awk))); in main()
91 assert(m.size() == 1); in main()
92 assert(!m.prefix().matched); in main()
93 assert(m.prefix().first == s); in main()
94 assert(m.prefix().second == m[0].first); in main()
95 assert(!m.suffix().matched); in main()
96 assert(m.suffix().first == m[0].second); in main()
97 assert(m.suffix().second == s+4); in main()
98 assert(m.length(0) == 4); in main()
99 assert(m.position(0) == 0); in main()
100 assert(m.str(0) == s); in main()
103 std::cmatch m; in main()
105 assert(std::regex_match(s, m, std::regex("(ab)*c", std::regex_constants::awk))); in main()
106 assert(m.size() == 2); in main()
107 assert(!m.prefix().matched); in main()
108 assert(m.prefix().first == s); in main()
109 assert(m.prefix().second == m[0].first); in main()
110 assert(!m.suffix().matched); in main()
111 assert(m.suffix().first == m[0].second); in main()
112 assert(m.suffix().second == s+5); in main()
113 assert(m.length(0) == 5); in main()
114 assert(m.position(0) == 0); in main()
115 assert(m.str(0) == s); in main()
116 assert(m.length(1) == 2); in main()
117 assert(m.position(1) == 2); in main()
118 assert(m.str(1) == "ab"); in main()
121 std::cmatch m; in main()
123 assert(!std::regex_match(s, m, std::regex("cd((e)fg)hi", in main()
125 assert(m.size() == 0); in main()
128 std::cmatch m; in main()
130 assert(std::regex_match(s, m, std::regex("^abc", std::regex_constants::awk))); in main()
131 assert(m.size() == 1); in main()
132 assert(!m.prefix().matched); in main()
133 assert(m.prefix().first == s); in main()
134 assert(m.prefix().second == m[0].first); in main()
135 assert(!m.suffix().matched); in main()
136 assert(m.suffix().first == m[0].second); in main()
137 assert(m.suffix().second == s+3); in main()
138 assert(m.length(0) == 3); in main()
139 assert(m.position(0) == 0); in main()
140 assert(m.str(0) == s); in main()
143 std::cmatch m; in main()
145 assert(!std::regex_match(s, m, std::regex("^abc", std::regex_constants::awk))); in main()
146 assert(m.size() == 0); in main()
149 std::cmatch m; in main()
151 assert(!std::regex_match(s, m, std::regex("^abc", std::regex_constants::awk))); in main()
152 assert(m.size() == 0); in main()
155 std::cmatch m; in main()
157 assert(std::regex_match(s, m, std::regex("abc$", std::regex_constants::awk))); in main()
158 assert(m.size() == 1); in main()
159 assert(!m.prefix().matched); in main()
160 assert(m.prefix().first == s); in main()
161 assert(m.prefix().second == m[0].first); in main()
162 assert(!m.suffix().matched); in main()
163 assert(m.suffix().first == m[0].second); in main()
164 assert(m.suffix().second == s+3); in main()
165 assert(m.length(0) == 3); in main()
166 assert(m.position(0) == 0); in main()
167 assert(m.str(0) == s); in main()
170 std::cmatch m; in main()
172 assert(!std::regex_match(s, m, std::regex("abc$", std::regex_constants::awk))); in main()
173 assert(m.size() == 0); in main()
176 std::cmatch m; in main()
178 assert(!std::regex_match(s, m, std::regex("abc$", std::regex_constants::awk))); in main()
179 assert(m.size() == 0); in main()
182 std::cmatch m; in main()
184 assert(std::regex_match(s, m, std::regex("a.c", std::regex_constants::awk))); in main()
185 assert(m.size() == 1); in main()
186 assert(!m.prefix().matched); in main()
187 assert(m.prefix().first == s); in main()
188 assert(m.prefix().second == m[0].first); in main()
189 assert(!m.suffix().matched); in main()
190 assert(m.suffix().first == m[0].second); in main()
191 assert(m.suffix().second == s+3); in main()
192 assert(m.length(0) == 3); in main()
193 assert(m.position(0) == 0); in main()
194 assert(m.str(0) == s); in main()
197 std::cmatch m; in main()
199 assert(std::regex_match(s, m, std::regex("a.c", std::regex_constants::awk))); in main()
200 assert(m.size() == 1); in main()
201 assert(!m.prefix().matched); in main()
202 assert(m.prefix().first == s); in main()
203 assert(m.prefix().second == m[0].first); in main()
204 assert(!m.suffix().matched); in main()
205 assert(m.suffix().first == m[0].second); in main()
206 assert(m.suffix().second == s+3); in main()
207 assert(m.length(0) == 3); in main()
208 assert(m.position(0) == 0); in main()
209 assert(m.str(0) == s); in main()
212 std::cmatch m; in main()
214 assert(std::regex_match(s, m, std::regex("a.c", std::regex_constants::awk))); in main()
215 assert(m.size() == 1); in main()
216 assert(!m.prefix().matched); in main()
217 assert(m.prefix().first == s); in main()
218 assert(m.prefix().second == m[0].first); in main()
219 assert(!m.suffix().matched); in main()
220 assert(m.suffix().first == m[0].second); in main()
221 assert(m.suffix().second == s+3); in main()
222 assert(m.length(0) == 3); in main()
223 assert(m.position(0) == 0); in main()
224 assert(m.str(0) == s); in main()
227 std::cmatch m; in main()
229 assert(std::regex_match(s, m, std::regex("(.*).*", std::regex_constants::awk))); in main()
230 assert(m.size() == 2); in main()
231 assert(!m.prefix().matched); in main()
232 assert(m.prefix().first == s); in main()
233 assert(m.prefix().second == m[0].first); in main()
234 assert(!m.suffix().matched); in main()
235 assert(m.suffix().first == m[0].second); in main()
236 assert(m.suffix().second == s+6); in main()
237 assert(m.length(0) == 6); in main()
238 assert(m.position(0) == 0); in main()
239 assert(m.str(0) == s); in main()
240 assert(m.length(1) == 6); in main()
241 assert(m.position(1) == 0); in main()
242 assert(m.str(1) == s); in main()
245 std::cmatch m; in main()
247 assert(!std::regex_match(s, m, std::regex("(a*)*", std::regex_constants::awk))); in main()
248 assert(m.size() == 0); in main()
251 std::cmatch m; in main()
253 assert(!std::regex_match(s, m, std::regex("ab{3,5}c", std::regex_constants::awk))); in main()
254 assert(m.size() == 0); in main()
257 std::cmatch m; in main()
259 assert(std::regex_match(s, m, std::regex("ab{3,5}c", std::regex_constants::awk))); in main()
260 assert(m.size() == 1); in main()
261 assert(!m.prefix().matched); in main()
262 assert(m.prefix().first == s); in main()
263 assert(m.prefix().second == m[0].first); in main()
264 assert(!m.suffix().matched); in main()
265 assert(m.suffix().first == m[0].second); in main()
266 assert(m.suffix().second == m[0].second); in main()
267 assert((size_t)m.length(0) == std::char_traits<char>::length(s)); in main()
268 assert(m.position(0) == 0); in main()
269 assert(m.str(0) == s); in main()
272 std::cmatch m; in main()
274 assert(std::regex_match(s, m, std::regex("ab{3,5}c", std::regex_constants::awk))); in main()
275 assert(m.size() == 1); in main()
276 assert(!m.prefix().matched); in main()
277 assert(m.prefix().first == s); in main()
278 assert(m.prefix().second == m[0].first); in main()
279 assert(!m.suffix().matched); in main()
280 assert(m.suffix().first == m[0].second); in main()
281 assert(m.suffix().second == m[0].second); in main()
282 assert((size_t)m.length(0) == std::char_traits<char>::length(s)); in main()
283 assert(m.position(0) == 0); in main()
284 assert(m.str(0) == s); in main()
287 std::cmatch m; in main()
289 assert(std::regex_match(s, m, std::regex("ab{3,5}c", std::regex_constants::awk))); in main()
290 assert(m.size() == 1); in main()
291 assert(!m.prefix().matched); in main()
292 assert(m.prefix().first == s); in main()
293 assert(m.prefix().second == m[0].first); in main()
294 assert(!m.suffix().matched); in main()
295 assert(m.suffix().first == m[0].second); in main()
296 assert(m.suffix().second == m[0].second); in main()
297 assert((size_t)m.length(0) == std::char_traits<char>::length(s)); in main()
298 assert(m.position(0) == 0); in main()
299 assert(m.str(0) == s); in main()
302 std::cmatch m; in main()
304 assert(!std::regex_match(s, m, std::regex("ab{3,5}c", std::regex_constants::awk))); in main()
305 assert(m.size() == 0); in main()
308 std::cmatch m; in main()
310 assert(!std::regex_match(s, m, std::regex("ab{3,5}c", std::regex_constants::awk))); in main()
311 assert(m.size() == 0); in main()
314 std::cmatch m; in main()
316 assert(!std::regex_match(s, m, std::regex("a.{3,5}c", std::regex_constants::awk))); in main()
317 assert(m.size() == 0); in main()
320 std::cmatch m; in main()
322 assert(std::regex_match(s, m, std::regex("a.{3,5}c", std::regex_constants::awk))); in main()
323 assert(m.size() == 1); in main()
324 assert(!m.prefix().matched); in main()
325 assert(m.prefix().first == s); in main()
326 assert(m.prefix().second == m[0].first); in main()
327 assert(!m.suffix().matched); in main()
328 assert(m.suffix().first == m[0].second); in main()
329 assert(m.suffix().second == m[0].second); in main()
330 assert((size_t)m.length(0) == std::char_traits<char>::length(s)); in main()
331 assert(m.position(0) == 0); in main()
332 assert(m.str(0) == s); in main()
335 std::cmatch m; in main()
337 assert(std::regex_match(s, m, std::regex("a.{3,5}c", std::regex_constants::awk))); in main()
338 assert(m.size() == 1); in main()
339 assert(!m.prefix().matched); in main()
340 assert(m.prefix().first == s); in main()
341 assert(m.prefix().second == m[0].first); in main()
342 assert(!m.suffix().matched); in main()
343 assert(m.suffix().first == m[0].second); in main()
344 assert(m.suffix().second == m[0].second); in main()
345 assert((size_t)m.length(0) == std::char_traits<char>::length(s)); in main()
346 assert(m.position(0) == 0); in main()
347 assert(m.str(0) == s); in main()
350 std::cmatch m; in main()
352 assert(std::regex_match(s, m, std::regex("a.{3,5}c", std::regex_constants::awk))); in main()
353 assert(m.size() == 1); in main()
354 assert(!m.prefix().matched); in main()
355 assert(m.prefix().first == s); in main()
356 assert(m.prefix().second == m[0].first); in main()
357 assert(!m.suffix().matched); in main()
358 assert(m.suffix().first == m[0].second); in main()
359 assert(m.suffix().second == m[0].second); in main()
360 assert((size_t)m.length(0) == std::char_traits<char>::length(s)); in main()
361 assert(m.position(0) == 0); in main()
362 assert(m.str(0) == s); in main()
365 std::cmatch m; in main()
367 assert(!std::regex_match(s, m, std::regex("a.{3,5}c", std::regex_constants::awk))); in main()
368 assert(m.size() == 0); in main()
371 std::cmatch m; in main()
373 assert(std::regex_match(s, m, std::regex("tour|to|tournament", in main()
375 assert(m.size() == 1); in main()
376 assert(!m.prefix().matched); in main()
377 assert(m.prefix().first == s); in main()
378 assert(m.prefix().second == m[0].first); in main()
379 assert(!m.suffix().matched); in main()
380 assert(m.suffix().first == m[0].second); in main()
381 assert(m.suffix().second == m[0].second); in main()
382 assert((size_t)m.length(0) == std::char_traits<char>::length(s)); in main()
383 assert(m.position(0) == 0); in main()
384 assert(m.str(0) == s); in main()
387 std::cmatch m; in main()
389 assert(std::regex_match(s, m, std::regex("(tour|to|tournament)+", in main()
391 assert(m.size() == 1); in main()
392 assert(!m.prefix().matched); in main()
393 assert(m.prefix().first == s); in main()
394 assert(m.prefix().second == m[0].first); in main()
395 assert(!m.suffix().matched); in main()
396 assert(m.suffix().first == m[0].second); in main()
397 assert(m.suffix().second == m[0].second); in main()
398 assert((size_t)m.length(0) == std::char_traits<char>::length(s)); in main()
399 assert(m.position(0) == 0); in main()
400 assert(m.str(0) == s); in main()
403 std::cmatch m; in main()
405 assert(std::regex_match(s, m, std::regex("(tour|to|t)+", in main()
407 assert(m.size() == 2); in main()
408 assert(!m.prefix().matched); in main()
409 assert(m.prefix().first == s); in main()
410 assert(m.prefix().second == m[0].first); in main()
411 assert(!m.suffix().matched); in main()
412 assert(m.suffix().first == m[0].second); in main()
413 assert(m.suffix().second == m[0].second); in main()
414 assert((size_t)m.length(0) == std::char_traits<char>::length(s)); in main()
415 assert(m.position(0) == 0); in main()
416 assert(m.str(0) == s); in main()
417 assert(m.length(1) == 4); in main()
418 assert(m.position(1) == 3); in main()
419 assert(m.str(1) == "tour"); in main()
422 std::cmatch m; in main()
424 assert(!std::regex_match(s, m, std::regex("-(.*),\1-", std::regex_constants::awk))); in main()
425 assert(m.size() == 0); in main()
428 std::cmatch m; in main()
430 assert(std::regex_match(s, m, std::regex("-.*,.*-", std::regex_constants::awk))); in main()
431 assert(m.size() == 1); in main()
432 assert(!m.prefix().matched); in main()
433 assert(m.prefix().first == s); in main()
434 assert(m.prefix().second == m[0].first); in main()
435 assert(!m.suffix().matched); in main()
436 assert(m.suffix().first == m[0].second); in main()
437 assert(m.suffix().second == m[0].second); in main()
438 assert((size_t)m.length(0) == std::char_traits<char>::length(s)); in main()
439 assert(m.position(0) == 0); in main()
440 assert(m.str(0) == s); in main()
443 std::cmatch m; in main()
445 assert(std::regex_match(s, m, std::regex("^[a]$", in main()
447 assert(m.size() == 1); in main()
448 assert(!m.prefix().matched); in main()
449 assert(m.prefix().first == s); in main()
450 assert(m.prefix().second == m[0].first); in main()
451 assert(!m.suffix().matched); in main()
452 assert(m.suffix().first == m[0].second); in main()
453 assert(m.suffix().second == m[0].second); in main()
454 assert(m.length(0) == 1); in main()
455 assert(m.position(0) == 0); in main()
456 assert(m.str(0) == "a"); in main()
459 std::cmatch m; in main()
461 assert(std::regex_match(s, m, std::regex("^[ab]$", in main()
463 assert(m.size() == 1); in main()
464 assert(!m.prefix().matched); in main()
465 assert(m.prefix().first == s); in main()
466 assert(m.prefix().second == m[0].first); in main()
467 assert(!m.suffix().matched); in main()
468 assert(m.suffix().first == m[0].second); in main()
469 assert(m.suffix().second == m[0].second); in main()
470 assert(m.length(0) == 1); in main()
471 assert(m.position(0) == 0); in main()
472 assert(m.str(0) == "a"); in main()
475 std::cmatch m; in main()
477 assert(std::regex_match(s, m, std::regex("^[a-f]$", in main()
479 assert(m.size() == 1); in main()
480 assert(!m.prefix().matched); in main()
481 assert(m.prefix().first == s); in main()
482 assert(m.prefix().second == m[0].first); in main()
483 assert(!m.suffix().matched); in main()
484 assert(m.suffix().first == m[0].second); in main()
485 assert(m.suffix().second == m[0].second); in main()
486 assert(m.length(0) == 1); in main()
487 assert(m.position(0) == 0); in main()
488 assert(m.str(0) == s); in main()
491 std::cmatch m; in main()
493 assert(!std::regex_match(s, m, std::regex("^[a-f]$", in main()
495 assert(m.size() == 0); in main()
498 std::cmatch m; in main()
500 assert(!std::regex_match(s, m, std::regex("q[^u]", in main()
502 assert(m.size() == 0); in main()
505 std::cmatch m; in main()
507 assert(!std::regex_match(s, m, std::regex("q[^u]", in main()
509 assert(m.size() == 0); in main()
512 std::cmatch m; in main()
514 assert(std::regex_match(s, m, std::regex("A[[:lower:]]B", in main()
516 assert(m.size() == 1); in main()
517 assert(!m.prefix().matched); in main()
518 assert(m.prefix().first == s); in main()
519 assert(m.prefix().second == m[0].first); in main()
520 assert(!m.suffix().matched); in main()
521 assert(m.suffix().first == m[0].second); in main()
522 assert(m.suffix().second == m[0].second); in main()
523 assert((size_t)m.length(0) == std::char_traits<char>::length(s)); in main()
524 assert(m.position(0) == 0); in main()
525 assert(m.str(0) == s); in main()
528 std::cmatch m; in main()
530 assert(!std::regex_match(s, m, std::regex("A[[:lower:]]B", in main()
532 assert(m.size() == 0); in main()
535 std::cmatch m; in main()
537 assert(std::regex_match(s, m, std::regex("A[^[:lower:]]B", in main()
539 assert(m.size() == 1); in main()
540 assert(!m.prefix().matched); in main()
541 assert(m.prefix().first == s); in main()
542 assert(m.prefix().second == m[0].first); in main()
543 assert(!m.suffix().matched); in main()
544 assert(m.suffix().first == m[0].second); in main()
545 assert(m.suffix().second == m[0].second); in main()
546 assert((size_t)m.length(0) == std::char_traits<char>::length(s)); in main()
547 assert(m.position(0) == 0); in main()
548 assert(m.str(0) == s); in main()
551 std::cmatch m; in main()
553 assert(!std::regex_match(s, m, std::regex("A[^[:lower:]]B", in main()
555 assert(m.size() == 0); in main()
558 std::cmatch m; in main()
560 assert(!std::regex_match(s, m, std::regex("A[^[:lower:]0-9]B", in main()
562 assert(m.size() == 0); in main()
565 std::cmatch m; in main()
567 assert(std::regex_match(s, m, std::regex("A[^[:lower:]0-9]B", in main()
569 assert(m.size() == 1); in main()
570 assert(!m.prefix().matched); in main()
571 assert(m.prefix().first == s); in main()
572 assert(m.prefix().second == m[0].first); in main()
573 assert(!m.suffix().matched); in main()
574 assert(m.suffix().first == m[0].second); in main()
575 assert(m.suffix().second == m[0].second); in main()
576 assert((size_t)m.length(0) == std::char_traits<char>::length(s)); in main()
577 assert(m.position(0) == 0); in main()
578 assert(m.str(0) == s); in main()
581 std::cmatch m; in main()
583 assert(std::regex_match(s, m, std::regex("[a[.hyphen.]z]", in main()
585 assert(m.size() == 1); in main()
586 assert(!m.prefix().matched); in main()
587 assert(m.prefix().first == s); in main()
588 assert(m.prefix().second == m[0].first); in main()
589 assert(!m.suffix().matched); in main()
590 assert(m.suffix().first == m[0].second); in main()
591 assert(m.suffix().second == m[0].second); in main()
592 assert((size_t)m.length(0) == std::char_traits<char>::length(s)); in main()
593 assert(m.position(0) == 0); in main()
594 assert(m.str(0) == s); in main()
597 std::cmatch m; in main()
599 assert(std::regex_match(s, m, std::regex("[a[.hyphen.]z]", in main()
601 assert(m.size() == 1); in main()
602 assert(!m.prefix().matched); in main()
603 assert(m.prefix().first == s); in main()
604 assert(m.prefix().second == m[0].first); in main()
605 assert(!m.suffix().matched); in main()
606 assert(m.suffix().first == m[0].second); in main()
607 assert(m.suffix().second == m[0].second); in main()
608 assert((size_t)m.length(0) == std::char_traits<char>::length(s)); in main()
609 assert(m.position(0) == 0); in main()
610 assert(m.str(0) == s); in main()
613 std::cmatch m; in main()
615 assert(!std::regex_match(s, m, std::regex("[a[.hyphen.]z]", in main()
617 assert(m.size() == 0); in main()
621 std::cmatch m; in main()
623 assert(std::regex_match(s, m, in main()
625 assert(m.size() == 1); in main()
626 assert(!m.prefix().matched); in main()
627 assert(m.prefix().first == s); in main()
628 assert(m.prefix().second == m[0].first); in main()
629 assert(!m.suffix().matched); in main()
630 assert(m.suffix().first == m[0].second); in main()
631 assert(m.suffix().second == m[0].second); in main()
632 assert((size_t)m.length(0) == std::char_traits<char>::length(s)); in main()
633 assert(m.position(0) == 0); in main()
634 assert(m.str(0) == s); in main()
637 std::cmatch m; in main()
639 assert(std::regex_match(s, m, std::regex("[a[.ch.]z]", in main()
641 assert(m.size() == 1); in main()
642 assert(!m.prefix().matched); in main()
643 assert(m.prefix().first == s); in main()
644 assert(m.prefix().second == m[0].first); in main()
645 assert(!m.suffix().matched); in main()
646 assert(m.suffix().first == m[0].second); in main()
647 assert(m.suffix().second == m[0].second); in main()
648 assert((size_t)m.length(0) == std::char_traits<char>::length(s)); in main()
649 assert(m.position(0) == 0); in main()
650 assert(m.str(0) == s); in main()
654 std::cmatch m; in main()
656 assert(!std::regex_match(s, m, std::regex("[a[=M=]z]", in main()
658 assert(m.size() == 0); in main()
661 std::cmatch m; in main()
663 assert(!std::regex_match(s, m, std::regex("[ace1-9]*", in main()
665 assert(m.size() == 0); in main()
668 std::cmatch m; in main()
670 assert(!std::regex_match(s, m, std::regex("[ace1-9]+", in main()
672 assert(m.size() == 0); in main()
680 std::match_results<BI> m; in main()
683 assert(std::regex_match(BI(s), BI(s+ss), m, regex)); in main()
684 assert(m.size() == 1); in main()
685 assert(!m.prefix().matched); in main()
686 assert(m.prefix().first == BI(s)); in main()
687 assert(m.prefix().second == m[0].first); in main()
688 assert(!m.suffix().matched); in main()
689 assert(m.suffix().first == m[0].second); in main()
690 assert(m.suffix().second == m[0].second); in main()
691 assert((size_t)m.length(0) == 4); in main()
692 assert(m.position(0) == 0); in main()
693 assert(m.str(0) == s); in main()
696 std::cmatch m; in main()
698 assert(std::regex_match(s, m, std::regex("[\\n]+", in main()
700 assert(m.size() == 1); in main()
701 assert(!m.prefix().matched); in main()
702 assert(m.prefix().first == s); in main()
703 assert(m.prefix().second == m[0].first); in main()
704 assert(!m.suffix().matched); in main()
705 assert(m.suffix().first == m[0].second); in main()
706 assert(m.suffix().second == s + std::char_traits<char>::length(s)); in main()
707 assert((size_t)m.length(0) == std::char_traits<char>::length(s)); in main()
708 assert(m.position(0) == 0); in main()
709 assert(m.str(0) == s); in main()
712 std::wcmatch m; in main()
714 assert(std::regex_match(s, m, std::wregex(L"a", std::regex_constants::awk))); in main()
715 assert(m.size() == 1); in main()
716 assert(!m.empty()); in main()
717 assert(!m.prefix().matched); in main()
718 assert(m.prefix().first == s); in main()
719 assert(m.prefix().second == m[0].first); in main()
720 assert(!m.suffix().matched); in main()
721 assert(m.suffix().first == m[0].second); in main()
722 assert(m.suffix().second == s+1); in main()
723 assert((size_t)m.length(0) == 1); in main()
724 assert(m.position(0) == 0); in main()
725 assert(m.str(0) == L"a"); in main()
728 std::wcmatch m; in main()
730 assert(std::regex_match(s, m, std::wregex(L"ab", std::regex_constants::awk))); in main()
731 assert(m.size() == 1); in main()
732 assert(!m.prefix().matched); in main()
733 assert(m.prefix().first == s); in main()
734 assert(m.prefix().second == m[0].first); in main()
735 assert(!m.suffix().matched); in main()
736 assert(m.suffix().first == m[0].second); in main()
737 assert(m.suffix().second == s+2); in main()
738 assert((size_t)m.length(0) == 2); in main()
739 assert(m.position(0) == 0); in main()
740 assert(m.str(0) == L"ab"); in main()
743 std::wcmatch m; in main()
745 assert(!std::regex_match(s, m, std::wregex(L"ba", std::regex_constants::awk))); in main()
746 assert(m.size() == 0); in main()
747 assert(m.empty()); in main()
750 std::wcmatch m; in main()
752 assert(!std::regex_match(s, m, std::wregex(L"ab", std::regex_constants::awk))); in main()
753 assert(m.size() == 0); in main()
756 std::wcmatch m; in main()
758 assert(!std::regex_match(s, m, std::wregex(L"ab", std::regex_constants::awk), in main()
760 assert(m.size() == 0); in main()
763 std::wcmatch m; in main()
765 assert(!std::regex_match(s, m, std::wregex(L"bc", std::regex_constants::awk))); in main()
766 assert(m.size() == 0); in main()
769 std::wcmatch m; in main()
771 assert(std::regex_match(s, m, std::wregex(L"ab*c", std::regex_constants::awk))); in main()
772 assert(m.size() == 1); in main()
773 assert(!m.prefix().matched); in main()
774 assert(m.prefix().first == s); in main()
775 assert(m.prefix().second == m[0].first); in main()
776 assert(!m.suffix().matched); in main()
777 assert(m.suffix().first == m[0].second); in main()
778 assert(m.suffix().second == s+4); in main()
779 assert(m.length(0) == 4); in main()
780 assert(m.position(0) == 0); in main()
781 assert(m.str(0) == s); in main()
784 std::wcmatch m; in main()
786 assert(std::regex_match(s, m, std::wregex(L"(ab)*c", std::regex_constants::awk))); in main()
787 assert(m.size() == 2); in main()
788 assert(!m.prefix().matched); in main()
789 assert(m.prefix().first == s); in main()
790 assert(m.prefix().second == m[0].first); in main()
791 assert(!m.suffix().matched); in main()
792 assert(m.suffix().first == m[0].second); in main()
793 assert(m.suffix().second == s+5); in main()
794 assert(m.length(0) == 5); in main()
795 assert(m.position(0) == 0); in main()
796 assert(m.str(0) == s); in main()
797 assert(m.length(1) == 2); in main()
798 assert(m.position(1) == 2); in main()
799 assert(m.str(1) == L"ab"); in main()
802 std::wcmatch m; in main()
804 assert(!std::regex_match(s, m, std::wregex(L"cd((e)fg)hi", in main()
806 assert(m.size() == 0); in main()
809 std::wcmatch m; in main()
811 assert(std::regex_match(s, m, std::wregex(L"^abc", std::regex_constants::awk))); in main()
812 assert(m.size() == 1); in main()
813 assert(!m.prefix().matched); in main()
814 assert(m.prefix().first == s); in main()
815 assert(m.prefix().second == m[0].first); in main()
816 assert(!m.suffix().matched); in main()
817 assert(m.suffix().first == m[0].second); in main()
818 assert(m.suffix().second == s+3); in main()
819 assert(m.length(0) == 3); in main()
820 assert(m.position(0) == 0); in main()
821 assert(m.str(0) == s); in main()
824 std::wcmatch m; in main()
826 assert(!std::regex_match(s, m, std::wregex(L"^abc", std::regex_constants::awk))); in main()
827 assert(m.size() == 0); in main()
830 std::wcmatch m; in main()
832 assert(!std::regex_match(s, m, std::wregex(L"^abc", std::regex_constants::awk))); in main()
833 assert(m.size() == 0); in main()
836 std::wcmatch m; in main()
838 assert(std::regex_match(s, m, std::wregex(L"abc$", std::regex_constants::awk))); in main()
839 assert(m.size() == 1); in main()
840 assert(!m.prefix().matched); in main()
841 assert(m.prefix().first == s); in main()
842 assert(m.prefix().second == m[0].first); in main()
843 assert(!m.suffix().matched); in main()
844 assert(m.suffix().first == m[0].second); in main()
845 assert(m.suffix().second == s+3); in main()
846 assert(m.length(0) == 3); in main()
847 assert(m.position(0) == 0); in main()
848 assert(m.str(0) == s); in main()
851 std::wcmatch m; in main()
853 assert(!std::regex_match(s, m, std::wregex(L"abc$", std::regex_constants::awk))); in main()
854 assert(m.size() == 0); in main()
857 std::wcmatch m; in main()
859 assert(!std::regex_match(s, m, std::wregex(L"abc$", std::regex_constants::awk))); in main()
860 assert(m.size() == 0); in main()
863 std::wcmatch m; in main()
865 assert(std::regex_match(s, m, std::wregex(L"a.c", std::regex_constants::awk))); in main()
866 assert(m.size() == 1); in main()
867 assert(!m.prefix().matched); in main()
868 assert(m.prefix().first == s); in main()
869 assert(m.prefix().second == m[0].first); in main()
870 assert(!m.suffix().matched); in main()
871 assert(m.suffix().first == m[0].second); in main()
872 assert(m.suffix().second == s+3); in main()
873 assert(m.length(0) == 3); in main()
874 assert(m.position(0) == 0); in main()
875 assert(m.str(0) == s); in main()
878 std::wcmatch m; in main()
880 assert(std::regex_match(s, m, std::wregex(L"a.c", std::regex_constants::awk))); in main()
881 assert(m.size() == 1); in main()
882 assert(!m.prefix().matched); in main()
883 assert(m.prefix().first == s); in main()
884 assert(m.prefix().second == m[0].first); in main()
885 assert(!m.suffix().matched); in main()
886 assert(m.suffix().first == m[0].second); in main()
887 assert(m.suffix().second == s+3); in main()
888 assert(m.length(0) == 3); in main()
889 assert(m.position(0) == 0); in main()
890 assert(m.str(0) == s); in main()
893 std::wcmatch m; in main()
895 assert(std::regex_match(s, m, std::wregex(L"a.c", std::regex_constants::awk))); in main()
896 assert(m.size() == 1); in main()
897 assert(!m.prefix().matched); in main()
898 assert(m.prefix().first == s); in main()
899 assert(m.prefix().second == m[0].first); in main()
900 assert(!m.suffix().matched); in main()
901 assert(m.suffix().first == m[0].second); in main()
902 assert(m.suffix().second == s+3); in main()
903 assert(m.length(0) == 3); in main()
904 assert(m.position(0) == 0); in main()
905 assert(m.str(0) == s); in main()
908 std::wcmatch m; in main()
910 assert(std::regex_match(s, m, std::wregex(L"(.*).*", std::regex_constants::awk))); in main()
911 assert(m.size() == 2); in main()
912 assert(!m.prefix().matched); in main()
913 assert(m.prefix().first == s); in main()
914 assert(m.prefix().second == m[0].first); in main()
915 assert(!m.suffix().matched); in main()
916 assert(m.suffix().first == m[0].second); in main()
917 assert(m.suffix().second == s+6); in main()
918 assert(m.length(0) == 6); in main()
919 assert(m.position(0) == 0); in main()
920 assert(m.str(0) == s); in main()
921 assert(m.length(1) == 6); in main()
922 assert(m.position(1) == 0); in main()
923 assert(m.str(1) == s); in main()
926 std::wcmatch m; in main()
928 assert(!std::regex_match(s, m, std::wregex(L"(a*)*", std::regex_constants::awk))); in main()
929 assert(m.size() == 0); in main()
932 std::wcmatch m; in main()
934 assert(!std::regex_match(s, m, std::wregex(L"ab{3,5}c", std::regex_constants::awk))); in main()
935 assert(m.size() == 0); in main()
938 std::wcmatch m; in main()
940 assert(std::regex_match(s, m, std::wregex(L"ab{3,5}c", std::regex_constants::awk))); in main()
941 assert(m.size() == 1); in main()
942 assert(!m.prefix().matched); in main()
943 assert(m.prefix().first == s); in main()
944 assert(m.prefix().second == m[0].first); in main()
945 assert(!m.suffix().matched); in main()
946 assert(m.suffix().first == m[0].second); in main()
947 assert(m.suffix().second == m[0].second); in main()
948 assert((size_t)m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
949 assert(m.position(0) == 0); in main()
950 assert(m.str(0) == s); in main()
953 std::wcmatch m; in main()
955 assert(std::regex_match(s, m, std::wregex(L"ab{3,5}c", std::regex_constants::awk))); in main()
956 assert(m.size() == 1); in main()
957 assert(!m.prefix().matched); in main()
958 assert(m.prefix().first == s); in main()
959 assert(m.prefix().second == m[0].first); in main()
960 assert(!m.suffix().matched); in main()
961 assert(m.suffix().first == m[0].second); in main()
962 assert(m.suffix().second == m[0].second); in main()
963 assert((size_t)m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
964 assert(m.position(0) == 0); in main()
965 assert(m.str(0) == s); in main()
968 std::wcmatch m; in main()
970 assert(std::regex_match(s, m, std::wregex(L"ab{3,5}c", std::regex_constants::awk))); in main()
971 assert(m.size() == 1); in main()
972 assert(!m.prefix().matched); in main()
973 assert(m.prefix().first == s); in main()
974 assert(m.prefix().second == m[0].first); in main()
975 assert(!m.suffix().matched); in main()
976 assert(m.suffix().first == m[0].second); in main()
977 assert(m.suffix().second == m[0].second); in main()
978 assert((size_t)m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
979 assert(m.position(0) == 0); in main()
980 assert(m.str(0) == s); in main()
983 std::wcmatch m; in main()
985 assert(!std::regex_match(s, m, std::wregex(L"ab{3,5}c", std::regex_constants::awk))); in main()
986 assert(m.size() == 0); in main()
989 std::wcmatch m; in main()
991 assert(!std::regex_match(s, m, std::wregex(L"ab{3,5}c", std::regex_constants::awk))); in main()
992 assert(m.size() == 0); in main()
995 std::wcmatch m; in main()
997 assert(!std::regex_match(s, m, std::wregex(L"a.{3,5}c", std::regex_constants::awk))); in main()
998 assert(m.size() == 0); in main()
1001 std::wcmatch m; in main()
1003 assert(std::regex_match(s, m, std::wregex(L"a.{3,5}c", std::regex_constants::awk))); in main()
1004 assert(m.size() == 1); in main()
1005 assert(!m.prefix().matched); in main()
1006 assert(m.prefix().first == s); in main()
1007 assert(m.prefix().second == m[0].first); in main()
1008 assert(!m.suffix().matched); in main()
1009 assert(m.suffix().first == m[0].second); in main()
1010 assert(m.suffix().second == m[0].second); in main()
1011 assert((size_t)m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1012 assert(m.position(0) == 0); in main()
1013 assert(m.str(0) == s); in main()
1016 std::wcmatch m; in main()
1018 assert(std::regex_match(s, m, std::wregex(L"a.{3,5}c", std::regex_constants::awk))); in main()
1019 assert(m.size() == 1); in main()
1020 assert(!m.prefix().matched); in main()
1021 assert(m.prefix().first == s); in main()
1022 assert(m.prefix().second == m[0].first); in main()
1023 assert(!m.suffix().matched); in main()
1024 assert(m.suffix().first == m[0].second); in main()
1025 assert(m.suffix().second == m[0].second); in main()
1026 assert((size_t)m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1027 assert(m.position(0) == 0); in main()
1028 assert(m.str(0) == s); in main()
1031 std::wcmatch m; in main()
1033 assert(std::regex_match(s, m, std::wregex(L"a.{3,5}c", std::regex_constants::awk))); in main()
1034 assert(m.size() == 1); in main()
1035 assert(!m.prefix().matched); in main()
1036 assert(m.prefix().first == s); in main()
1037 assert(m.prefix().second == m[0].first); in main()
1038 assert(!m.suffix().matched); in main()
1039 assert(m.suffix().first == m[0].second); in main()
1040 assert(m.suffix().second == m[0].second); in main()
1041 assert((size_t)m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1042 assert(m.position(0) == 0); in main()
1043 assert(m.str(0) == s); in main()
1046 std::wcmatch m; in main()
1048 assert(!std::regex_match(s, m, std::wregex(L"a.{3,5}c", std::regex_constants::awk))); in main()
1049 assert(m.size() == 0); in main()
1052 std::wcmatch m; in main()
1054 assert(std::regex_match(s, m, std::wregex(L"tour|to|tournament", in main()
1056 assert(m.size() == 1); in main()
1057 assert(!m.prefix().matched); in main()
1058 assert(m.prefix().first == s); in main()
1059 assert(m.prefix().second == m[0].first); in main()
1060 assert(!m.suffix().matched); in main()
1061 assert(m.suffix().first == m[0].second); in main()
1062 assert(m.suffix().second == m[0].second); in main()
1063 assert((size_t)m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1064 assert(m.position(0) == 0); in main()
1065 assert(m.str(0) == s); in main()
1068 std::wcmatch m; in main()
1070 assert(std::regex_match(s, m, std::wregex(L"(tour|to|tournament)+", in main()
1072 assert(m.size() == 1); in main()
1073 assert(!m.prefix().matched); in main()
1074 assert(m.prefix().first == s); in main()
1075 assert(m.prefix().second == m[0].first); in main()
1076 assert(!m.suffix().matched); in main()
1077 assert(m.suffix().first == m[0].second); in main()
1078 assert(m.suffix().second == m[0].second); in main()
1079 assert((size_t)m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1080 assert(m.position(0) == 0); in main()
1081 assert(m.str(0) == s); in main()
1084 std::wcmatch m; in main()
1086 assert(std::regex_match(s, m, std::wregex(L"(tour|to|t)+", in main()
1088 assert(m.size() == 2); in main()
1089 assert(!m.prefix().matched); in main()
1090 assert(m.prefix().first == s); in main()
1091 assert(m.prefix().second == m[0].first); in main()
1092 assert(!m.suffix().matched); in main()
1093 assert(m.suffix().first == m[0].second); in main()
1094 assert(m.suffix().second == m[0].second); in main()
1095 assert((size_t)m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1096 assert(m.position(0) == 0); in main()
1097 assert(m.str(0) == s); in main()
1098 assert(m.length(1) == 4); in main()
1099 assert(m.position(1) == 3); in main()
1100 assert(m.str(1) == L"tour"); in main()
1103 std::wcmatch m; in main()
1105 assert(!std::regex_match(s, m, std::wregex(L"-(.*),\1-", std::regex_constants::awk))); in main()
1106 assert(m.size() == 0); in main()
1109 std::wcmatch m; in main()
1111 assert(std::regex_match(s, m, std::wregex(L"-.*,.*-", std::regex_constants::awk))); in main()
1112 assert(m.size() == 1); in main()
1113 assert(!m.prefix().matched); in main()
1114 assert(m.prefix().first == s); in main()
1115 assert(m.prefix().second == m[0].first); in main()
1116 assert(!m.suffix().matched); in main()
1117 assert(m.suffix().first == m[0].second); in main()
1118 assert(m.suffix().second == m[0].second); in main()
1119 assert((size_t)m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1120 assert(m.position(0) == 0); in main()
1121 assert(m.str(0) == s); in main()
1124 std::wcmatch m; in main()
1126 assert(std::regex_match(s, m, std::wregex(L"^[a]$", in main()
1128 assert(m.size() == 1); in main()
1129 assert(!m.prefix().matched); in main()
1130 assert(m.prefix().first == s); in main()
1131 assert(m.prefix().second == m[0].first); in main()
1132 assert(!m.suffix().matched); in main()
1133 assert(m.suffix().first == m[0].second); in main()
1134 assert(m.suffix().second == m[0].second); in main()
1135 assert(m.length(0) == 1); in main()
1136 assert(m.position(0) == 0); in main()
1137 assert(m.str(0) == L"a"); in main()
1140 std::wcmatch m; in main()
1142 assert(std::regex_match(s, m, std::wregex(L"^[ab]$", in main()
1144 assert(m.size() == 1); in main()
1145 assert(!m.prefix().matched); in main()
1146 assert(m.prefix().first == s); in main()
1147 assert(m.prefix().second == m[0].first); in main()
1148 assert(!m.suffix().matched); in main()
1149 assert(m.suffix().first == m[0].second); in main()
1150 assert(m.suffix().second == m[0].second); in main()
1151 assert(m.length(0) == 1); in main()
1152 assert(m.position(0) == 0); in main()
1153 assert(m.str(0) == L"a"); in main()
1156 std::wcmatch m; in main()
1158 assert(std::regex_match(s, m, std::wregex(L"^[a-f]$", in main()
1160 assert(m.size() == 1); in main()
1161 assert(!m.prefix().matched); in main()
1162 assert(m.prefix().first == s); in main()
1163 assert(m.prefix().second == m[0].first); in main()
1164 assert(!m.suffix().matched); in main()
1165 assert(m.suffix().first == m[0].second); in main()
1166 assert(m.suffix().second == m[0].second); in main()
1167 assert(m.length(0) == 1); in main()
1168 assert(m.position(0) == 0); in main()
1169 assert(m.str(0) == s); in main()
1172 std::wcmatch m; in main()
1174 assert(!std::regex_match(s, m, std::wregex(L"^[a-f]$", in main()
1176 assert(m.size() == 0); in main()
1179 std::wcmatch m; in main()
1181 assert(!std::regex_match(s, m, std::wregex(L"q[^u]", in main()
1183 assert(m.size() == 0); in main()
1186 std::wcmatch m; in main()
1188 assert(!std::regex_match(s, m, std::wregex(L"q[^u]", in main()
1190 assert(m.size() == 0); in main()
1193 std::wcmatch m; in main()
1195 assert(std::regex_match(s, m, std::wregex(L"A[[:lower:]]B", in main()
1197 assert(m.size() == 1); in main()
1198 assert(!m.prefix().matched); in main()
1199 assert(m.prefix().first == s); in main()
1200 assert(m.prefix().second == m[0].first); in main()
1201 assert(!m.suffix().matched); in main()
1202 assert(m.suffix().first == m[0].second); in main()
1203 assert(m.suffix().second == m[0].second); in main()
1204 assert((size_t)m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1205 assert(m.position(0) == 0); in main()
1206 assert(m.str(0) == s); in main()
1209 std::wcmatch m; in main()
1211 assert(!std::regex_match(s, m, std::wregex(L"A[[:lower:]]B", in main()
1213 assert(m.size() == 0); in main()
1216 std::wcmatch m; in main()
1218 assert(std::regex_match(s, m, std::wregex(L"A[^[:lower:]]B", in main()
1220 assert(m.size() == 1); in main()
1221 assert(!m.prefix().matched); in main()
1222 assert(m.prefix().first == s); in main()
1223 assert(m.prefix().second == m[0].first); in main()
1224 assert(!m.suffix().matched); in main()
1225 assert(m.suffix().first == m[0].second); in main()
1226 assert(m.suffix().second == m[0].second); in main()
1227 assert((size_t)m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1228 assert(m.position(0) == 0); in main()
1229 assert(m.str(0) == s); in main()
1232 std::wcmatch m; in main()
1234 assert(!std::regex_match(s, m, std::wregex(L"A[^[:lower:]]B", in main()
1236 assert(m.size() == 0); in main()
1239 std::wcmatch m; in main()
1241 assert(!std::regex_match(s, m, std::wregex(L"A[^[:lower:]0-9]B", in main()
1243 assert(m.size() == 0); in main()
1246 std::wcmatch m; in main()
1248 assert(std::regex_match(s, m, std::wregex(L"A[^[:lower:]0-9]B", in main()
1250 assert(m.size() == 1); in main()
1251 assert(!m.prefix().matched); in main()
1252 assert(m.prefix().first == s); in main()
1253 assert(m.prefix().second == m[0].first); in main()
1254 assert(!m.suffix().matched); in main()
1255 assert(m.suffix().first == m[0].second); in main()
1256 assert(m.suffix().second == m[0].second); in main()
1257 assert((size_t)m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1258 assert(m.position(0) == 0); in main()
1259 assert(m.str(0) == s); in main()
1262 std::wcmatch m; in main()
1264 assert(std::regex_match(s, m, std::wregex(L"[a[.hyphen.]z]", in main()
1266 assert(m.size() == 1); in main()
1267 assert(!m.prefix().matched); in main()
1268 assert(m.prefix().first == s); in main()
1269 assert(m.prefix().second == m[0].first); in main()
1270 assert(!m.suffix().matched); in main()
1271 assert(m.suffix().first == m[0].second); in main()
1272 assert(m.suffix().second == m[0].second); in main()
1273 assert((size_t)m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1274 assert(m.position(0) == 0); in main()
1275 assert(m.str(0) == s); in main()
1278 std::wcmatch m; in main()
1280 assert(std::regex_match(s, m, std::wregex(L"[a[.hyphen.]z]", in main()
1282 assert(m.size() == 1); in main()
1283 assert(!m.prefix().matched); in main()
1284 assert(m.prefix().first == s); in main()
1285 assert(m.prefix().second == m[0].first); in main()
1286 assert(!m.suffix().matched); in main()
1287 assert(m.suffix().first == m[0].second); in main()
1288 assert(m.suffix().second == m[0].second); in main()
1289 assert((size_t)m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1290 assert(m.position(0) == 0); in main()
1291 assert(m.str(0) == s); in main()
1294 std::wcmatch m; in main()
1296 assert(!std::regex_match(s, m, std::wregex(L"[a[.hyphen.]z]", in main()
1298 assert(m.size() == 0); in main()
1302 std::wcmatch m; in main()
1304 assert(std::regex_match(s, m, std::wregex(L"[a[=M=]z]", in main()
1306 assert(m.size() == 1); in main()
1307 assert(!m.prefix().matched); in main()
1308 assert(m.prefix().first == s); in main()
1309 assert(m.prefix().second == m[0].first); in main()
1310 assert(!m.suffix().matched); in main()
1311 assert(m.suffix().first == m[0].second); in main()
1312 assert(m.suffix().second == m[0].second); in main()
1313 assert((size_t)m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1314 assert(m.position(0) == 0); in main()
1315 assert(m.str(0) == s); in main()
1318 std::wcmatch m; in main()
1320 assert(std::regex_match(s, m, std::wregex(L"[a[.ch.]z]", in main()
1322 assert(m.size() == 1); in main()
1323 assert(!m.prefix().matched); in main()
1324 assert(m.prefix().first == s); in main()
1325 assert(m.prefix().second == m[0].first); in main()
1326 assert(!m.suffix().matched); in main()
1327 assert(m.suffix().first == m[0].second); in main()
1328 assert(m.suffix().second == m[0].second); in main()
1329 assert((size_t)m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1330 assert(m.position(0) == 0); in main()
1331 assert(m.str(0) == s); in main()
1335 std::wcmatch m; in main()
1337 assert(!std::regex_match(s, m, std::wregex(L"[a[=M=]z]", in main()
1339 assert(m.size() == 0); in main()
1342 std::wcmatch m; in main()
1344 assert(!std::regex_match(s, m, std::wregex(L"[ace1-9]*", in main()
1346 assert(m.size() == 0); in main()
1349 std::wcmatch m; in main()
1351 assert(!std::regex_match(s, m, std::wregex(L"[ace1-9]+", in main()
1353 assert(m.size() == 0); in main()
1361 std::match_results<BI> m; in main()
1364 assert(std::regex_match(BI(s), BI(s+ss), m, regex)); in main()
1365 assert(m.size() == 1); in main()
1366 assert(!m.prefix().matched); in main()
1367 assert(m.prefix().first == BI(s)); in main()
1368 assert(m.prefix().second == m[0].first); in main()
1369 assert(!m.suffix().matched); in main()
1370 assert(m.suffix().first == m[0].second); in main()
1371 assert(m.suffix().second == m[0].second); in main()
1372 assert(m.length(0) == 4); in main()
1373 assert(m.position(0) == 0); in main()
1374 assert(m.str(0) == s); in main()
1377 std::wcmatch m; in main()
1379 assert(std::regex_match(s, m, std::wregex(L"[\\n]+", in main()
1381 assert(m.size() == 1); in main()
1382 assert(!m.prefix().matched); in main()
1383 assert(m.prefix().first == s); in main()
1384 assert(m.prefix().second == m[0].first); in main()
1385 assert(!m.suffix().matched); in main()
1386 assert(m.suffix().first == m[0].second); in main()
1387 assert(m.suffix().second == s + std::char_traits<wchar_t>::length(s)); in main()
1388 assert((size_t)m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1389 assert(m.position(0) == 0); in main()
1390 assert(m.str(0) == s); in main()