Lines Matching refs:m

33         std::cmatch m;  in main()  local
34 assert(!std::regex_match("a", m, std::regex())); in main()
35 assert(m.size() == 0); in main()
36 assert(m.empty()); in main()
39 std::cmatch m; in main() local
41 assert(std::regex_match(s, m, std::regex("a", std::regex_constants::basic))); in main()
42 assert(m.size() == 1); in main()
43 assert(!m.empty()); in main()
44 assert(!m.prefix().matched); in main()
45 assert(m.prefix().first == s); in main()
46 assert(m.prefix().second == m[0].first); in main()
47 assert(!m.suffix().matched); in main()
48 assert(m.suffix().first == m[0].second); in main()
49 assert(m.suffix().second == s+1); in main()
50 assert(m.length(0) == 1); in main()
51 assert(m.position(0) == 0); in main()
52 assert(m.str(0) == "a"); in main()
55 std::cmatch m; in main() local
57 assert(std::regex_match(s, m, std::regex("ab", std::regex_constants::basic))); in main()
58 assert(m.size() == 1); in main()
59 assert(!m.prefix().matched); in main()
60 assert(m.prefix().first == s); in main()
61 assert(m.prefix().second == m[0].first); in main()
62 assert(!m.suffix().matched); in main()
63 assert(m.suffix().first == m[0].second); in main()
64 assert(m.suffix().second == s+2); in main()
65 assert(m.length(0) == 2); in main()
66 assert(m.position(0) == 0); in main()
67 assert(m.str(0) == "ab"); in main()
70 std::cmatch m; in main() local
72 assert(!std::regex_match(s, m, std::regex("ba", std::regex_constants::basic))); in main()
73 assert(m.size() == 0); in main()
74 assert(m.empty()); in main()
77 std::cmatch m; in main() local
79 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::basic))); in main()
80 assert(m.size() == 0); in main()
83 std::cmatch m; in main() local
85 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::basic), in main()
87 assert(m.size() == 0); in main()
90 std::cmatch m; in main() local
92 assert(!std::regex_match(s, m, std::regex("bc", std::regex_constants::basic))); in main()
93 assert(m.size() == 0); in main()
96 std::cmatch m; in main() local
98 assert(std::regex_match(s, m, std::regex("ab*c", std::regex_constants::basic))); in main()
99 assert(m.size() == 1); in main()
100 assert(!m.prefix().matched); in main()
101 assert(m.prefix().first == s); in main()
102 assert(m.prefix().second == m[0].first); in main()
103 assert(!m.suffix().matched); in main()
104 assert(m.suffix().first == m[0].second); in main()
105 assert(m.suffix().second == s+4); in main()
106 assert(m.length(0) == 4); in main()
107 assert(m.position(0) == 0); in main()
108 assert(m.str(0) == s); in main()
111 std::cmatch m; in main() local
113 assert(std::regex_match(s, m, std::regex("\\(ab\\)*c", std::regex_constants::basic))); in main()
114 assert(m.size() == 2); in main()
115 assert(!m.prefix().matched); in main()
116 assert(m.prefix().first == s); in main()
117 assert(m.prefix().second == m[0].first); in main()
118 assert(!m.suffix().matched); in main()
119 assert(m.suffix().first == m[0].second); in main()
120 assert(m.suffix().second == s+5); in main()
121 assert(m.length(0) == 5); in main()
122 assert(m.position(0) == 0); in main()
123 assert(m.str(0) == s); in main()
124 assert(m.length(1) == 2); in main()
125 assert(m.position(1) == 2); in main()
126 assert(m.str(1) == "ab"); in main()
129 std::cmatch m; in main() local
131 assert(!std::regex_match(s, m, std::regex("cd\\(\\(e\\)fg\\)hi", in main()
133 assert(m.size() == 0); in main()
136 std::cmatch m; in main() local
138 assert(std::regex_match(s, m, std::regex("^abc", std::regex_constants::basic))); in main()
139 assert(m.size() == 1); in main()
140 assert(!m.prefix().matched); in main()
141 assert(m.prefix().first == s); in main()
142 assert(m.prefix().second == m[0].first); in main()
143 assert(!m.suffix().matched); in main()
144 assert(m.suffix().first == m[0].second); in main()
145 assert(m.suffix().second == s+3); in main()
146 assert(m.length(0) == 3); in main()
147 assert(m.position(0) == 0); in main()
148 assert(m.str(0) == s); in main()
151 std::cmatch m; in main() local
153 assert(!std::regex_match(s, m, std::regex("^abc", std::regex_constants::basic))); in main()
154 assert(m.size() == 0); in main()
157 std::cmatch m; in main() local
159 assert(!std::regex_match(s, m, std::regex("^abc", std::regex_constants::basic))); in main()
160 assert(m.size() == 0); in main()
163 std::cmatch m; in main() local
165 assert(std::regex_match(s, m, std::regex("abc$", std::regex_constants::basic))); in main()
166 assert(m.size() == 1); in main()
167 assert(!m.prefix().matched); in main()
168 assert(m.prefix().first == s); in main()
169 assert(m.prefix().second == m[0].first); in main()
170 assert(!m.suffix().matched); in main()
171 assert(m.suffix().first == m[0].second); in main()
172 assert(m.suffix().second == s+3); in main()
173 assert(m.length(0) == 3); in main()
174 assert(m.position(0) == 0); in main()
175 assert(m.str(0) == s); in main()
178 std::cmatch m; in main() local
180 assert(!std::regex_match(s, m, std::regex("abc$", std::regex_constants::basic))); in main()
181 assert(m.size() == 0); in main()
184 std::cmatch m; in main() local
186 assert(!std::regex_match(s, m, std::regex("abc$", std::regex_constants::basic))); in main()
187 assert(m.size() == 0); in main()
190 std::cmatch m; in main() local
192 assert(std::regex_match(s, m, std::regex("a.c", std::regex_constants::basic))); in main()
193 assert(m.size() == 1); in main()
194 assert(!m.prefix().matched); in main()
195 assert(m.prefix().first == s); in main()
196 assert(m.prefix().second == m[0].first); in main()
197 assert(!m.suffix().matched); in main()
198 assert(m.suffix().first == m[0].second); in main()
199 assert(m.suffix().second == s+3); in main()
200 assert(m.length(0) == 3); in main()
201 assert(m.position(0) == 0); in main()
202 assert(m.str(0) == s); in main()
205 std::cmatch m; in main() local
207 assert(std::regex_match(s, m, std::regex("a.c", std::regex_constants::basic))); in main()
208 assert(m.size() == 1); in main()
209 assert(!m.prefix().matched); in main()
210 assert(m.prefix().first == s); in main()
211 assert(m.prefix().second == m[0].first); in main()
212 assert(!m.suffix().matched); in main()
213 assert(m.suffix().first == m[0].second); in main()
214 assert(m.suffix().second == s+3); in main()
215 assert(m.length(0) == 3); in main()
216 assert(m.position(0) == 0); in main()
217 assert(m.str(0) == s); in main()
220 std::cmatch m; in main() local
222 assert(std::regex_match(s, m, std::regex("a.c", std::regex_constants::basic))); in main()
223 assert(m.size() == 1); in main()
224 assert(!m.prefix().matched); in main()
225 assert(m.prefix().first == s); in main()
226 assert(m.prefix().second == m[0].first); in main()
227 assert(!m.suffix().matched); in main()
228 assert(m.suffix().first == m[0].second); in main()
229 assert(m.suffix().second == s+3); in main()
230 assert(m.length(0) == 3); in main()
231 assert(m.position(0) == 0); in main()
232 assert(m.str(0) == s); in main()
235 std::cmatch m; in main() local
237 assert(std::regex_match(s, m, std::regex("\\(.*\\).*", std::regex_constants::basic))); in main()
238 assert(m.size() == 2); in main()
239 assert(!m.prefix().matched); in main()
240 assert(m.prefix().first == s); in main()
241 assert(m.prefix().second == m[0].first); in main()
242 assert(!m.suffix().matched); in main()
243 assert(m.suffix().first == m[0].second); in main()
244 assert(m.suffix().second == s+6); in main()
245 assert(m.length(0) == 6); in main()
246 assert(m.position(0) == 0); in main()
247 assert(m.str(0) == s); in main()
248 assert(m.length(1) == 6); in main()
249 assert(m.position(1) == 0); in main()
250 assert(m.str(1) == s); in main()
253 std::cmatch m; in main() local
255 assert(!std::regex_match(s, m, std::regex("\\(a*\\)*", std::regex_constants::basic))); in main()
256 assert(m.size() == 0); in main()
259 std::cmatch m; in main() local
261 assert(!std::regex_match(s, m, std::regex("ab\\{3,5\\}c", std::regex_constants::basic))); in main()
262 assert(m.size() == 0); in main()
265 std::cmatch m; in main() local
267 assert(std::regex_match(s, m, std::regex("ab\\{3,5\\}c", std::regex_constants::basic))); in main()
268 assert(m.size() == 1); in main()
269 assert(!m.prefix().matched); in main()
270 assert(m.prefix().first == s); in main()
271 assert(m.prefix().second == m[0].first); in main()
272 assert(!m.suffix().matched); in main()
273 assert(m.suffix().first == m[0].second); in main()
274 assert(m.suffix().second == m[0].second); in main()
275 assert(m.length(0) == sizeof(s)-1); in main()
276 assert(m.position(0) == 0); in main()
277 assert(m.str(0) == s); in main()
280 std::cmatch m; in main() local
282 assert(std::regex_match(s, m, std::regex("ab\\{3,5\\}c", std::regex_constants::basic))); in main()
283 assert(m.size() == 1); in main()
284 assert(!m.prefix().matched); in main()
285 assert(m.prefix().first == s); in main()
286 assert(m.prefix().second == m[0].first); in main()
287 assert(!m.suffix().matched); in main()
288 assert(m.suffix().first == m[0].second); in main()
289 assert(m.suffix().second == m[0].second); in main()
290 assert(m.length(0) == sizeof(s)-1); in main()
291 assert(m.position(0) == 0); in main()
292 assert(m.str(0) == s); in main()
295 std::cmatch m; in main() local
297 assert(std::regex_match(s, m, std::regex("ab\\{3,5\\}c", std::regex_constants::basic))); in main()
298 assert(m.size() == 1); in main()
299 assert(!m.prefix().matched); in main()
300 assert(m.prefix().first == s); in main()
301 assert(m.prefix().second == m[0].first); in main()
302 assert(!m.suffix().matched); in main()
303 assert(m.suffix().first == m[0].second); in main()
304 assert(m.suffix().second == m[0].second); in main()
305 assert(m.length(0) == sizeof(s)-1); in main()
306 assert(m.position(0) == 0); in main()
307 assert(m.str(0) == s); in main()
310 std::cmatch m; in main() local
312 assert(!std::regex_match(s, m, std::regex("ab\\{3,5\\}c", std::regex_constants::basic))); in main()
313 assert(m.size() == 0); in main()
316 std::cmatch m; in main() local
318 assert(!std::regex_match(s, m, std::regex("ab\\{3,5\\}c", std::regex_constants::basic))); in main()
319 assert(m.size() == 0); in main()
322 std::cmatch m; in main() local
324 assert(!std::regex_match(s, m, std::regex("a.\\{3,5\\}c", std::regex_constants::basic))); in main()
325 assert(m.size() == 0); in main()
328 std::cmatch m; in main() local
330 assert(std::regex_match(s, m, std::regex("a.\\{3,5\\}c", std::regex_constants::basic))); in main()
331 assert(m.size() == 1); in main()
332 assert(!m.prefix().matched); in main()
333 assert(m.prefix().first == s); in main()
334 assert(m.prefix().second == m[0].first); in main()
335 assert(!m.suffix().matched); in main()
336 assert(m.suffix().first == m[0].second); in main()
337 assert(m.suffix().second == m[0].second); in main()
338 assert(m.length(0) == sizeof(s)-1); in main()
339 assert(m.position(0) == 0); in main()
340 assert(m.str(0) == s); in main()
343 std::cmatch m; in main() local
345 assert(std::regex_match(s, m, std::regex("a.\\{3,5\\}c", std::regex_constants::basic))); in main()
346 assert(m.size() == 1); in main()
347 assert(!m.prefix().matched); in main()
348 assert(m.prefix().first == s); in main()
349 assert(m.prefix().second == m[0].first); in main()
350 assert(!m.suffix().matched); in main()
351 assert(m.suffix().first == m[0].second); in main()
352 assert(m.suffix().second == m[0].second); in main()
353 assert(m.length(0) == sizeof(s)-1); in main()
354 assert(m.position(0) == 0); in main()
355 assert(m.str(0) == s); in main()
358 std::cmatch m; in main() local
360 assert(std::regex_match(s, m, std::regex("a.\\{3,5\\}c", std::regex_constants::basic))); in main()
361 assert(m.size() == 1); in main()
362 assert(!m.prefix().matched); in main()
363 assert(m.prefix().first == s); in main()
364 assert(m.prefix().second == m[0].first); in main()
365 assert(!m.suffix().matched); in main()
366 assert(m.suffix().first == m[0].second); in main()
367 assert(m.suffix().second == m[0].second); in main()
368 assert(m.length(0) == sizeof(s)-1); in main()
369 assert(m.position(0) == 0); in main()
370 assert(m.str(0) == s); in main()
373 std::cmatch m; in main() local
375 assert(!std::regex_match(s, m, std::regex("a.\\{3,5\\}c", std::regex_constants::basic))); in main()
376 assert(m.size() == 0); in main()
379 std::cmatch m; in main() local
381 assert(std::regex_match(s, m, std::regex("-\\(.*\\),\\1-", std::regex_constants::basic))); in main()
382 assert(m.size() == 2); in main()
383 assert(!m.prefix().matched); in main()
384 assert(m.prefix().first == s); in main()
385 assert(m.prefix().second == m[0].first); in main()
386 assert(!m.suffix().matched); in main()
387 assert(m.suffix().first == m[0].second); in main()
388 assert(m.suffix().second == m[0].second); in main()
389 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
390 assert(m.position(0) == 0); in main()
391 assert(m.str(0) == s); in main()
392 assert(m.length(1) == 2); in main()
393 assert(m.position(1) == 1); in main()
394 assert(m.str(1) == "ab"); in main()
397 std::cmatch m; in main() local
399 assert(std::regex_match(s, m, std::regex("^\\(ab*\\)*\\1$", std::regex_constants::basic))); in main()
400 assert(m.size() == 2); in main()
401 assert(!m.prefix().matched); in main()
402 assert(m.prefix().first == s); in main()
403 assert(m.prefix().second == m[0].first); in main()
404 assert(!m.suffix().matched); in main()
405 assert(m.suffix().first == m[0].second); in main()
406 assert(m.suffix().second == m[0].second); in main()
407 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
408 assert(m.position(0) == 0); in main()
409 assert(m.str(0) == s); in main()
410 assert(m.length(1) == 3); in main()
411 assert(m.position(1) == 2); in main()
412 assert(m.str(1) == "abb"); in main()
415 std::cmatch m; in main() local
417 assert(!std::regex_match(s, m, std::regex("^\\(ab*\\)*\\1$", std::regex_constants::basic))); in main()
418 assert(m.size() == 0); in main()
421 std::cmatch m; in main() local
423 assert(std::regex_match(s, m, std::regex("^\\(Ab*\\)*\\1$", in main()
425 assert(m.size() == 2); in main()
426 assert(!m.prefix().matched); in main()
427 assert(m.prefix().first == s); in main()
428 assert(m.prefix().second == m[0].first); in main()
429 assert(!m.suffix().matched); in main()
430 assert(m.suffix().first == m[0].second); in main()
431 assert(m.suffix().second == m[0].second); in main()
432 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
433 assert(m.position(0) == 0); in main()
434 assert(m.str(0) == s); in main()
435 assert(m.length(1) == 3); in main()
436 assert(m.position(1) == 2); in main()
437 assert(m.str(1) == "Abb"); in main()
440 std::cmatch m; in main() local
442 assert(!std::regex_match(s, m, std::regex("^\\(Ab*\\)*\\1$", in main()
444 assert(m.size() == 0); in main()
447 std::cmatch m; in main() local
449 assert(std::regex_match(s, m, std::regex("^[a]$", in main()
451 assert(m.size() == 1); in main()
452 assert(!m.prefix().matched); in main()
453 assert(m.prefix().first == s); in main()
454 assert(m.prefix().second == m[0].first); in main()
455 assert(!m.suffix().matched); in main()
456 assert(m.suffix().first == m[0].second); in main()
457 assert(m.suffix().second == m[0].second); in main()
458 assert(m.length(0) == 1); in main()
459 assert(m.position(0) == 0); in main()
460 assert(m.str(0) == "a"); in main()
463 std::cmatch m; in main() local
465 assert(std::regex_match(s, m, std::regex("^[ab]$", in main()
467 assert(m.size() == 1); in main()
468 assert(!m.prefix().matched); in main()
469 assert(m.prefix().first == s); in main()
470 assert(m.prefix().second == m[0].first); in main()
471 assert(!m.suffix().matched); in main()
472 assert(m.suffix().first == m[0].second); in main()
473 assert(m.suffix().second == m[0].second); in main()
474 assert(m.length(0) == 1); in main()
475 assert(m.position(0) == 0); in main()
476 assert(m.str(0) == "a"); in main()
479 std::cmatch m; in main() local
481 assert(std::regex_match(s, m, std::regex("^[a-f]$", in main()
483 assert(m.size() == 1); in main()
484 assert(!m.prefix().matched); in main()
485 assert(m.prefix().first == s); in main()
486 assert(m.prefix().second == m[0].first); in main()
487 assert(!m.suffix().matched); in main()
488 assert(m.suffix().first == m[0].second); in main()
489 assert(m.suffix().second == m[0].second); in main()
490 assert(m.length(0) == 1); in main()
491 assert(m.position(0) == 0); in main()
492 assert(m.str(0) == s); in main()
495 std::cmatch m; in main() local
497 assert(!std::regex_match(s, m, std::regex("^[a-f]$", in main()
499 assert(m.size() == 0); in main()
502 std::cmatch m; in main() local
504 assert(!std::regex_match(s, m, std::regex("q[^u]", in main()
506 assert(m.size() == 0); in main()
509 std::cmatch m; in main() local
511 assert(!std::regex_match(s, m, std::regex("q[^u]", in main()
513 assert(m.size() == 0); in main()
516 std::cmatch m; in main() local
518 assert(std::regex_match(s, m, std::regex("A[[:lower:]]B", in main()
520 assert(m.size() == 1); in main()
521 assert(!m.prefix().matched); in main()
522 assert(m.prefix().first == s); in main()
523 assert(m.prefix().second == m[0].first); in main()
524 assert(!m.suffix().matched); in main()
525 assert(m.suffix().first == m[0].second); in main()
526 assert(m.suffix().second == m[0].second); in main()
527 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
528 assert(m.position(0) == 0); in main()
529 assert(m.str(0) == s); in main()
532 std::cmatch m; in main() local
534 assert(!std::regex_match(s, m, std::regex("A[[:lower:]]B", in main()
536 assert(m.size() == 0); in main()
539 std::cmatch m; in main() local
541 assert(std::regex_match(s, m, std::regex("A[^[:lower:]]B", in main()
543 assert(m.size() == 1); in main()
544 assert(!m.prefix().matched); in main()
545 assert(m.prefix().first == s); in main()
546 assert(m.prefix().second == m[0].first); in main()
547 assert(!m.suffix().matched); in main()
548 assert(m.suffix().first == m[0].second); in main()
549 assert(m.suffix().second == m[0].second); in main()
550 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
551 assert(m.position(0) == 0); in main()
552 assert(m.str(0) == s); in main()
555 std::cmatch m; in main() local
557 assert(!std::regex_match(s, m, std::regex("A[^[:lower:]]B", in main()
559 assert(m.size() == 0); in main()
562 std::cmatch m; in main() local
564 assert(!std::regex_match(s, m, std::regex("A[^[:lower:]0-9]B", in main()
566 assert(m.size() == 0); in main()
569 std::cmatch m; in main() local
571 assert(std::regex_match(s, m, std::regex("A[^[:lower:]0-9]B", in main()
573 assert(m.size() == 1); in main()
574 assert(!m.prefix().matched); in main()
575 assert(m.prefix().first == s); in main()
576 assert(m.prefix().second == m[0].first); in main()
577 assert(!m.suffix().matched); in main()
578 assert(m.suffix().first == m[0].second); in main()
579 assert(m.suffix().second == m[0].second); in main()
580 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
581 assert(m.position(0) == 0); in main()
582 assert(m.str(0) == s); in main()
585 std::cmatch m; in main() local
587 assert(std::regex_match(s, m, std::regex("[a[.hyphen.]z]", in main()
589 assert(m.size() == 1); in main()
590 assert(!m.prefix().matched); in main()
591 assert(m.prefix().first == s); in main()
592 assert(m.prefix().second == m[0].first); in main()
593 assert(!m.suffix().matched); in main()
594 assert(m.suffix().first == m[0].second); in main()
595 assert(m.suffix().second == m[0].second); in main()
596 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
597 assert(m.position(0) == 0); in main()
598 assert(m.str(0) == s); in main()
601 std::cmatch m; in main() local
603 assert(std::regex_match(s, m, std::regex("[a[.hyphen.]z]", in main()
605 assert(m.size() == 1); in main()
606 assert(!m.prefix().matched); in main()
607 assert(m.prefix().first == s); in main()
608 assert(m.prefix().second == m[0].first); in main()
609 assert(!m.suffix().matched); in main()
610 assert(m.suffix().first == m[0].second); in main()
611 assert(m.suffix().second == m[0].second); in main()
612 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
613 assert(m.position(0) == 0); in main()
614 assert(m.str(0) == s); in main()
617 std::cmatch m; in main() local
619 assert(!std::regex_match(s, m, std::regex("[a[.hyphen.]z]", in main()
621 assert(m.size() == 0); in main()
625 std::cmatch m; in main() local
627 assert(std::regex_match(s, m, std::regex("[a[=M=]z]", in main()
629 assert(m.size() == 1); in main()
630 assert(!m.prefix().matched); in main()
631 assert(m.prefix().first == s); in main()
632 assert(m.prefix().second == m[0].first); in main()
633 assert(!m.suffix().matched); in main()
634 assert(m.suffix().first == m[0].second); in main()
635 assert(m.suffix().second == m[0].second); in main()
636 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
637 assert(m.position(0) == 0); in main()
638 assert(m.str(0) == s); in main()
641 std::cmatch m; in main() local
643 assert(std::regex_match(s, m, std::regex("[a[.ch.]z]", in main()
645 assert(m.size() == 1); in main()
646 assert(!m.prefix().matched); in main()
647 assert(m.prefix().first == s); in main()
648 assert(m.prefix().second == m[0].first); in main()
649 assert(!m.suffix().matched); in main()
650 assert(m.suffix().first == m[0].second); in main()
651 assert(m.suffix().second == m[0].second); in main()
652 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
653 assert(m.position(0) == 0); in main()
654 assert(m.str(0) == s); in main()
658 std::cmatch m; in main() local
660 assert(!std::regex_match(s, m, std::regex("[a[=M=]z]", in main()
662 assert(m.size() == 0); in main()
665 std::cmatch m; in main() local
667 assert(!std::regex_match(s, m, std::regex("[ace1-9]*", in main()
669 assert(m.size() == 0); in main()
672 std::cmatch m; in main() local
674 assert(!std::regex_match(s, m, std::regex("[ace1-9]\\{1,\\}", in main()
676 assert(m.size() == 0); in main()
684 std::match_results<BI> m; in main() local
687 assert(std::regex_match(BI(s), BI(s+ss), m, regex)); in main()
688 assert(m.size() == 1); in main()
689 assert(!m.prefix().matched); in main()
690 assert(m.prefix().first == BI(s)); in main()
691 assert(m.prefix().second == m[0].first); in main()
692 assert(!m.suffix().matched); in main()
693 assert(m.suffix().first == m[0].second); in main()
694 assert(m.suffix().second == m[0].second); in main()
695 assert(m.length(0) == 4); in main()
696 assert(m.position(0) == 0); in main()
697 assert(m.str(0) == s); in main()
701 std::wcmatch m; in main() local
702 assert(!std::regex_match(L"a", m, std::wregex())); in main()
703 assert(m.size() == 0); in main()
704 assert(m.empty()); in main()
707 std::wcmatch m; in main() local
709 assert(std::regex_match(s, m, std::wregex(L"a", std::regex_constants::basic))); in main()
710 assert(m.size() == 1); in main()
711 assert(!m.empty()); in main()
712 assert(!m.prefix().matched); in main()
713 assert(m.prefix().first == s); in main()
714 assert(m.prefix().second == m[0].first); in main()
715 assert(!m.suffix().matched); in main()
716 assert(m.suffix().first == m[0].second); in main()
717 assert(m.suffix().second == s+1); in main()
718 assert(m.length(0) == 1); in main()
719 assert(m.position(0) == 0); in main()
720 assert(m.str(0) == L"a"); in main()
723 std::wcmatch m; in main() local
725 assert(std::regex_match(s, m, std::wregex(L"ab", std::regex_constants::basic))); in main()
726 assert(m.size() == 1); in main()
727 assert(!m.prefix().matched); in main()
728 assert(m.prefix().first == s); in main()
729 assert(m.prefix().second == m[0].first); in main()
730 assert(!m.suffix().matched); in main()
731 assert(m.suffix().first == m[0].second); in main()
732 assert(m.suffix().second == s+2); in main()
733 assert(m.length(0) == 2); in main()
734 assert(m.position(0) == 0); in main()
735 assert(m.str(0) == L"ab"); in main()
738 std::wcmatch m; in main() local
740 assert(!std::regex_match(s, m, std::wregex(L"ba", std::regex_constants::basic))); in main()
741 assert(m.size() == 0); in main()
742 assert(m.empty()); in main()
745 std::wcmatch m; in main() local
747 assert(!std::regex_match(s, m, std::wregex(L"ab", std::regex_constants::basic))); in main()
748 assert(m.size() == 0); in main()
751 std::wcmatch m; in main() local
753 assert(!std::regex_match(s, m, std::wregex(L"ab", std::regex_constants::basic), in main()
755 assert(m.size() == 0); in main()
758 std::wcmatch m; in main() local
760 assert(!std::regex_match(s, m, std::wregex(L"bc", std::regex_constants::basic))); in main()
761 assert(m.size() == 0); in main()
764 std::wcmatch m; in main() local
766 assert(std::regex_match(s, m, std::wregex(L"ab*c", std::regex_constants::basic))); in main()
767 assert(m.size() == 1); in main()
768 assert(!m.prefix().matched); in main()
769 assert(m.prefix().first == s); in main()
770 assert(m.prefix().second == m[0].first); in main()
771 assert(!m.suffix().matched); in main()
772 assert(m.suffix().first == m[0].second); in main()
773 assert(m.suffix().second == s+4); in main()
774 assert(m.length(0) == 4); in main()
775 assert(m.position(0) == 0); in main()
776 assert(m.str(0) == s); in main()
779 std::wcmatch m; in main() local
781 assert(std::regex_match(s, m, std::wregex(L"\\(ab\\)*c", std::regex_constants::basic))); in main()
782 assert(m.size() == 2); in main()
783 assert(!m.prefix().matched); in main()
784 assert(m.prefix().first == s); in main()
785 assert(m.prefix().second == m[0].first); in main()
786 assert(!m.suffix().matched); in main()
787 assert(m.suffix().first == m[0].second); in main()
788 assert(m.suffix().second == s+5); in main()
789 assert(m.length(0) == 5); in main()
790 assert(m.position(0) == 0); in main()
791 assert(m.str(0) == s); in main()
792 assert(m.length(1) == 2); in main()
793 assert(m.position(1) == 2); in main()
794 assert(m.str(1) == L"ab"); in main()
797 std::wcmatch m; in main() local
799 assert(!std::regex_match(s, m, std::wregex(L"cd\\(\\(e\\)fg\\)hi", in main()
801 assert(m.size() == 0); in main()
804 std::wcmatch m; in main() local
806 assert(std::regex_match(s, m, std::wregex(L"^abc", std::regex_constants::basic))); in main()
807 assert(m.size() == 1); in main()
808 assert(!m.prefix().matched); in main()
809 assert(m.prefix().first == s); in main()
810 assert(m.prefix().second == m[0].first); in main()
811 assert(!m.suffix().matched); in main()
812 assert(m.suffix().first == m[0].second); in main()
813 assert(m.suffix().second == s+3); in main()
814 assert(m.length(0) == 3); in main()
815 assert(m.position(0) == 0); in main()
816 assert(m.str(0) == s); in main()
819 std::wcmatch m; in main() local
821 assert(!std::regex_match(s, m, std::wregex(L"^abc", std::regex_constants::basic))); in main()
822 assert(m.size() == 0); in main()
825 std::wcmatch m; in main() local
827 assert(!std::regex_match(s, m, std::wregex(L"^abc", std::regex_constants::basic))); in main()
828 assert(m.size() == 0); in main()
831 std::wcmatch m; in main() local
833 assert(std::regex_match(s, m, std::wregex(L"abc$", std::regex_constants::basic))); in main()
834 assert(m.size() == 1); in main()
835 assert(!m.prefix().matched); in main()
836 assert(m.prefix().first == s); in main()
837 assert(m.prefix().second == m[0].first); in main()
838 assert(!m.suffix().matched); in main()
839 assert(m.suffix().first == m[0].second); in main()
840 assert(m.suffix().second == s+3); in main()
841 assert(m.length(0) == 3); in main()
842 assert(m.position(0) == 0); in main()
843 assert(m.str(0) == s); in main()
846 std::wcmatch m; in main() local
848 assert(!std::regex_match(s, m, std::wregex(L"abc$", std::regex_constants::basic))); in main()
849 assert(m.size() == 0); in main()
852 std::wcmatch m; in main() local
854 assert(!std::regex_match(s, m, std::wregex(L"abc$", std::regex_constants::basic))); in main()
855 assert(m.size() == 0); in main()
858 std::wcmatch m; in main() local
860 assert(std::regex_match(s, m, std::wregex(L"a.c", std::regex_constants::basic))); in main()
861 assert(m.size() == 1); in main()
862 assert(!m.prefix().matched); in main()
863 assert(m.prefix().first == s); in main()
864 assert(m.prefix().second == m[0].first); in main()
865 assert(!m.suffix().matched); in main()
866 assert(m.suffix().first == m[0].second); in main()
867 assert(m.suffix().second == s+3); in main()
868 assert(m.length(0) == 3); in main()
869 assert(m.position(0) == 0); in main()
870 assert(m.str(0) == s); in main()
873 std::wcmatch m; in main() local
875 assert(std::regex_match(s, m, std::wregex(L"a.c", std::regex_constants::basic))); in main()
876 assert(m.size() == 1); in main()
877 assert(!m.prefix().matched); in main()
878 assert(m.prefix().first == s); in main()
879 assert(m.prefix().second == m[0].first); in main()
880 assert(!m.suffix().matched); in main()
881 assert(m.suffix().first == m[0].second); in main()
882 assert(m.suffix().second == s+3); in main()
883 assert(m.length(0) == 3); in main()
884 assert(m.position(0) == 0); in main()
885 assert(m.str(0) == s); in main()
888 std::wcmatch m; in main() local
890 assert(std::regex_match(s, m, std::wregex(L"a.c", std::regex_constants::basic))); in main()
891 assert(m.size() == 1); in main()
892 assert(!m.prefix().matched); in main()
893 assert(m.prefix().first == s); in main()
894 assert(m.prefix().second == m[0].first); in main()
895 assert(!m.suffix().matched); in main()
896 assert(m.suffix().first == m[0].second); in main()
897 assert(m.suffix().second == s+3); in main()
898 assert(m.length(0) == 3); in main()
899 assert(m.position(0) == 0); in main()
900 assert(m.str(0) == s); in main()
903 std::wcmatch m; in main() local
905 assert(std::regex_match(s, m, std::wregex(L"\\(.*\\).*", std::regex_constants::basic))); in main()
906 assert(m.size() == 2); in main()
907 assert(!m.prefix().matched); in main()
908 assert(m.prefix().first == s); in main()
909 assert(m.prefix().second == m[0].first); in main()
910 assert(!m.suffix().matched); in main()
911 assert(m.suffix().first == m[0].second); in main()
912 assert(m.suffix().second == s+6); in main()
913 assert(m.length(0) == 6); in main()
914 assert(m.position(0) == 0); in main()
915 assert(m.str(0) == s); in main()
916 assert(m.length(1) == 6); in main()
917 assert(m.position(1) == 0); in main()
918 assert(m.str(1) == s); in main()
921 std::wcmatch m; in main() local
923 assert(!std::regex_match(s, m, std::wregex(L"\\(a*\\)*", std::regex_constants::basic))); in main()
924 assert(m.size() == 0); in main()
927 std::wcmatch m; in main() local
929 assert(!std::regex_match(s, m, std::wregex(L"ab\\{3,5\\}c", std::regex_constants::basic))); in main()
930 assert(m.size() == 0); in main()
933 std::wcmatch m; in main() local
935 assert(std::regex_match(s, m, std::wregex(L"ab\\{3,5\\}c", std::regex_constants::basic))); in main()
936 assert(m.size() == 1); in main()
937 assert(!m.prefix().matched); in main()
938 assert(m.prefix().first == s); in main()
939 assert(m.prefix().second == m[0].first); in main()
940 assert(!m.suffix().matched); in main()
941 assert(m.suffix().first == m[0].second); in main()
942 assert(m.suffix().second == m[0].second); in main()
943 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
944 assert(m.position(0) == 0); in main()
945 assert(m.str(0) == s); in main()
948 std::wcmatch m; in main() local
950 assert(std::regex_match(s, m, std::wregex(L"ab\\{3,5\\}c", std::regex_constants::basic))); in main()
951 assert(m.size() == 1); in main()
952 assert(!m.prefix().matched); in main()
953 assert(m.prefix().first == s); in main()
954 assert(m.prefix().second == m[0].first); in main()
955 assert(!m.suffix().matched); in main()
956 assert(m.suffix().first == m[0].second); in main()
957 assert(m.suffix().second == m[0].second); in main()
958 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
959 assert(m.position(0) == 0); in main()
960 assert(m.str(0) == s); in main()
963 std::wcmatch m; in main() local
965 assert(std::regex_match(s, m, std::wregex(L"ab\\{3,5\\}c", std::regex_constants::basic))); in main()
966 assert(m.size() == 1); in main()
967 assert(!m.prefix().matched); in main()
968 assert(m.prefix().first == s); in main()
969 assert(m.prefix().second == m[0].first); in main()
970 assert(!m.suffix().matched); in main()
971 assert(m.suffix().first == m[0].second); in main()
972 assert(m.suffix().second == m[0].second); in main()
973 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
974 assert(m.position(0) == 0); in main()
975 assert(m.str(0) == s); in main()
978 std::wcmatch m; in main() local
980 assert(!std::regex_match(s, m, std::wregex(L"ab\\{3,5\\}c", std::regex_constants::basic))); in main()
981 assert(m.size() == 0); in main()
984 std::wcmatch m; in main() local
986 assert(!std::regex_match(s, m, std::wregex(L"ab\\{3,5\\}c", std::regex_constants::basic))); in main()
987 assert(m.size() == 0); in main()
990 std::wcmatch m; in main() local
992 assert(!std::regex_match(s, m, std::wregex(L"a.\\{3,5\\}c", std::regex_constants::basic))); in main()
993 assert(m.size() == 0); in main()
996 std::wcmatch m; in main() local
998 assert(std::regex_match(s, m, std::wregex(L"a.\\{3,5\\}c", std::regex_constants::basic))); in main()
999 assert(m.size() == 1); in main()
1000 assert(!m.prefix().matched); in main()
1001 assert(m.prefix().first == s); in main()
1002 assert(m.prefix().second == m[0].first); in main()
1003 assert(!m.suffix().matched); in main()
1004 assert(m.suffix().first == m[0].second); in main()
1005 assert(m.suffix().second == m[0].second); in main()
1006 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1007 assert(m.position(0) == 0); in main()
1008 assert(m.str(0) == s); in main()
1011 std::wcmatch m; in main() local
1013 assert(std::regex_match(s, m, std::wregex(L"a.\\{3,5\\}c", std::regex_constants::basic))); in main()
1014 assert(m.size() == 1); in main()
1015 assert(!m.prefix().matched); in main()
1016 assert(m.prefix().first == s); in main()
1017 assert(m.prefix().second == m[0].first); in main()
1018 assert(!m.suffix().matched); in main()
1019 assert(m.suffix().first == m[0].second); in main()
1020 assert(m.suffix().second == m[0].second); in main()
1021 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1022 assert(m.position(0) == 0); in main()
1023 assert(m.str(0) == s); in main()
1026 std::wcmatch m; in main() local
1028 assert(std::regex_match(s, m, std::wregex(L"a.\\{3,5\\}c", std::regex_constants::basic))); in main()
1029 assert(m.size() == 1); in main()
1030 assert(!m.prefix().matched); in main()
1031 assert(m.prefix().first == s); in main()
1032 assert(m.prefix().second == m[0].first); in main()
1033 assert(!m.suffix().matched); in main()
1034 assert(m.suffix().first == m[0].second); in main()
1035 assert(m.suffix().second == m[0].second); in main()
1036 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1037 assert(m.position(0) == 0); in main()
1038 assert(m.str(0) == s); in main()
1041 std::wcmatch m; in main() local
1043 assert(!std::regex_match(s, m, std::wregex(L"a.\\{3,5\\}c", std::regex_constants::basic))); in main()
1044 assert(m.size() == 0); in main()
1047 std::wcmatch m; in main() local
1049 assert(std::regex_match(s, m, std::wregex(L"-\\(.*\\),\\1-", std::regex_constants::basic))); in main()
1050 assert(m.size() == 2); in main()
1051 assert(!m.prefix().matched); in main()
1052 assert(m.prefix().first == s); in main()
1053 assert(m.prefix().second == m[0].first); in main()
1054 assert(!m.suffix().matched); in main()
1055 assert(m.suffix().first == m[0].second); in main()
1056 assert(m.suffix().second == m[0].second); in main()
1057 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1058 assert(m.position(0) == 0); in main()
1059 assert(m.str(0) == s); in main()
1060 assert(m.length(1) == 2); in main()
1061 assert(m.position(1) == 1); in main()
1062 assert(m.str(1) == L"ab"); in main()
1065 std::wcmatch m; in main() local
1067 … assert(std::regex_match(s, m, std::wregex(L"^\\(ab*\\)*\\1$", std::regex_constants::basic))); in main()
1068 assert(m.size() == 2); in main()
1069 assert(!m.prefix().matched); in main()
1070 assert(m.prefix().first == s); in main()
1071 assert(m.prefix().second == m[0].first); in main()
1072 assert(!m.suffix().matched); in main()
1073 assert(m.suffix().first == m[0].second); in main()
1074 assert(m.suffix().second == m[0].second); in main()
1075 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1076 assert(m.position(0) == 0); in main()
1077 assert(m.str(0) == s); in main()
1078 assert(m.length(1) == 3); in main()
1079 assert(m.position(1) == 2); in main()
1080 assert(m.str(1) == L"abb"); in main()
1083 std::wcmatch m; in main() local
1085 … assert(!std::regex_match(s, m, std::wregex(L"^\\(ab*\\)*\\1$", std::regex_constants::basic))); in main()
1086 assert(m.size() == 0); in main()
1089 std::wcmatch m; in main() local
1091 assert(std::regex_match(s, m, std::wregex(L"^\\(Ab*\\)*\\1$", in main()
1093 assert(m.size() == 2); in main()
1094 assert(!m.prefix().matched); in main()
1095 assert(m.prefix().first == s); in main()
1096 assert(m.prefix().second == m[0].first); in main()
1097 assert(!m.suffix().matched); in main()
1098 assert(m.suffix().first == m[0].second); in main()
1099 assert(m.suffix().second == m[0].second); in main()
1100 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1101 assert(m.position(0) == 0); in main()
1102 assert(m.str(0) == s); in main()
1103 assert(m.length(1) == 3); in main()
1104 assert(m.position(1) == 2); in main()
1105 assert(m.str(1) == L"Abb"); in main()
1108 std::wcmatch m; in main() local
1110 assert(!std::regex_match(s, m, std::wregex(L"^\\(Ab*\\)*\\1$", in main()
1112 assert(m.size() == 0); in main()
1115 std::wcmatch m; in main() local
1117 assert(std::regex_match(s, m, std::wregex(L"^[a]$", in main()
1119 assert(m.size() == 1); in main()
1120 assert(!m.prefix().matched); in main()
1121 assert(m.prefix().first == s); in main()
1122 assert(m.prefix().second == m[0].first); in main()
1123 assert(!m.suffix().matched); in main()
1124 assert(m.suffix().first == m[0].second); in main()
1125 assert(m.suffix().second == m[0].second); in main()
1126 assert(m.length(0) == 1); in main()
1127 assert(m.position(0) == 0); in main()
1128 assert(m.str(0) == L"a"); in main()
1131 std::wcmatch m; in main() local
1133 assert(std::regex_match(s, m, std::wregex(L"^[ab]$", in main()
1135 assert(m.size() == 1); in main()
1136 assert(!m.prefix().matched); in main()
1137 assert(m.prefix().first == s); in main()
1138 assert(m.prefix().second == m[0].first); in main()
1139 assert(!m.suffix().matched); in main()
1140 assert(m.suffix().first == m[0].second); in main()
1141 assert(m.suffix().second == m[0].second); in main()
1142 assert(m.length(0) == 1); in main()
1143 assert(m.position(0) == 0); in main()
1144 assert(m.str(0) == L"a"); in main()
1147 std::wcmatch m; in main() local
1149 assert(std::regex_match(s, m, std::wregex(L"^[a-f]$", in main()
1151 assert(m.size() == 1); in main()
1152 assert(!m.prefix().matched); in main()
1153 assert(m.prefix().first == s); in main()
1154 assert(m.prefix().second == m[0].first); in main()
1155 assert(!m.suffix().matched); in main()
1156 assert(m.suffix().first == m[0].second); in main()
1157 assert(m.suffix().second == m[0].second); in main()
1158 assert(m.length(0) == 1); in main()
1159 assert(m.position(0) == 0); in main()
1160 assert(m.str(0) == s); in main()
1163 std::wcmatch m; in main() local
1165 assert(!std::regex_match(s, m, std::wregex(L"^[a-f]$", in main()
1167 assert(m.size() == 0); in main()
1170 std::wcmatch m; in main() local
1172 assert(!std::regex_match(s, m, std::wregex(L"q[^u]", in main()
1174 assert(m.size() == 0); in main()
1177 std::wcmatch m; in main() local
1179 assert(!std::regex_match(s, m, std::wregex(L"q[^u]", in main()
1181 assert(m.size() == 0); in main()
1184 std::wcmatch m; in main() local
1186 assert(std::regex_match(s, m, std::wregex(L"A[[:lower:]]B", in main()
1188 assert(m.size() == 1); in main()
1189 assert(!m.prefix().matched); in main()
1190 assert(m.prefix().first == s); in main()
1191 assert(m.prefix().second == m[0].first); in main()
1192 assert(!m.suffix().matched); in main()
1193 assert(m.suffix().first == m[0].second); in main()
1194 assert(m.suffix().second == m[0].second); in main()
1195 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1196 assert(m.position(0) == 0); in main()
1197 assert(m.str(0) == s); in main()
1200 std::wcmatch m; in main() local
1202 assert(!std::regex_match(s, m, std::wregex(L"A[[:lower:]]B", in main()
1204 assert(m.size() == 0); in main()
1207 std::wcmatch m; in main() local
1209 assert(std::regex_match(s, m, std::wregex(L"A[^[:lower:]]B", in main()
1211 assert(m.size() == 1); in main()
1212 assert(!m.prefix().matched); in main()
1213 assert(m.prefix().first == s); in main()
1214 assert(m.prefix().second == m[0].first); in main()
1215 assert(!m.suffix().matched); in main()
1216 assert(m.suffix().first == m[0].second); in main()
1217 assert(m.suffix().second == m[0].second); in main()
1218 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1219 assert(m.position(0) == 0); in main()
1220 assert(m.str(0) == s); in main()
1223 std::wcmatch m; in main() local
1225 assert(!std::regex_match(s, m, std::wregex(L"A[^[:lower:]]B", in main()
1227 assert(m.size() == 0); in main()
1230 std::wcmatch m; in main() local
1232 assert(!std::regex_match(s, m, std::wregex(L"A[^[:lower:]0-9]B", in main()
1234 assert(m.size() == 0); in main()
1237 std::wcmatch m; in main() local
1239 assert(std::regex_match(s, m, std::wregex(L"A[^[:lower:]0-9]B", in main()
1241 assert(m.size() == 1); in main()
1242 assert(!m.prefix().matched); in main()
1243 assert(m.prefix().first == s); in main()
1244 assert(m.prefix().second == m[0].first); in main()
1245 assert(!m.suffix().matched); in main()
1246 assert(m.suffix().first == m[0].second); in main()
1247 assert(m.suffix().second == m[0].second); in main()
1248 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1249 assert(m.position(0) == 0); in main()
1250 assert(m.str(0) == s); in main()
1253 std::wcmatch m; in main() local
1255 assert(std::regex_match(s, m, std::wregex(L"[a[.hyphen.]z]", in main()
1257 assert(m.size() == 1); in main()
1258 assert(!m.prefix().matched); in main()
1259 assert(m.prefix().first == s); in main()
1260 assert(m.prefix().second == m[0].first); in main()
1261 assert(!m.suffix().matched); in main()
1262 assert(m.suffix().first == m[0].second); in main()
1263 assert(m.suffix().second == m[0].second); in main()
1264 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1265 assert(m.position(0) == 0); in main()
1266 assert(m.str(0) == s); in main()
1269 std::wcmatch m; in main() local
1271 assert(std::regex_match(s, m, std::wregex(L"[a[.hyphen.]z]", in main()
1273 assert(m.size() == 1); in main()
1274 assert(!m.prefix().matched); in main()
1275 assert(m.prefix().first == s); in main()
1276 assert(m.prefix().second == m[0].first); in main()
1277 assert(!m.suffix().matched); in main()
1278 assert(m.suffix().first == m[0].second); in main()
1279 assert(m.suffix().second == m[0].second); in main()
1280 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1281 assert(m.position(0) == 0); in main()
1282 assert(m.str(0) == s); in main()
1285 std::wcmatch m; in main() local
1287 assert(!std::regex_match(s, m, std::wregex(L"[a[.hyphen.]z]", in main()
1289 assert(m.size() == 0); in main()
1293 std::wcmatch m; in main() local
1295 assert(std::regex_match(s, m, std::wregex(L"[a[=M=]z]", in main()
1297 assert(m.size() == 1); in main()
1298 assert(!m.prefix().matched); in main()
1299 assert(m.prefix().first == s); in main()
1300 assert(m.prefix().second == m[0].first); in main()
1301 assert(!m.suffix().matched); in main()
1302 assert(m.suffix().first == m[0].second); in main()
1303 assert(m.suffix().second == m[0].second); in main()
1304 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1305 assert(m.position(0) == 0); in main()
1306 assert(m.str(0) == s); in main()
1309 std::wcmatch m; in main() local
1311 assert(std::regex_match(s, m, std::wregex(L"[a[.ch.]z]", in main()
1313 assert(m.size() == 1); in main()
1314 assert(!m.prefix().matched); in main()
1315 assert(m.prefix().first == s); in main()
1316 assert(m.prefix().second == m[0].first); in main()
1317 assert(!m.suffix().matched); in main()
1318 assert(m.suffix().first == m[0].second); in main()
1319 assert(m.suffix().second == m[0].second); in main()
1320 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1321 assert(m.position(0) == 0); in main()
1322 assert(m.str(0) == s); in main()
1326 std::wcmatch m; in main() local
1328 assert(!std::regex_match(s, m, std::wregex(L"[a[=M=]z]", in main()
1330 assert(m.size() == 0); in main()
1333 std::wcmatch m; in main() local
1335 assert(!std::regex_match(s, m, std::wregex(L"[ace1-9]*", in main()
1337 assert(m.size() == 0); in main()
1340 std::wcmatch m; in main() local
1342 assert(!std::regex_match(s, m, std::wregex(L"[ace1-9]\\{1,\\}", in main()
1344 assert(m.size() == 0); in main()
1352 std::match_results<BI> m; in main() local
1355 assert(std::regex_match(BI(s), BI(s+ss), m, regex)); in main()
1356 assert(m.size() == 1); in main()
1357 assert(!m.prefix().matched); in main()
1358 assert(m.prefix().first == BI(s)); in main()
1359 assert(m.prefix().second == m[0].first); in main()
1360 assert(!m.suffix().matched); in main()
1361 assert(m.suffix().first == m[0].second); in main()
1362 assert(m.suffix().second == m[0].second); in main()
1363 assert(m.length(0) == 4); in main()
1364 assert(m.position(0) == 0); in main()
1365 assert(m.str(0) == s); in main()