Lines Matching refs:m
32 std::cmatch m; in main() local
33 assert(!std::regex_match("a", m, std::regex())); in main()
34 assert(m.size() == 0); in main()
35 assert(m.empty()); in main()
38 std::cmatch m; in main() local
40 assert(std::regex_match(s, m, std::regex("a", std::regex_constants::basic))); in main()
41 assert(m.size() == 1); in main()
42 assert(!m.empty()); in main()
43 assert(!m.prefix().matched); in main()
44 assert(m.prefix().first == s); in main()
45 assert(m.prefix().second == m[0].first); in main()
46 assert(!m.suffix().matched); in main()
47 assert(m.suffix().first == m[0].second); in main()
48 assert(m.suffix().second == s+1); in main()
49 assert(m.length(0) == 1); in main()
50 assert(m.position(0) == 0); in main()
51 assert(m.str(0) == "a"); in main()
54 std::cmatch m; in main() local
56 assert(std::regex_match(s, m, std::regex("ab", std::regex_constants::basic))); in main()
57 assert(m.size() == 1); in main()
58 assert(!m.prefix().matched); in main()
59 assert(m.prefix().first == s); in main()
60 assert(m.prefix().second == m[0].first); in main()
61 assert(!m.suffix().matched); in main()
62 assert(m.suffix().first == m[0].second); in main()
63 assert(m.suffix().second == s+2); in main()
64 assert(m.length(0) == 2); in main()
65 assert(m.position(0) == 0); in main()
66 assert(m.str(0) == "ab"); in main()
69 std::cmatch m; in main() local
71 assert(!std::regex_match(s, m, std::regex("ba", std::regex_constants::basic))); in main()
72 assert(m.size() == 0); in main()
73 assert(m.empty()); in main()
76 std::cmatch m; in main() local
78 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::basic))); in main()
79 assert(m.size() == 0); in main()
82 std::cmatch m; in main() local
84 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::basic), in main()
86 assert(m.size() == 0); in main()
89 std::cmatch m; in main() local
91 assert(!std::regex_match(s, m, std::regex("bc", std::regex_constants::basic))); in main()
92 assert(m.size() == 0); in main()
95 std::cmatch m; in main() local
97 assert(std::regex_match(s, m, std::regex("ab*c", std::regex_constants::basic))); in main()
98 assert(m.size() == 1); in main()
99 assert(!m.prefix().matched); in main()
100 assert(m.prefix().first == s); in main()
101 assert(m.prefix().second == m[0].first); in main()
102 assert(!m.suffix().matched); in main()
103 assert(m.suffix().first == m[0].second); in main()
104 assert(m.suffix().second == s+4); in main()
105 assert(m.length(0) == 4); in main()
106 assert(m.position(0) == 0); in main()
107 assert(m.str(0) == s); in main()
110 std::cmatch m; in main() local
112 assert(std::regex_match(s, m, std::regex("\\(ab\\)*c", std::regex_constants::basic))); in main()
113 assert(m.size() == 2); in main()
114 assert(!m.prefix().matched); in main()
115 assert(m.prefix().first == s); in main()
116 assert(m.prefix().second == m[0].first); in main()
117 assert(!m.suffix().matched); in main()
118 assert(m.suffix().first == m[0].second); in main()
119 assert(m.suffix().second == s+5); in main()
120 assert(m.length(0) == 5); in main()
121 assert(m.position(0) == 0); in main()
122 assert(m.str(0) == s); in main()
123 assert(m.length(1) == 2); in main()
124 assert(m.position(1) == 2); in main()
125 assert(m.str(1) == "ab"); in main()
128 std::cmatch m; in main() local
130 assert(!std::regex_match(s, m, std::regex("cd\\(\\(e\\)fg\\)hi", in main()
132 assert(m.size() == 0); in main()
135 std::cmatch m; in main() local
137 assert(std::regex_match(s, m, std::regex("^abc", std::regex_constants::basic))); in main()
138 assert(m.size() == 1); in main()
139 assert(!m.prefix().matched); in main()
140 assert(m.prefix().first == s); in main()
141 assert(m.prefix().second == m[0].first); in main()
142 assert(!m.suffix().matched); in main()
143 assert(m.suffix().first == m[0].second); in main()
144 assert(m.suffix().second == s+3); in main()
145 assert(m.length(0) == 3); in main()
146 assert(m.position(0) == 0); in main()
147 assert(m.str(0) == s); in main()
150 std::cmatch m; in main() local
152 assert(!std::regex_match(s, m, std::regex("^abc", std::regex_constants::basic))); in main()
153 assert(m.size() == 0); in main()
156 std::cmatch m; in main() local
158 assert(!std::regex_match(s, m, std::regex("^abc", std::regex_constants::basic))); in main()
159 assert(m.size() == 0); in main()
162 std::cmatch m; in main() local
164 assert(std::regex_match(s, m, std::regex("abc$", std::regex_constants::basic))); in main()
165 assert(m.size() == 1); in main()
166 assert(!m.prefix().matched); in main()
167 assert(m.prefix().first == s); in main()
168 assert(m.prefix().second == m[0].first); in main()
169 assert(!m.suffix().matched); in main()
170 assert(m.suffix().first == m[0].second); in main()
171 assert(m.suffix().second == s+3); in main()
172 assert(m.length(0) == 3); in main()
173 assert(m.position(0) == 0); in main()
174 assert(m.str(0) == s); in main()
177 std::cmatch m; in main() local
179 assert(!std::regex_match(s, m, std::regex("abc$", std::regex_constants::basic))); in main()
180 assert(m.size() == 0); in main()
183 std::cmatch m; in main() local
185 assert(!std::regex_match(s, m, std::regex("abc$", std::regex_constants::basic))); in main()
186 assert(m.size() == 0); in main()
189 std::cmatch m; in main() local
191 assert(std::regex_match(s, m, std::regex("a.c", std::regex_constants::basic))); in main()
192 assert(m.size() == 1); in main()
193 assert(!m.prefix().matched); in main()
194 assert(m.prefix().first == s); in main()
195 assert(m.prefix().second == m[0].first); in main()
196 assert(!m.suffix().matched); in main()
197 assert(m.suffix().first == m[0].second); in main()
198 assert(m.suffix().second == s+3); in main()
199 assert(m.length(0) == 3); in main()
200 assert(m.position(0) == 0); in main()
201 assert(m.str(0) == s); in main()
204 std::cmatch m; in main() local
206 assert(std::regex_match(s, m, std::regex("a.c", std::regex_constants::basic))); in main()
207 assert(m.size() == 1); in main()
208 assert(!m.prefix().matched); in main()
209 assert(m.prefix().first == s); in main()
210 assert(m.prefix().second == m[0].first); in main()
211 assert(!m.suffix().matched); in main()
212 assert(m.suffix().first == m[0].second); in main()
213 assert(m.suffix().second == s+3); in main()
214 assert(m.length(0) == 3); in main()
215 assert(m.position(0) == 0); in main()
216 assert(m.str(0) == s); in main()
219 std::cmatch m; in main() local
221 assert(std::regex_match(s, m, std::regex("a.c", std::regex_constants::basic))); in main()
222 assert(m.size() == 1); in main()
223 assert(!m.prefix().matched); in main()
224 assert(m.prefix().first == s); in main()
225 assert(m.prefix().second == m[0].first); in main()
226 assert(!m.suffix().matched); in main()
227 assert(m.suffix().first == m[0].second); in main()
228 assert(m.suffix().second == s+3); in main()
229 assert(m.length(0) == 3); in main()
230 assert(m.position(0) == 0); in main()
231 assert(m.str(0) == s); in main()
234 std::cmatch m; in main() local
236 assert(std::regex_match(s, m, std::regex("\\(.*\\).*", std::regex_constants::basic))); in main()
237 assert(m.size() == 2); in main()
238 assert(!m.prefix().matched); in main()
239 assert(m.prefix().first == s); in main()
240 assert(m.prefix().second == m[0].first); in main()
241 assert(!m.suffix().matched); in main()
242 assert(m.suffix().first == m[0].second); in main()
243 assert(m.suffix().second == s+6); in main()
244 assert(m.length(0) == 6); in main()
245 assert(m.position(0) == 0); in main()
246 assert(m.str(0) == s); in main()
247 assert(m.length(1) == 6); in main()
248 assert(m.position(1) == 0); in main()
249 assert(m.str(1) == s); in main()
252 std::cmatch m; in main() local
254 assert(!std::regex_match(s, m, std::regex("\\(a*\\)*", std::regex_constants::basic))); in main()
255 assert(m.size() == 0); in main()
258 std::cmatch m; in main() local
260 assert(!std::regex_match(s, m, std::regex("ab\\{3,5\\}c", std::regex_constants::basic))); in main()
261 assert(m.size() == 0); in main()
264 std::cmatch m; in main() local
266 assert(std::regex_match(s, m, std::regex("ab\\{3,5\\}c", std::regex_constants::basic))); in main()
267 assert(m.size() == 1); in main()
268 assert(!m.prefix().matched); in main()
269 assert(m.prefix().first == s); in main()
270 assert(m.prefix().second == m[0].first); in main()
271 assert(!m.suffix().matched); in main()
272 assert(m.suffix().first == m[0].second); in main()
273 assert(m.suffix().second == m[0].second); in main()
274 assert(m.length(0) == sizeof(s)-1); in main()
275 assert(m.position(0) == 0); in main()
276 assert(m.str(0) == s); in main()
279 std::cmatch m; in main() local
281 assert(std::regex_match(s, m, std::regex("ab\\{3,5\\}c", std::regex_constants::basic))); in main()
282 assert(m.size() == 1); in main()
283 assert(!m.prefix().matched); in main()
284 assert(m.prefix().first == s); in main()
285 assert(m.prefix().second == m[0].first); in main()
286 assert(!m.suffix().matched); in main()
287 assert(m.suffix().first == m[0].second); in main()
288 assert(m.suffix().second == m[0].second); in main()
289 assert(m.length(0) == sizeof(s)-1); in main()
290 assert(m.position(0) == 0); in main()
291 assert(m.str(0) == s); in main()
294 std::cmatch m; in main() local
296 assert(std::regex_match(s, m, std::regex("ab\\{3,5\\}c", std::regex_constants::basic))); in main()
297 assert(m.size() == 1); in main()
298 assert(!m.prefix().matched); in main()
299 assert(m.prefix().first == s); in main()
300 assert(m.prefix().second == m[0].first); in main()
301 assert(!m.suffix().matched); in main()
302 assert(m.suffix().first == m[0].second); in main()
303 assert(m.suffix().second == m[0].second); in main()
304 assert(m.length(0) == sizeof(s)-1); in main()
305 assert(m.position(0) == 0); in main()
306 assert(m.str(0) == s); in main()
309 std::cmatch m; in main() local
311 assert(!std::regex_match(s, m, std::regex("ab\\{3,5\\}c", std::regex_constants::basic))); in main()
312 assert(m.size() == 0); in main()
315 std::cmatch m; in main() local
317 assert(!std::regex_match(s, m, std::regex("ab\\{3,5\\}c", std::regex_constants::basic))); in main()
318 assert(m.size() == 0); in main()
321 std::cmatch m; in main() local
323 assert(!std::regex_match(s, m, std::regex("a.\\{3,5\\}c", std::regex_constants::basic))); in main()
324 assert(m.size() == 0); in main()
327 std::cmatch m; in main() local
329 assert(std::regex_match(s, m, std::regex("a.\\{3,5\\}c", std::regex_constants::basic))); in main()
330 assert(m.size() == 1); in main()
331 assert(!m.prefix().matched); in main()
332 assert(m.prefix().first == s); in main()
333 assert(m.prefix().second == m[0].first); in main()
334 assert(!m.suffix().matched); in main()
335 assert(m.suffix().first == m[0].second); in main()
336 assert(m.suffix().second == m[0].second); in main()
337 assert(m.length(0) == sizeof(s)-1); in main()
338 assert(m.position(0) == 0); in main()
339 assert(m.str(0) == s); in main()
342 std::cmatch m; in main() local
344 assert(std::regex_match(s, m, std::regex("a.\\{3,5\\}c", std::regex_constants::basic))); in main()
345 assert(m.size() == 1); in main()
346 assert(!m.prefix().matched); in main()
347 assert(m.prefix().first == s); in main()
348 assert(m.prefix().second == m[0].first); in main()
349 assert(!m.suffix().matched); in main()
350 assert(m.suffix().first == m[0].second); in main()
351 assert(m.suffix().second == m[0].second); in main()
352 assert(m.length(0) == sizeof(s)-1); in main()
353 assert(m.position(0) == 0); in main()
354 assert(m.str(0) == s); in main()
357 std::cmatch m; in main() local
359 assert(std::regex_match(s, m, std::regex("a.\\{3,5\\}c", std::regex_constants::basic))); in main()
360 assert(m.size() == 1); in main()
361 assert(!m.prefix().matched); in main()
362 assert(m.prefix().first == s); in main()
363 assert(m.prefix().second == m[0].first); in main()
364 assert(!m.suffix().matched); in main()
365 assert(m.suffix().first == m[0].second); in main()
366 assert(m.suffix().second == m[0].second); in main()
367 assert(m.length(0) == sizeof(s)-1); in main()
368 assert(m.position(0) == 0); in main()
369 assert(m.str(0) == s); in main()
372 std::cmatch m; in main() local
374 assert(!std::regex_match(s, m, std::regex("a.\\{3,5\\}c", std::regex_constants::basic))); in main()
375 assert(m.size() == 0); in main()
378 std::cmatch m; in main() local
380 assert(std::regex_match(s, m, std::regex("-\\(.*\\),\\1-", std::regex_constants::basic))); in main()
381 assert(m.size() == 2); in main()
382 assert(!m.prefix().matched); in main()
383 assert(m.prefix().first == s); in main()
384 assert(m.prefix().second == m[0].first); in main()
385 assert(!m.suffix().matched); in main()
386 assert(m.suffix().first == m[0].second); in main()
387 assert(m.suffix().second == m[0].second); in main()
388 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
389 assert(m.position(0) == 0); in main()
390 assert(m.str(0) == s); in main()
391 assert(m.length(1) == 2); in main()
392 assert(m.position(1) == 1); in main()
393 assert(m.str(1) == "ab"); in main()
396 std::cmatch m; in main() local
398 assert(std::regex_match(s, m, std::regex("^\\(ab*\\)*\\1$", std::regex_constants::basic))); in main()
399 assert(m.size() == 2); in main()
400 assert(!m.prefix().matched); in main()
401 assert(m.prefix().first == s); in main()
402 assert(m.prefix().second == m[0].first); in main()
403 assert(!m.suffix().matched); in main()
404 assert(m.suffix().first == m[0].second); in main()
405 assert(m.suffix().second == m[0].second); in main()
406 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
407 assert(m.position(0) == 0); in main()
408 assert(m.str(0) == s); in main()
409 assert(m.length(1) == 3); in main()
410 assert(m.position(1) == 2); in main()
411 assert(m.str(1) == "abb"); in main()
414 std::cmatch m; in main() local
416 assert(!std::regex_match(s, m, std::regex("^\\(ab*\\)*\\1$", std::regex_constants::basic))); in main()
417 assert(m.size() == 0); in main()
420 std::cmatch m; in main() local
422 assert(std::regex_match(s, m, std::regex("^\\(Ab*\\)*\\1$", in main()
424 assert(m.size() == 2); in main()
425 assert(!m.prefix().matched); in main()
426 assert(m.prefix().first == s); in main()
427 assert(m.prefix().second == m[0].first); in main()
428 assert(!m.suffix().matched); in main()
429 assert(m.suffix().first == m[0].second); in main()
430 assert(m.suffix().second == m[0].second); in main()
431 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
432 assert(m.position(0) == 0); in main()
433 assert(m.str(0) == s); in main()
434 assert(m.length(1) == 3); in main()
435 assert(m.position(1) == 2); in main()
436 assert(m.str(1) == "Abb"); in main()
439 std::cmatch m; in main() local
441 assert(!std::regex_match(s, m, std::regex("^\\(Ab*\\)*\\1$", in main()
443 assert(m.size() == 0); in main()
446 std::cmatch m; in main() local
448 assert(std::regex_match(s, m, std::regex("^[a]$", in main()
450 assert(m.size() == 1); in main()
451 assert(!m.prefix().matched); in main()
452 assert(m.prefix().first == s); in main()
453 assert(m.prefix().second == m[0].first); in main()
454 assert(!m.suffix().matched); in main()
455 assert(m.suffix().first == m[0].second); in main()
456 assert(m.suffix().second == m[0].second); in main()
457 assert(m.length(0) == 1); in main()
458 assert(m.position(0) == 0); in main()
459 assert(m.str(0) == "a"); in main()
462 std::cmatch m; in main() local
464 assert(std::regex_match(s, m, std::regex("^[ab]$", in main()
466 assert(m.size() == 1); in main()
467 assert(!m.prefix().matched); in main()
468 assert(m.prefix().first == s); in main()
469 assert(m.prefix().second == m[0].first); in main()
470 assert(!m.suffix().matched); in main()
471 assert(m.suffix().first == m[0].second); in main()
472 assert(m.suffix().second == m[0].second); in main()
473 assert(m.length(0) == 1); in main()
474 assert(m.position(0) == 0); in main()
475 assert(m.str(0) == "a"); in main()
478 std::cmatch m; in main() local
480 assert(std::regex_match(s, m, std::regex("^[a-f]$", in main()
482 assert(m.size() == 1); in main()
483 assert(!m.prefix().matched); in main()
484 assert(m.prefix().first == s); in main()
485 assert(m.prefix().second == m[0].first); in main()
486 assert(!m.suffix().matched); in main()
487 assert(m.suffix().first == m[0].second); in main()
488 assert(m.suffix().second == m[0].second); in main()
489 assert(m.length(0) == 1); in main()
490 assert(m.position(0) == 0); in main()
491 assert(m.str(0) == s); in main()
494 std::cmatch m; in main() local
496 assert(!std::regex_match(s, m, std::regex("^[a-f]$", in main()
498 assert(m.size() == 0); in main()
501 std::cmatch m; in main() local
503 assert(!std::regex_match(s, m, std::regex("q[^u]", in main()
505 assert(m.size() == 0); in main()
508 std::cmatch m; in main() local
510 assert(!std::regex_match(s, m, std::regex("q[^u]", in main()
512 assert(m.size() == 0); in main()
515 std::cmatch m; in main() local
517 assert(std::regex_match(s, m, std::regex("A[[:lower:]]B", in main()
519 assert(m.size() == 1); in main()
520 assert(!m.prefix().matched); in main()
521 assert(m.prefix().first == s); in main()
522 assert(m.prefix().second == m[0].first); in main()
523 assert(!m.suffix().matched); in main()
524 assert(m.suffix().first == m[0].second); in main()
525 assert(m.suffix().second == m[0].second); in main()
526 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
527 assert(m.position(0) == 0); in main()
528 assert(m.str(0) == s); in main()
531 std::cmatch m; in main() local
533 assert(!std::regex_match(s, m, std::regex("A[[:lower:]]B", in main()
535 assert(m.size() == 0); in main()
538 std::cmatch m; in main() local
540 assert(std::regex_match(s, m, std::regex("A[^[:lower:]]B", in main()
542 assert(m.size() == 1); in main()
543 assert(!m.prefix().matched); in main()
544 assert(m.prefix().first == s); in main()
545 assert(m.prefix().second == m[0].first); in main()
546 assert(!m.suffix().matched); in main()
547 assert(m.suffix().first == m[0].second); in main()
548 assert(m.suffix().second == m[0].second); in main()
549 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
550 assert(m.position(0) == 0); in main()
551 assert(m.str(0) == s); in main()
554 std::cmatch m; in main() local
556 assert(!std::regex_match(s, m, std::regex("A[^[:lower:]]B", in main()
558 assert(m.size() == 0); in main()
561 std::cmatch m; in main() local
563 assert(!std::regex_match(s, m, std::regex("A[^[:lower:]0-9]B", in main()
565 assert(m.size() == 0); in main()
568 std::cmatch m; in main() local
570 assert(std::regex_match(s, m, std::regex("A[^[:lower:]0-9]B", in main()
572 assert(m.size() == 1); in main()
573 assert(!m.prefix().matched); in main()
574 assert(m.prefix().first == s); in main()
575 assert(m.prefix().second == m[0].first); in main()
576 assert(!m.suffix().matched); in main()
577 assert(m.suffix().first == m[0].second); in main()
578 assert(m.suffix().second == m[0].second); in main()
579 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
580 assert(m.position(0) == 0); in main()
581 assert(m.str(0) == s); in main()
584 std::cmatch m; in main() local
586 assert(std::regex_match(s, m, std::regex("[a[.hyphen.]z]", in main()
588 assert(m.size() == 1); in main()
589 assert(!m.prefix().matched); in main()
590 assert(m.prefix().first == s); in main()
591 assert(m.prefix().second == m[0].first); in main()
592 assert(!m.suffix().matched); in main()
593 assert(m.suffix().first == m[0].second); in main()
594 assert(m.suffix().second == m[0].second); in main()
595 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
596 assert(m.position(0) == 0); in main()
597 assert(m.str(0) == s); in main()
600 std::cmatch m; in main() local
602 assert(std::regex_match(s, m, std::regex("[a[.hyphen.]z]", in main()
604 assert(m.size() == 1); in main()
605 assert(!m.prefix().matched); in main()
606 assert(m.prefix().first == s); in main()
607 assert(m.prefix().second == m[0].first); in main()
608 assert(!m.suffix().matched); in main()
609 assert(m.suffix().first == m[0].second); in main()
610 assert(m.suffix().second == m[0].second); in main()
611 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
612 assert(m.position(0) == 0); in main()
613 assert(m.str(0) == s); in main()
616 std::cmatch m; in main() local
618 assert(!std::regex_match(s, m, std::regex("[a[.hyphen.]z]", in main()
620 assert(m.size() == 0); in main()
624 std::cmatch m; in main() local
626 assert(std::regex_match(s, m, std::regex("[a[=M=]z]", in main()
628 assert(m.size() == 1); in main()
629 assert(!m.prefix().matched); in main()
630 assert(m.prefix().first == s); in main()
631 assert(m.prefix().second == m[0].first); in main()
632 assert(!m.suffix().matched); in main()
633 assert(m.suffix().first == m[0].second); in main()
634 assert(m.suffix().second == m[0].second); in main()
635 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
636 assert(m.position(0) == 0); in main()
637 assert(m.str(0) == s); in main()
640 std::cmatch m; in main() local
642 assert(std::regex_match(s, m, std::regex("[a[.ch.]z]", in main()
644 assert(m.size() == 1); in main()
645 assert(!m.prefix().matched); in main()
646 assert(m.prefix().first == s); in main()
647 assert(m.prefix().second == m[0].first); in main()
648 assert(!m.suffix().matched); in main()
649 assert(m.suffix().first == m[0].second); in main()
650 assert(m.suffix().second == m[0].second); in main()
651 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
652 assert(m.position(0) == 0); in main()
653 assert(m.str(0) == s); in main()
657 std::cmatch m; in main() local
659 assert(!std::regex_match(s, m, std::regex("[a[=M=]z]", in main()
661 assert(m.size() == 0); in main()
664 std::cmatch m; in main() local
666 assert(!std::regex_match(s, m, std::regex("[ace1-9]*", in main()
668 assert(m.size() == 0); in main()
671 std::cmatch m; in main() local
673 assert(!std::regex_match(s, m, std::regex("[ace1-9]\\{1,\\}", in main()
675 assert(m.size() == 0); in main()
683 std::match_results<BI> m; in main() local
686 assert(std::regex_match(BI(s), BI(s+ss), m, regex)); in main()
687 assert(m.size() == 1); in main()
688 assert(!m.prefix().matched); in main()
689 assert(m.prefix().first == BI(s)); in main()
690 assert(m.prefix().second == m[0].first); in main()
691 assert(!m.suffix().matched); in main()
692 assert(m.suffix().first == m[0].second); in main()
693 assert(m.suffix().second == m[0].second); in main()
694 assert(m.length(0) == 4); in main()
695 assert(m.position(0) == 0); in main()
696 assert(m.str(0) == s); in main()
700 std::wcmatch m; in main() local
701 assert(!std::regex_match(L"a", m, std::wregex())); in main()
702 assert(m.size() == 0); in main()
703 assert(m.empty()); in main()
706 std::wcmatch m; in main() local
708 assert(std::regex_match(s, m, std::wregex(L"a", std::regex_constants::basic))); in main()
709 assert(m.size() == 1); in main()
710 assert(!m.empty()); in main()
711 assert(!m.prefix().matched); in main()
712 assert(m.prefix().first == s); in main()
713 assert(m.prefix().second == m[0].first); in main()
714 assert(!m.suffix().matched); in main()
715 assert(m.suffix().first == m[0].second); in main()
716 assert(m.suffix().second == s+1); in main()
717 assert(m.length(0) == 1); in main()
718 assert(m.position(0) == 0); in main()
719 assert(m.str(0) == L"a"); in main()
722 std::wcmatch m; in main() local
724 assert(std::regex_match(s, m, std::wregex(L"ab", std::regex_constants::basic))); in main()
725 assert(m.size() == 1); in main()
726 assert(!m.prefix().matched); in main()
727 assert(m.prefix().first == s); in main()
728 assert(m.prefix().second == m[0].first); in main()
729 assert(!m.suffix().matched); in main()
730 assert(m.suffix().first == m[0].second); in main()
731 assert(m.suffix().second == s+2); in main()
732 assert(m.length(0) == 2); in main()
733 assert(m.position(0) == 0); in main()
734 assert(m.str(0) == L"ab"); in main()
737 std::wcmatch m; in main() local
739 assert(!std::regex_match(s, m, std::wregex(L"ba", std::regex_constants::basic))); in main()
740 assert(m.size() == 0); in main()
741 assert(m.empty()); in main()
744 std::wcmatch m; in main() local
746 assert(!std::regex_match(s, m, std::wregex(L"ab", std::regex_constants::basic))); 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"ab", std::regex_constants::basic), in main()
754 assert(m.size() == 0); in main()
757 std::wcmatch m; in main() local
759 assert(!std::regex_match(s, m, std::wregex(L"bc", std::regex_constants::basic))); in main()
760 assert(m.size() == 0); in main()
763 std::wcmatch m; in main() local
765 assert(std::regex_match(s, m, std::wregex(L"ab*c", std::regex_constants::basic))); in main()
766 assert(m.size() == 1); in main()
767 assert(!m.prefix().matched); in main()
768 assert(m.prefix().first == s); in main()
769 assert(m.prefix().second == m[0].first); in main()
770 assert(!m.suffix().matched); in main()
771 assert(m.suffix().first == m[0].second); in main()
772 assert(m.suffix().second == s+4); in main()
773 assert(m.length(0) == 4); in main()
774 assert(m.position(0) == 0); in main()
775 assert(m.str(0) == s); in main()
778 std::wcmatch m; in main() local
780 assert(std::regex_match(s, m, std::wregex(L"\\(ab\\)*c", std::regex_constants::basic))); in main()
781 assert(m.size() == 2); in main()
782 assert(!m.prefix().matched); in main()
783 assert(m.prefix().first == s); in main()
784 assert(m.prefix().second == m[0].first); in main()
785 assert(!m.suffix().matched); in main()
786 assert(m.suffix().first == m[0].second); in main()
787 assert(m.suffix().second == s+5); in main()
788 assert(m.length(0) == 5); in main()
789 assert(m.position(0) == 0); in main()
790 assert(m.str(0) == s); in main()
791 assert(m.length(1) == 2); in main()
792 assert(m.position(1) == 2); in main()
793 assert(m.str(1) == L"ab"); in main()
796 std::wcmatch m; in main() local
798 assert(!std::regex_match(s, m, std::wregex(L"cd\\(\\(e\\)fg\\)hi", in main()
800 assert(m.size() == 0); in main()
803 std::wcmatch m; in main() local
805 assert(std::regex_match(s, m, std::wregex(L"^abc", std::regex_constants::basic))); in main()
806 assert(m.size() == 1); in main()
807 assert(!m.prefix().matched); in main()
808 assert(m.prefix().first == s); in main()
809 assert(m.prefix().second == m[0].first); in main()
810 assert(!m.suffix().matched); in main()
811 assert(m.suffix().first == m[0].second); in main()
812 assert(m.suffix().second == s+3); in main()
813 assert(m.length(0) == 3); in main()
814 assert(m.position(0) == 0); in main()
815 assert(m.str(0) == s); in main()
818 std::wcmatch m; in main() local
820 assert(!std::regex_match(s, m, std::wregex(L"^abc", std::regex_constants::basic))); in main()
821 assert(m.size() == 0); in main()
824 std::wcmatch m; in main() local
826 assert(!std::regex_match(s, m, std::wregex(L"^abc", std::regex_constants::basic))); in main()
827 assert(m.size() == 0); in main()
830 std::wcmatch m; in main() local
832 assert(std::regex_match(s, m, std::wregex(L"abc$", std::regex_constants::basic))); in main()
833 assert(m.size() == 1); in main()
834 assert(!m.prefix().matched); in main()
835 assert(m.prefix().first == s); in main()
836 assert(m.prefix().second == m[0].first); in main()
837 assert(!m.suffix().matched); in main()
838 assert(m.suffix().first == m[0].second); in main()
839 assert(m.suffix().second == s+3); in main()
840 assert(m.length(0) == 3); in main()
841 assert(m.position(0) == 0); in main()
842 assert(m.str(0) == s); in main()
845 std::wcmatch m; in main() local
847 assert(!std::regex_match(s, m, std::wregex(L"abc$", std::regex_constants::basic))); in main()
848 assert(m.size() == 0); in main()
851 std::wcmatch m; in main() local
853 assert(!std::regex_match(s, m, std::wregex(L"abc$", std::regex_constants::basic))); in main()
854 assert(m.size() == 0); in main()
857 std::wcmatch m; in main() local
859 assert(std::regex_match(s, m, std::wregex(L"a.c", std::regex_constants::basic))); in main()
860 assert(m.size() == 1); in main()
861 assert(!m.prefix().matched); in main()
862 assert(m.prefix().first == s); in main()
863 assert(m.prefix().second == m[0].first); in main()
864 assert(!m.suffix().matched); in main()
865 assert(m.suffix().first == m[0].second); in main()
866 assert(m.suffix().second == s+3); in main()
867 assert(m.length(0) == 3); in main()
868 assert(m.position(0) == 0); in main()
869 assert(m.str(0) == s); in main()
872 std::wcmatch m; in main() local
874 assert(std::regex_match(s, m, std::wregex(L"a.c", std::regex_constants::basic))); in main()
875 assert(m.size() == 1); in main()
876 assert(!m.prefix().matched); in main()
877 assert(m.prefix().first == s); in main()
878 assert(m.prefix().second == m[0].first); in main()
879 assert(!m.suffix().matched); in main()
880 assert(m.suffix().first == m[0].second); in main()
881 assert(m.suffix().second == s+3); in main()
882 assert(m.length(0) == 3); in main()
883 assert(m.position(0) == 0); in main()
884 assert(m.str(0) == s); in main()
887 std::wcmatch m; in main() local
889 assert(std::regex_match(s, m, std::wregex(L"a.c", std::regex_constants::basic))); in main()
890 assert(m.size() == 1); in main()
891 assert(!m.prefix().matched); in main()
892 assert(m.prefix().first == s); in main()
893 assert(m.prefix().second == m[0].first); in main()
894 assert(!m.suffix().matched); in main()
895 assert(m.suffix().first == m[0].second); in main()
896 assert(m.suffix().second == s+3); in main()
897 assert(m.length(0) == 3); in main()
898 assert(m.position(0) == 0); in main()
899 assert(m.str(0) == s); in main()
902 std::wcmatch m; in main() local
904 assert(std::regex_match(s, m, std::wregex(L"\\(.*\\).*", std::regex_constants::basic))); in main()
905 assert(m.size() == 2); in main()
906 assert(!m.prefix().matched); in main()
907 assert(m.prefix().first == s); in main()
908 assert(m.prefix().second == m[0].first); in main()
909 assert(!m.suffix().matched); in main()
910 assert(m.suffix().first == m[0].second); in main()
911 assert(m.suffix().second == s+6); in main()
912 assert(m.length(0) == 6); in main()
913 assert(m.position(0) == 0); in main()
914 assert(m.str(0) == s); in main()
915 assert(m.length(1) == 6); in main()
916 assert(m.position(1) == 0); in main()
917 assert(m.str(1) == s); in main()
920 std::wcmatch m; in main() local
922 assert(!std::regex_match(s, m, std::wregex(L"\\(a*\\)*", std::regex_constants::basic))); in main()
923 assert(m.size() == 0); in main()
926 std::wcmatch m; in main() local
928 assert(!std::regex_match(s, m, std::wregex(L"ab\\{3,5\\}c", std::regex_constants::basic))); in main()
929 assert(m.size() == 0); in main()
932 std::wcmatch m; in main() local
934 assert(std::regex_match(s, m, std::wregex(L"ab\\{3,5\\}c", std::regex_constants::basic))); in main()
935 assert(m.size() == 1); in main()
936 assert(!m.prefix().matched); in main()
937 assert(m.prefix().first == s); in main()
938 assert(m.prefix().second == m[0].first); in main()
939 assert(!m.suffix().matched); in main()
940 assert(m.suffix().first == m[0].second); in main()
941 assert(m.suffix().second == m[0].second); in main()
942 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
943 assert(m.position(0) == 0); in main()
944 assert(m.str(0) == s); in main()
947 std::wcmatch m; in main() local
949 assert(std::regex_match(s, m, std::wregex(L"ab\\{3,5\\}c", std::regex_constants::basic))); in main()
950 assert(m.size() == 1); in main()
951 assert(!m.prefix().matched); in main()
952 assert(m.prefix().first == s); in main()
953 assert(m.prefix().second == m[0].first); in main()
954 assert(!m.suffix().matched); in main()
955 assert(m.suffix().first == m[0].second); in main()
956 assert(m.suffix().second == m[0].second); in main()
957 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
958 assert(m.position(0) == 0); in main()
959 assert(m.str(0) == s); in main()
962 std::wcmatch m; in main() local
964 assert(std::regex_match(s, m, std::wregex(L"ab\\{3,5\\}c", std::regex_constants::basic))); in main()
965 assert(m.size() == 1); in main()
966 assert(!m.prefix().matched); in main()
967 assert(m.prefix().first == s); in main()
968 assert(m.prefix().second == m[0].first); in main()
969 assert(!m.suffix().matched); in main()
970 assert(m.suffix().first == m[0].second); in main()
971 assert(m.suffix().second == m[0].second); in main()
972 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
973 assert(m.position(0) == 0); in main()
974 assert(m.str(0) == s); in main()
977 std::wcmatch m; in main() local
979 assert(!std::regex_match(s, m, std::wregex(L"ab\\{3,5\\}c", std::regex_constants::basic))); in main()
980 assert(m.size() == 0); in main()
983 std::wcmatch m; in main() local
985 assert(!std::regex_match(s, m, std::wregex(L"ab\\{3,5\\}c", std::regex_constants::basic))); in main()
986 assert(m.size() == 0); in main()
989 std::wcmatch m; in main() local
991 assert(!std::regex_match(s, m, std::wregex(L"a.\\{3,5\\}c", std::regex_constants::basic))); in main()
992 assert(m.size() == 0); in main()
995 std::wcmatch m; in main() local
997 assert(std::regex_match(s, m, std::wregex(L"a.\\{3,5\\}c", std::regex_constants::basic))); in main()
998 assert(m.size() == 1); in main()
999 assert(!m.prefix().matched); in main()
1000 assert(m.prefix().first == s); in main()
1001 assert(m.prefix().second == m[0].first); in main()
1002 assert(!m.suffix().matched); in main()
1003 assert(m.suffix().first == m[0].second); in main()
1004 assert(m.suffix().second == m[0].second); in main()
1005 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1006 assert(m.position(0) == 0); in main()
1007 assert(m.str(0) == s); in main()
1010 std::wcmatch m; in main() local
1012 assert(std::regex_match(s, m, std::wregex(L"a.\\{3,5\\}c", std::regex_constants::basic))); in main()
1013 assert(m.size() == 1); in main()
1014 assert(!m.prefix().matched); in main()
1015 assert(m.prefix().first == s); in main()
1016 assert(m.prefix().second == m[0].first); in main()
1017 assert(!m.suffix().matched); in main()
1018 assert(m.suffix().first == m[0].second); in main()
1019 assert(m.suffix().second == m[0].second); in main()
1020 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1021 assert(m.position(0) == 0); in main()
1022 assert(m.str(0) == s); in main()
1025 std::wcmatch m; in main() local
1027 assert(std::regex_match(s, m, std::wregex(L"a.\\{3,5\\}c", std::regex_constants::basic))); in main()
1028 assert(m.size() == 1); in main()
1029 assert(!m.prefix().matched); in main()
1030 assert(m.prefix().first == s); in main()
1031 assert(m.prefix().second == m[0].first); in main()
1032 assert(!m.suffix().matched); in main()
1033 assert(m.suffix().first == m[0].second); in main()
1034 assert(m.suffix().second == m[0].second); in main()
1035 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1036 assert(m.position(0) == 0); in main()
1037 assert(m.str(0) == s); in main()
1040 std::wcmatch m; in main() local
1042 assert(!std::regex_match(s, m, std::wregex(L"a.\\{3,5\\}c", std::regex_constants::basic))); in main()
1043 assert(m.size() == 0); in main()
1046 std::wcmatch m; in main() local
1048 assert(std::regex_match(s, m, std::wregex(L"-\\(.*\\),\\1-", std::regex_constants::basic))); in main()
1049 assert(m.size() == 2); in main()
1050 assert(!m.prefix().matched); in main()
1051 assert(m.prefix().first == s); in main()
1052 assert(m.prefix().second == m[0].first); in main()
1053 assert(!m.suffix().matched); in main()
1054 assert(m.suffix().first == m[0].second); in main()
1055 assert(m.suffix().second == m[0].second); in main()
1056 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1057 assert(m.position(0) == 0); in main()
1058 assert(m.str(0) == s); in main()
1059 assert(m.length(1) == 2); in main()
1060 assert(m.position(1) == 1); in main()
1061 assert(m.str(1) == L"ab"); in main()
1064 std::wcmatch m; in main() local
1066 … assert(std::regex_match(s, m, std::wregex(L"^\\(ab*\\)*\\1$", std::regex_constants::basic))); in main()
1067 assert(m.size() == 2); in main()
1068 assert(!m.prefix().matched); in main()
1069 assert(m.prefix().first == s); in main()
1070 assert(m.prefix().second == m[0].first); in main()
1071 assert(!m.suffix().matched); in main()
1072 assert(m.suffix().first == m[0].second); in main()
1073 assert(m.suffix().second == m[0].second); in main()
1074 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1075 assert(m.position(0) == 0); in main()
1076 assert(m.str(0) == s); in main()
1077 assert(m.length(1) == 3); in main()
1078 assert(m.position(1) == 2); in main()
1079 assert(m.str(1) == L"abb"); in main()
1082 std::wcmatch m; in main() local
1084 … assert(!std::regex_match(s, m, std::wregex(L"^\\(ab*\\)*\\1$", std::regex_constants::basic))); in main()
1085 assert(m.size() == 0); in main()
1088 std::wcmatch m; in main() local
1090 assert(std::regex_match(s, m, std::wregex(L"^\\(Ab*\\)*\\1$", in main()
1092 assert(m.size() == 2); in main()
1093 assert(!m.prefix().matched); in main()
1094 assert(m.prefix().first == s); in main()
1095 assert(m.prefix().second == m[0].first); in main()
1096 assert(!m.suffix().matched); in main()
1097 assert(m.suffix().first == m[0].second); in main()
1098 assert(m.suffix().second == m[0].second); in main()
1099 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1100 assert(m.position(0) == 0); in main()
1101 assert(m.str(0) == s); in main()
1102 assert(m.length(1) == 3); in main()
1103 assert(m.position(1) == 2); in main()
1104 assert(m.str(1) == L"Abb"); in main()
1107 std::wcmatch m; in main() local
1109 assert(!std::regex_match(s, m, std::wregex(L"^\\(Ab*\\)*\\1$", in main()
1111 assert(m.size() == 0); in main()
1114 std::wcmatch m; in main() local
1116 assert(std::regex_match(s, m, std::wregex(L"^[a]$", in main()
1118 assert(m.size() == 1); in main()
1119 assert(!m.prefix().matched); in main()
1120 assert(m.prefix().first == s); in main()
1121 assert(m.prefix().second == m[0].first); in main()
1122 assert(!m.suffix().matched); in main()
1123 assert(m.suffix().first == m[0].second); in main()
1124 assert(m.suffix().second == m[0].second); in main()
1125 assert(m.length(0) == 1); in main()
1126 assert(m.position(0) == 0); in main()
1127 assert(m.str(0) == L"a"); in main()
1130 std::wcmatch m; in main() local
1132 assert(std::regex_match(s, m, std::wregex(L"^[ab]$", in main()
1134 assert(m.size() == 1); in main()
1135 assert(!m.prefix().matched); in main()
1136 assert(m.prefix().first == s); in main()
1137 assert(m.prefix().second == m[0].first); in main()
1138 assert(!m.suffix().matched); in main()
1139 assert(m.suffix().first == m[0].second); in main()
1140 assert(m.suffix().second == m[0].second); in main()
1141 assert(m.length(0) == 1); in main()
1142 assert(m.position(0) == 0); in main()
1143 assert(m.str(0) == L"a"); in main()
1146 std::wcmatch m; in main() local
1148 assert(std::regex_match(s, m, std::wregex(L"^[a-f]$", in main()
1150 assert(m.size() == 1); in main()
1151 assert(!m.prefix().matched); in main()
1152 assert(m.prefix().first == s); in main()
1153 assert(m.prefix().second == m[0].first); in main()
1154 assert(!m.suffix().matched); in main()
1155 assert(m.suffix().first == m[0].second); in main()
1156 assert(m.suffix().second == m[0].second); in main()
1157 assert(m.length(0) == 1); in main()
1158 assert(m.position(0) == 0); in main()
1159 assert(m.str(0) == s); in main()
1162 std::wcmatch m; in main() local
1164 assert(!std::regex_match(s, m, std::wregex(L"^[a-f]$", in main()
1166 assert(m.size() == 0); in main()
1169 std::wcmatch m; in main() local
1171 assert(!std::regex_match(s, m, std::wregex(L"q[^u]", in main()
1173 assert(m.size() == 0); in main()
1176 std::wcmatch m; in main() local
1178 assert(!std::regex_match(s, m, std::wregex(L"q[^u]", in main()
1180 assert(m.size() == 0); in main()
1183 std::wcmatch m; in main() local
1185 assert(std::regex_match(s, m, std::wregex(L"A[[:lower:]]B", in main()
1187 assert(m.size() == 1); in main()
1188 assert(!m.prefix().matched); in main()
1189 assert(m.prefix().first == s); in main()
1190 assert(m.prefix().second == m[0].first); in main()
1191 assert(!m.suffix().matched); in main()
1192 assert(m.suffix().first == m[0].second); in main()
1193 assert(m.suffix().second == m[0].second); in main()
1194 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1195 assert(m.position(0) == 0); in main()
1196 assert(m.str(0) == s); in main()
1199 std::wcmatch m; in main() local
1201 assert(!std::regex_match(s, m, std::wregex(L"A[[:lower:]]B", in main()
1203 assert(m.size() == 0); in main()
1206 std::wcmatch m; in main() local
1208 assert(std::regex_match(s, m, std::wregex(L"A[^[:lower:]]B", in main()
1210 assert(m.size() == 1); in main()
1211 assert(!m.prefix().matched); in main()
1212 assert(m.prefix().first == s); in main()
1213 assert(m.prefix().second == m[0].first); in main()
1214 assert(!m.suffix().matched); in main()
1215 assert(m.suffix().first == m[0].second); in main()
1216 assert(m.suffix().second == m[0].second); in main()
1217 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1218 assert(m.position(0) == 0); in main()
1219 assert(m.str(0) == s); in main()
1222 std::wcmatch m; in main() local
1224 assert(!std::regex_match(s, m, std::wregex(L"A[^[:lower:]]B", in main()
1226 assert(m.size() == 0); in main()
1229 std::wcmatch m; in main() local
1231 assert(!std::regex_match(s, m, std::wregex(L"A[^[:lower:]0-9]B", in main()
1233 assert(m.size() == 0); in main()
1236 std::wcmatch m; in main() local
1238 assert(std::regex_match(s, m, std::wregex(L"A[^[:lower:]0-9]B", in main()
1240 assert(m.size() == 1); in main()
1241 assert(!m.prefix().matched); in main()
1242 assert(m.prefix().first == s); in main()
1243 assert(m.prefix().second == m[0].first); in main()
1244 assert(!m.suffix().matched); in main()
1245 assert(m.suffix().first == m[0].second); in main()
1246 assert(m.suffix().second == m[0].second); in main()
1247 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1248 assert(m.position(0) == 0); in main()
1249 assert(m.str(0) == s); in main()
1252 std::wcmatch m; in main() local
1254 assert(std::regex_match(s, m, std::wregex(L"[a[.hyphen.]z]", in main()
1256 assert(m.size() == 1); in main()
1257 assert(!m.prefix().matched); in main()
1258 assert(m.prefix().first == s); in main()
1259 assert(m.prefix().second == m[0].first); in main()
1260 assert(!m.suffix().matched); in main()
1261 assert(m.suffix().first == m[0].second); in main()
1262 assert(m.suffix().second == m[0].second); in main()
1263 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1264 assert(m.position(0) == 0); in main()
1265 assert(m.str(0) == s); in main()
1268 std::wcmatch m; in main() local
1270 assert(std::regex_match(s, m, std::wregex(L"[a[.hyphen.]z]", in main()
1272 assert(m.size() == 1); in main()
1273 assert(!m.prefix().matched); in main()
1274 assert(m.prefix().first == s); in main()
1275 assert(m.prefix().second == m[0].first); in main()
1276 assert(!m.suffix().matched); in main()
1277 assert(m.suffix().first == m[0].second); in main()
1278 assert(m.suffix().second == m[0].second); in main()
1279 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1280 assert(m.position(0) == 0); in main()
1281 assert(m.str(0) == s); in main()
1284 std::wcmatch m; in main() local
1286 assert(!std::regex_match(s, m, std::wregex(L"[a[.hyphen.]z]", in main()
1288 assert(m.size() == 0); in main()
1292 std::wcmatch m; in main() local
1294 assert(std::regex_match(s, m, std::wregex(L"[a[=M=]z]", in main()
1296 assert(m.size() == 1); in main()
1297 assert(!m.prefix().matched); in main()
1298 assert(m.prefix().first == s); in main()
1299 assert(m.prefix().second == m[0].first); in main()
1300 assert(!m.suffix().matched); in main()
1301 assert(m.suffix().first == m[0].second); in main()
1302 assert(m.suffix().second == m[0].second); in main()
1303 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1304 assert(m.position(0) == 0); in main()
1305 assert(m.str(0) == s); in main()
1308 std::wcmatch m; in main() local
1310 assert(std::regex_match(s, m, std::wregex(L"[a[.ch.]z]", in main()
1312 assert(m.size() == 1); in main()
1313 assert(!m.prefix().matched); in main()
1314 assert(m.prefix().first == s); in main()
1315 assert(m.prefix().second == m[0].first); in main()
1316 assert(!m.suffix().matched); in main()
1317 assert(m.suffix().first == m[0].second); in main()
1318 assert(m.suffix().second == m[0].second); in main()
1319 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1320 assert(m.position(0) == 0); in main()
1321 assert(m.str(0) == s); in main()
1325 std::wcmatch m; in main() local
1327 assert(!std::regex_match(s, m, std::wregex(L"[a[=M=]z]", in main()
1329 assert(m.size() == 0); in main()
1332 std::wcmatch m; in main() local
1334 assert(!std::regex_match(s, m, std::wregex(L"[ace1-9]*", in main()
1336 assert(m.size() == 0); in main()
1339 std::wcmatch m; in main() local
1341 assert(!std::regex_match(s, m, std::wregex(L"[ace1-9]\\{1,\\}", in main()
1343 assert(m.size() == 0); in main()
1351 std::match_results<BI> m; in main() local
1354 assert(std::regex_match(BI(s), BI(s+ss), m, regex)); in main()
1355 assert(m.size() == 1); in main()
1356 assert(!m.prefix().matched); in main()
1357 assert(m.prefix().first == BI(s)); in main()
1358 assert(m.prefix().second == m[0].first); in main()
1359 assert(!m.suffix().matched); in main()
1360 assert(m.suffix().first == m[0].second); in main()
1361 assert(m.suffix().second == m[0].second); in main()
1362 assert(m.length(0) == 4); in main()
1363 assert(m.position(0) == 0); in main()
1364 assert(m.str(0) == s); in main()