Lines Matching refs:assert

38         assert(!std::regex_match("a", m, std::regex()));  in main()
39 assert(m.size() == 0); in main()
40 assert(m.empty()); in main()
45 assert(std::regex_match(s, m, std::regex("a", std::regex_constants::basic))); in main()
46 assert(m.size() == 1); in main()
47 assert(!m.empty()); in main()
48 assert(!m.prefix().matched); in main()
49 assert(m.prefix().first == s); in main()
50 assert(m.prefix().second == m[0].first); in main()
51 assert(!m.suffix().matched); in main()
52 assert(m.suffix().first == m[0].second); in main()
53 assert(m.suffix().second == s+1); in main()
54 assert(m.length(0) == 1); in main()
55 assert(m.position(0) == 0); in main()
56 assert(m.str(0) == "a"); in main()
61 assert(std::regex_match(s, m, std::regex("ab", std::regex_constants::basic))); in main()
62 assert(m.size() == 1); in main()
63 assert(!m.prefix().matched); in main()
64 assert(m.prefix().first == s); in main()
65 assert(m.prefix().second == m[0].first); in main()
66 assert(!m.suffix().matched); in main()
67 assert(m.suffix().first == m[0].second); in main()
68 assert(m.suffix().second == s+2); in main()
69 assert(m.length(0) == 2); in main()
70 assert(m.position(0) == 0); in main()
71 assert(m.str(0) == "ab"); in main()
76 assert(!std::regex_match(s, m, std::regex("ba", std::regex_constants::basic))); in main()
77 assert(m.size() == 0); in main()
78 assert(m.empty()); in main()
83 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::basic))); in main()
84 assert(m.size() == 0); in main()
89 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::basic), in main()
91 assert(m.size() == 0); in main()
96 assert(!std::regex_match(s, m, std::regex("bc", std::regex_constants::basic))); in main()
97 assert(m.size() == 0); in main()
102 assert(std::regex_match(s, m, std::regex("ab*c", std::regex_constants::basic))); in main()
103 assert(m.size() == 1); in main()
104 assert(!m.prefix().matched); in main()
105 assert(m.prefix().first == s); in main()
106 assert(m.prefix().second == m[0].first); in main()
107 assert(!m.suffix().matched); in main()
108 assert(m.suffix().first == m[0].second); in main()
109 assert(m.suffix().second == s+4); in main()
110 assert(m.length(0) == 4); in main()
111 assert(m.position(0) == 0); in main()
112 assert(m.str(0) == s); in main()
117 assert(std::regex_match(s, m, std::regex("\\(ab\\)*c", std::regex_constants::basic))); in main()
118 assert(m.size() == 2); in main()
119 assert(!m.prefix().matched); in main()
120 assert(m.prefix().first == s); in main()
121 assert(m.prefix().second == m[0].first); in main()
122 assert(!m.suffix().matched); in main()
123 assert(m.suffix().first == m[0].second); in main()
124 assert(m.suffix().second == s+5); in main()
125 assert(m.length(0) == 5); in main()
126 assert(m.position(0) == 0); in main()
127 assert(m.str(0) == s); in main()
128 assert(m.length(1) == 2); in main()
129 assert(m.position(1) == 2); in main()
130 assert(m.str(1) == "ab"); in main()
135 assert(!std::regex_match(s, m, std::regex("cd\\(\\(e\\)fg\\)hi", in main()
137 assert(m.size() == 0); in main()
142 assert(std::regex_match(s, m, std::regex("^abc", std::regex_constants::basic))); in main()
143 assert(m.size() == 1); in main()
144 assert(!m.prefix().matched); in main()
145 assert(m.prefix().first == s); in main()
146 assert(m.prefix().second == m[0].first); in main()
147 assert(!m.suffix().matched); in main()
148 assert(m.suffix().first == m[0].second); in main()
149 assert(m.suffix().second == s+3); in main()
150 assert(m.length(0) == 3); in main()
151 assert(m.position(0) == 0); in main()
152 assert(m.str(0) == s); in main()
157 assert(!std::regex_match(s, m, std::regex("^abc", std::regex_constants::basic))); in main()
158 assert(m.size() == 0); in main()
163 assert(!std::regex_match(s, m, std::regex("^abc", std::regex_constants::basic))); in main()
164 assert(m.size() == 0); in main()
169 assert(std::regex_match(s, m, std::regex("abc$", std::regex_constants::basic))); in main()
170 assert(m.size() == 1); in main()
171 assert(!m.prefix().matched); in main()
172 assert(m.prefix().first == s); in main()
173 assert(m.prefix().second == m[0].first); in main()
174 assert(!m.suffix().matched); in main()
175 assert(m.suffix().first == m[0].second); in main()
176 assert(m.suffix().second == s+3); in main()
177 assert(m.length(0) == 3); in main()
178 assert(m.position(0) == 0); in main()
179 assert(m.str(0) == s); in main()
184 assert(!std::regex_match(s, m, std::regex("abc$", std::regex_constants::basic))); in main()
185 assert(m.size() == 0); in main()
190 assert(!std::regex_match(s, m, std::regex("abc$", std::regex_constants::basic))); in main()
191 assert(m.size() == 0); in main()
196 assert(std::regex_match(s, m, std::regex("a.c", std::regex_constants::basic))); in main()
197 assert(m.size() == 1); in main()
198 assert(!m.prefix().matched); in main()
199 assert(m.prefix().first == s); in main()
200 assert(m.prefix().second == m[0].first); in main()
201 assert(!m.suffix().matched); in main()
202 assert(m.suffix().first == m[0].second); in main()
203 assert(m.suffix().second == s+3); in main()
204 assert(m.length(0) == 3); in main()
205 assert(m.position(0) == 0); in main()
206 assert(m.str(0) == s); in main()
211 assert(std::regex_match(s, m, std::regex("a.c", std::regex_constants::basic))); in main()
212 assert(m.size() == 1); in main()
213 assert(!m.prefix().matched); in main()
214 assert(m.prefix().first == s); in main()
215 assert(m.prefix().second == m[0].first); in main()
216 assert(!m.suffix().matched); in main()
217 assert(m.suffix().first == m[0].second); in main()
218 assert(m.suffix().second == s+3); in main()
219 assert(m.length(0) == 3); in main()
220 assert(m.position(0) == 0); in main()
221 assert(m.str(0) == s); in main()
226 assert(std::regex_match(s, m, std::regex("a.c", std::regex_constants::basic))); in main()
227 assert(m.size() == 1); in main()
228 assert(!m.prefix().matched); in main()
229 assert(m.prefix().first == s); in main()
230 assert(m.prefix().second == m[0].first); in main()
231 assert(!m.suffix().matched); in main()
232 assert(m.suffix().first == m[0].second); in main()
233 assert(m.suffix().second == s+3); in main()
234 assert(m.length(0) == 3); in main()
235 assert(m.position(0) == 0); in main()
236 assert(m.str(0) == s); in main()
241 assert(std::regex_match(s, m, std::regex("\\(.*\\).*", std::regex_constants::basic))); in main()
242 assert(m.size() == 2); in main()
243 assert(!m.prefix().matched); in main()
244 assert(m.prefix().first == s); in main()
245 assert(m.prefix().second == m[0].first); in main()
246 assert(!m.suffix().matched); in main()
247 assert(m.suffix().first == m[0].second); in main()
248 assert(m.suffix().second == s+6); in main()
249 assert(m.length(0) == 6); in main()
250 assert(m.position(0) == 0); in main()
251 assert(m.str(0) == s); in main()
252 assert(m.length(1) == 6); in main()
253 assert(m.position(1) == 0); in main()
254 assert(m.str(1) == s); in main()
259 assert(!std::regex_match(s, m, std::regex("\\(a*\\)*", std::regex_constants::basic))); in main()
260 assert(m.size() == 0); in main()
265 assert(!std::regex_match(s, m, std::regex("ab\\{3,5\\}c", std::regex_constants::basic))); in main()
266 assert(m.size() == 0); in main()
271 assert(std::regex_match(s, m, std::regex("ab\\{3,5\\}c", std::regex_constants::basic))); in main()
272 assert(m.size() == 1); in main()
273 assert(!m.prefix().matched); in main()
274 assert(m.prefix().first == s); in main()
275 assert(m.prefix().second == m[0].first); in main()
276 assert(!m.suffix().matched); in main()
277 assert(m.suffix().first == m[0].second); in main()
278 assert(m.suffix().second == m[0].second); in main()
279 assert(m.length(0) == sizeof(s)-1); in main()
280 assert(m.position(0) == 0); in main()
281 assert(m.str(0) == s); in main()
286 assert(std::regex_match(s, m, std::regex("ab\\{3,5\\}c", std::regex_constants::basic))); in main()
287 assert(m.size() == 1); in main()
288 assert(!m.prefix().matched); in main()
289 assert(m.prefix().first == s); in main()
290 assert(m.prefix().second == m[0].first); in main()
291 assert(!m.suffix().matched); in main()
292 assert(m.suffix().first == m[0].second); in main()
293 assert(m.suffix().second == m[0].second); in main()
294 assert(m.length(0) == sizeof(s)-1); in main()
295 assert(m.position(0) == 0); in main()
296 assert(m.str(0) == s); in main()
301 assert(std::regex_match(s, m, std::regex("ab\\{3,5\\}c", std::regex_constants::basic))); in main()
302 assert(m.size() == 1); in main()
303 assert(!m.prefix().matched); in main()
304 assert(m.prefix().first == s); in main()
305 assert(m.prefix().second == m[0].first); in main()
306 assert(!m.suffix().matched); in main()
307 assert(m.suffix().first == m[0].second); in main()
308 assert(m.suffix().second == m[0].second); in main()
309 assert(m.length(0) == sizeof(s)-1); in main()
310 assert(m.position(0) == 0); in main()
311 assert(m.str(0) == s); in main()
316 assert(!std::regex_match(s, m, std::regex("ab\\{3,5\\}c", std::regex_constants::basic))); in main()
317 assert(m.size() == 0); in main()
322 assert(!std::regex_match(s, m, std::regex("ab\\{3,5\\}c", std::regex_constants::basic))); in main()
323 assert(m.size() == 0); in main()
328 assert(!std::regex_match(s, m, std::regex("a.\\{3,5\\}c", std::regex_constants::basic))); in main()
329 assert(m.size() == 0); in main()
334 assert(std::regex_match(s, m, std::regex("a.\\{3,5\\}c", std::regex_constants::basic))); in main()
335 assert(m.size() == 1); in main()
336 assert(!m.prefix().matched); in main()
337 assert(m.prefix().first == s); in main()
338 assert(m.prefix().second == m[0].first); in main()
339 assert(!m.suffix().matched); in main()
340 assert(m.suffix().first == m[0].second); in main()
341 assert(m.suffix().second == m[0].second); in main()
342 assert(m.length(0) == sizeof(s)-1); in main()
343 assert(m.position(0) == 0); in main()
344 assert(m.str(0) == s); in main()
349 assert(std::regex_match(s, m, std::regex("a.\\{3,5\\}c", std::regex_constants::basic))); in main()
350 assert(m.size() == 1); in main()
351 assert(!m.prefix().matched); in main()
352 assert(m.prefix().first == s); in main()
353 assert(m.prefix().second == m[0].first); in main()
354 assert(!m.suffix().matched); in main()
355 assert(m.suffix().first == m[0].second); in main()
356 assert(m.suffix().second == m[0].second); in main()
357 assert(m.length(0) == sizeof(s)-1); in main()
358 assert(m.position(0) == 0); in main()
359 assert(m.str(0) == s); in main()
364 assert(std::regex_match(s, m, std::regex("a.\\{3,5\\}c", std::regex_constants::basic))); in main()
365 assert(m.size() == 1); in main()
366 assert(!m.prefix().matched); in main()
367 assert(m.prefix().first == s); in main()
368 assert(m.prefix().second == m[0].first); in main()
369 assert(!m.suffix().matched); in main()
370 assert(m.suffix().first == m[0].second); in main()
371 assert(m.suffix().second == m[0].second); in main()
372 assert(m.length(0) == sizeof(s)-1); in main()
373 assert(m.position(0) == 0); in main()
374 assert(m.str(0) == s); in main()
379 assert(!std::regex_match(s, m, std::regex("a.\\{3,5\\}c", std::regex_constants::basic))); in main()
380 assert(m.size() == 0); in main()
385 assert(std::regex_match(s, m, std::regex("-\\(.*\\),\\1-", std::regex_constants::basic))); in main()
386 assert(m.size() == 2); in main()
387 assert(!m.prefix().matched); in main()
388 assert(m.prefix().first == s); in main()
389 assert(m.prefix().second == m[0].first); in main()
390 assert(!m.suffix().matched); in main()
391 assert(m.suffix().first == m[0].second); in main()
392 assert(m.suffix().second == m[0].second); in main()
393assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
394 assert(m.position(0) == 0); in main()
395 assert(m.str(0) == s); in main()
396 assert(m.length(1) == 2); in main()
397 assert(m.position(1) == 1); in main()
398 assert(m.str(1) == "ab"); in main()
403 assert(std::regex_match(s, m, std::regex("^\\(ab*\\)*\\1$", std::regex_constants::basic))); in main()
404 assert(m.size() == 2); in main()
405 assert(!m.prefix().matched); in main()
406 assert(m.prefix().first == s); in main()
407 assert(m.prefix().second == m[0].first); in main()
408 assert(!m.suffix().matched); in main()
409 assert(m.suffix().first == m[0].second); in main()
410 assert(m.suffix().second == m[0].second); in main()
411assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
412 assert(m.position(0) == 0); in main()
413 assert(m.str(0) == s); in main()
414 assert(m.length(1) == 3); in main()
415 assert(m.position(1) == 2); in main()
416 assert(m.str(1) == "abb"); in main()
421 assert(!std::regex_match(s, m, std::regex("^\\(ab*\\)*\\1$", std::regex_constants::basic))); in main()
422 assert(m.size() == 0); in main()
427 assert(std::regex_match(s, m, std::regex("^\\(Ab*\\)*\\1$", in main()
429 assert(m.size() == 2); in main()
430 assert(!m.prefix().matched); in main()
431 assert(m.prefix().first == s); in main()
432 assert(m.prefix().second == m[0].first); in main()
433 assert(!m.suffix().matched); in main()
434 assert(m.suffix().first == m[0].second); in main()
435 assert(m.suffix().second == m[0].second); in main()
436assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
437 assert(m.position(0) == 0); in main()
438 assert(m.str(0) == s); in main()
439 assert(m.length(1) == 3); in main()
440 assert(m.position(1) == 2); in main()
441 assert(m.str(1) == "Abb"); in main()
446 assert(!std::regex_match(s, m, std::regex("^\\(Ab*\\)*\\1$", in main()
448 assert(m.size() == 0); in main()
453 assert(std::regex_match(s, m, std::regex("^[a]$", in main()
455 assert(m.size() == 1); in main()
456 assert(!m.prefix().matched); in main()
457 assert(m.prefix().first == s); in main()
458 assert(m.prefix().second == m[0].first); in main()
459 assert(!m.suffix().matched); in main()
460 assert(m.suffix().first == m[0].second); in main()
461 assert(m.suffix().second == m[0].second); in main()
462 assert(m.length(0) == 1); in main()
463 assert(m.position(0) == 0); in main()
464 assert(m.str(0) == "a"); in main()
469 assert(std::regex_match(s, m, std::regex("^[ab]$", in main()
471 assert(m.size() == 1); in main()
472 assert(!m.prefix().matched); in main()
473 assert(m.prefix().first == s); in main()
474 assert(m.prefix().second == m[0].first); in main()
475 assert(!m.suffix().matched); in main()
476 assert(m.suffix().first == m[0].second); in main()
477 assert(m.suffix().second == m[0].second); in main()
478 assert(m.length(0) == 1); in main()
479 assert(m.position(0) == 0); in main()
480 assert(m.str(0) == "a"); in main()
485 assert(std::regex_match(s, m, std::regex("^[a-f]$", in main()
487 assert(m.size() == 1); in main()
488 assert(!m.prefix().matched); in main()
489 assert(m.prefix().first == s); in main()
490 assert(m.prefix().second == m[0].first); in main()
491 assert(!m.suffix().matched); in main()
492 assert(m.suffix().first == m[0].second); in main()
493 assert(m.suffix().second == m[0].second); in main()
494 assert(m.length(0) == 1); in main()
495 assert(m.position(0) == 0); in main()
496 assert(m.str(0) == s); in main()
501 assert(!std::regex_match(s, m, std::regex("^[a-f]$", in main()
503 assert(m.size() == 0); in main()
508 assert(!std::regex_match(s, m, std::regex("q[^u]", in main()
510 assert(m.size() == 0); in main()
515 assert(!std::regex_match(s, m, std::regex("q[^u]", in main()
517 assert(m.size() == 0); in main()
522 assert(std::regex_match(s, m, std::regex("A[[:lower:]]B", in main()
524 assert(m.size() == 1); in main()
525 assert(!m.prefix().matched); in main()
526 assert(m.prefix().first == s); in main()
527 assert(m.prefix().second == m[0].first); in main()
528 assert(!m.suffix().matched); in main()
529 assert(m.suffix().first == m[0].second); in main()
530 assert(m.suffix().second == m[0].second); in main()
531assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
532 assert(m.position(0) == 0); in main()
533 assert(m.str(0) == s); in main()
538 assert(!std::regex_match(s, m, std::regex("A[[:lower:]]B", in main()
540 assert(m.size() == 0); in main()
545 assert(std::regex_match(s, m, std::regex("A[^[:lower:]]B", in main()
547 assert(m.size() == 1); in main()
548 assert(!m.prefix().matched); in main()
549 assert(m.prefix().first == s); in main()
550 assert(m.prefix().second == m[0].first); in main()
551 assert(!m.suffix().matched); in main()
552 assert(m.suffix().first == m[0].second); in main()
553 assert(m.suffix().second == m[0].second); in main()
554assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
555 assert(m.position(0) == 0); in main()
556 assert(m.str(0) == s); in main()
561 assert(!std::regex_match(s, m, std::regex("A[^[:lower:]]B", in main()
563 assert(m.size() == 0); in main()
568 assert(!std::regex_match(s, m, std::regex("A[^[:lower:]0-9]B", in main()
570 assert(m.size() == 0); in main()
575 assert(std::regex_match(s, m, std::regex("A[^[:lower:]0-9]B", in main()
577 assert(m.size() == 1); in main()
578 assert(!m.prefix().matched); in main()
579 assert(m.prefix().first == s); in main()
580 assert(m.prefix().second == m[0].first); in main()
581 assert(!m.suffix().matched); in main()
582 assert(m.suffix().first == m[0].second); in main()
583 assert(m.suffix().second == m[0].second); in main()
584assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
585 assert(m.position(0) == 0); in main()
586 assert(m.str(0) == s); in main()
591 assert(std::regex_match(s, m, std::regex("[a[.hyphen.]z]", in main()
593 assert(m.size() == 1); in main()
594 assert(!m.prefix().matched); in main()
595 assert(m.prefix().first == s); in main()
596 assert(m.prefix().second == m[0].first); in main()
597 assert(!m.suffix().matched); in main()
598 assert(m.suffix().first == m[0].second); in main()
599 assert(m.suffix().second == m[0].second); in main()
600assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
601 assert(m.position(0) == 0); in main()
602 assert(m.str(0) == s); in main()
607 assert(std::regex_match(s, m, std::regex("[a[.hyphen.]z]", in main()
609 assert(m.size() == 1); in main()
610 assert(!m.prefix().matched); in main()
611 assert(m.prefix().first == s); in main()
612 assert(m.prefix().second == m[0].first); in main()
613 assert(!m.suffix().matched); in main()
614 assert(m.suffix().first == m[0].second); in main()
615 assert(m.suffix().second == m[0].second); in main()
616assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
617 assert(m.position(0) == 0); in main()
618 assert(m.str(0) == s); in main()
623 assert(!std::regex_match(s, m, std::regex("[a[.hyphen.]z]", in main()
625 assert(m.size() == 0); in main()
631 assert(std::regex_match(s, m, std::regex("[a[=M=]z]", in main()
633 assert(m.size() == 1); in main()
634 assert(!m.prefix().matched); in main()
635 assert(m.prefix().first == s); in main()
636 assert(m.prefix().second == m[0].first); in main()
637 assert(!m.suffix().matched); in main()
638 assert(m.suffix().first == m[0].second); in main()
639 assert(m.suffix().second == m[0].second); in main()
640assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
641 assert(m.position(0) == 0); in main()
642 assert(m.str(0) == s); in main()
647 assert(std::regex_match(s, m, std::regex("[a[.ch.]z]", in main()
649 assert(m.size() == 1); in main()
650 assert(!m.prefix().matched); in main()
651 assert(m.prefix().first == s); in main()
652 assert(m.prefix().second == m[0].first); in main()
653 assert(!m.suffix().matched); in main()
654 assert(m.suffix().first == m[0].second); in main()
655 assert(m.suffix().second == m[0].second); in main()
656assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
657 assert(m.position(0) == 0); in main()
658 assert(m.str(0) == s); in main()
664 assert(!std::regex_match(s, m, std::regex("[a[=M=]z]", in main()
666 assert(m.size() == 0); in main()
671 assert(!std::regex_match(s, m, std::regex("[ace1-9]*", in main()
673 assert(m.size() == 0); in main()
678 assert(!std::regex_match(s, m, std::regex("[ace1-9]\\{1,\\}", in main()
680 assert(m.size() == 0); in main()
691 assert(std::regex_match(BI(s), BI(s+ss), m, regex)); in main()
692 assert(m.size() == 1); in main()
693 assert(!m.prefix().matched); in main()
694 assert(m.prefix().first == BI(s)); in main()
695 assert(m.prefix().second == m[0].first); in main()
696 assert(!m.suffix().matched); in main()
697 assert(m.suffix().first == m[0].second); in main()
698 assert(m.suffix().second == m[0].second); in main()
699 assert(m.length(0) == 4); in main()
700 assert(m.position(0) == 0); in main()
701 assert(m.str(0) == s); in main()
706 assert(!std::regex_match(L"a", m, std::wregex())); in main()
707 assert(m.size() == 0); in main()
708 assert(m.empty()); in main()
713 assert(std::regex_match(s, m, std::wregex(L"a", std::regex_constants::basic))); in main()
714 assert(m.size() == 1); in main()
715 assert(!m.empty()); in main()
716 assert(!m.prefix().matched); in main()
717 assert(m.prefix().first == s); in main()
718 assert(m.prefix().second == m[0].first); in main()
719 assert(!m.suffix().matched); in main()
720 assert(m.suffix().first == m[0].second); in main()
721 assert(m.suffix().second == s+1); in main()
722 assert(m.length(0) == 1); in main()
723 assert(m.position(0) == 0); in main()
724 assert(m.str(0) == L"a"); in main()
729 assert(std::regex_match(s, m, std::wregex(L"ab", std::regex_constants::basic))); in main()
730 assert(m.size() == 1); in main()
731 assert(!m.prefix().matched); in main()
732 assert(m.prefix().first == s); in main()
733 assert(m.prefix().second == m[0].first); in main()
734 assert(!m.suffix().matched); in main()
735 assert(m.suffix().first == m[0].second); in main()
736 assert(m.suffix().second == s+2); in main()
737 assert(m.length(0) == 2); in main()
738 assert(m.position(0) == 0); in main()
739 assert(m.str(0) == L"ab"); in main()
744 assert(!std::regex_match(s, m, std::wregex(L"ba", std::regex_constants::basic))); in main()
745 assert(m.size() == 0); in main()
746 assert(m.empty()); in main()
751 assert(!std::regex_match(s, m, std::wregex(L"ab", std::regex_constants::basic))); in main()
752 assert(m.size() == 0); in main()
757 assert(!std::regex_match(s, m, std::wregex(L"ab", std::regex_constants::basic), in main()
759 assert(m.size() == 0); in main()
764 assert(!std::regex_match(s, m, std::wregex(L"bc", std::regex_constants::basic))); in main()
765 assert(m.size() == 0); in main()
770 assert(std::regex_match(s, m, std::wregex(L"ab*c", std::regex_constants::basic))); in main()
771 assert(m.size() == 1); in main()
772 assert(!m.prefix().matched); in main()
773 assert(m.prefix().first == s); in main()
774 assert(m.prefix().second == m[0].first); in main()
775 assert(!m.suffix().matched); in main()
776 assert(m.suffix().first == m[0].second); in main()
777 assert(m.suffix().second == s+4); in main()
778 assert(m.length(0) == 4); in main()
779 assert(m.position(0) == 0); in main()
780 assert(m.str(0) == s); in main()
785 assert(std::regex_match(s, m, std::wregex(L"\\(ab\\)*c", std::regex_constants::basic))); in main()
786 assert(m.size() == 2); in main()
787 assert(!m.prefix().matched); in main()
788 assert(m.prefix().first == s); in main()
789 assert(m.prefix().second == m[0].first); in main()
790 assert(!m.suffix().matched); in main()
791 assert(m.suffix().first == m[0].second); in main()
792 assert(m.suffix().second == s+5); in main()
793 assert(m.length(0) == 5); in main()
794 assert(m.position(0) == 0); in main()
795 assert(m.str(0) == s); in main()
796 assert(m.length(1) == 2); in main()
797 assert(m.position(1) == 2); in main()
798 assert(m.str(1) == L"ab"); in main()
803 assert(!std::regex_match(s, m, std::wregex(L"cd\\(\\(e\\)fg\\)hi", in main()
805 assert(m.size() == 0); in main()
810 assert(std::regex_match(s, m, std::wregex(L"^abc", std::regex_constants::basic))); in main()
811 assert(m.size() == 1); in main()
812 assert(!m.prefix().matched); in main()
813 assert(m.prefix().first == s); in main()
814 assert(m.prefix().second == m[0].first); in main()
815 assert(!m.suffix().matched); in main()
816 assert(m.suffix().first == m[0].second); in main()
817 assert(m.suffix().second == s+3); in main()
818 assert(m.length(0) == 3); in main()
819 assert(m.position(0) == 0); in main()
820 assert(m.str(0) == s); in main()
825 assert(!std::regex_match(s, m, std::wregex(L"^abc", std::regex_constants::basic))); in main()
826 assert(m.size() == 0); in main()
831 assert(!std::regex_match(s, m, std::wregex(L"^abc", std::regex_constants::basic))); in main()
832 assert(m.size() == 0); in main()
837 assert(std::regex_match(s, m, std::wregex(L"abc$", std::regex_constants::basic))); in main()
838 assert(m.size() == 1); in main()
839 assert(!m.prefix().matched); in main()
840 assert(m.prefix().first == s); in main()
841 assert(m.prefix().second == m[0].first); in main()
842 assert(!m.suffix().matched); in main()
843 assert(m.suffix().first == m[0].second); in main()
844 assert(m.suffix().second == s+3); in main()
845 assert(m.length(0) == 3); in main()
846 assert(m.position(0) == 0); in main()
847 assert(m.str(0) == s); in main()
852 assert(!std::regex_match(s, m, std::wregex(L"abc$", std::regex_constants::basic))); in main()
853 assert(m.size() == 0); in main()
858 assert(!std::regex_match(s, m, std::wregex(L"abc$", std::regex_constants::basic))); in main()
859 assert(m.size() == 0); in main()
864 assert(std::regex_match(s, m, std::wregex(L"a.c", std::regex_constants::basic))); in main()
865 assert(m.size() == 1); in main()
866 assert(!m.prefix().matched); in main()
867 assert(m.prefix().first == s); in main()
868 assert(m.prefix().second == m[0].first); in main()
869 assert(!m.suffix().matched); in main()
870 assert(m.suffix().first == m[0].second); in main()
871 assert(m.suffix().second == s+3); in main()
872 assert(m.length(0) == 3); in main()
873 assert(m.position(0) == 0); in main()
874 assert(m.str(0) == s); in main()
879 assert(std::regex_match(s, m, std::wregex(L"a.c", std::regex_constants::basic))); in main()
880 assert(m.size() == 1); in main()
881 assert(!m.prefix().matched); in main()
882 assert(m.prefix().first == s); in main()
883 assert(m.prefix().second == m[0].first); in main()
884 assert(!m.suffix().matched); in main()
885 assert(m.suffix().first == m[0].second); in main()
886 assert(m.suffix().second == s+3); in main()
887 assert(m.length(0) == 3); in main()
888 assert(m.position(0) == 0); in main()
889 assert(m.str(0) == s); in main()
894 assert(std::regex_match(s, m, std::wregex(L"a.c", std::regex_constants::basic))); in main()
895 assert(m.size() == 1); in main()
896 assert(!m.prefix().matched); in main()
897 assert(m.prefix().first == s); in main()
898 assert(m.prefix().second == m[0].first); in main()
899 assert(!m.suffix().matched); in main()
900 assert(m.suffix().first == m[0].second); in main()
901 assert(m.suffix().second == s+3); in main()
902 assert(m.length(0) == 3); in main()
903 assert(m.position(0) == 0); in main()
904 assert(m.str(0) == s); in main()
909 assert(std::regex_match(s, m, std::wregex(L"\\(.*\\).*", std::regex_constants::basic))); in main()
910 assert(m.size() == 2); in main()
911 assert(!m.prefix().matched); in main()
912 assert(m.prefix().first == s); in main()
913 assert(m.prefix().second == m[0].first); in main()
914 assert(!m.suffix().matched); in main()
915 assert(m.suffix().first == m[0].second); in main()
916 assert(m.suffix().second == s+6); in main()
917 assert(m.length(0) == 6); in main()
918 assert(m.position(0) == 0); in main()
919 assert(m.str(0) == s); in main()
920 assert(m.length(1) == 6); in main()
921 assert(m.position(1) == 0); in main()
922 assert(m.str(1) == s); in main()
927 assert(!std::regex_match(s, m, std::wregex(L"\\(a*\\)*", std::regex_constants::basic))); in main()
928 assert(m.size() == 0); in main()
933 assert(!std::regex_match(s, m, std::wregex(L"ab\\{3,5\\}c", std::regex_constants::basic))); in main()
934 assert(m.size() == 0); in main()
939 assert(std::regex_match(s, m, std::wregex(L"ab\\{3,5\\}c", std::regex_constants::basic))); in main()
940 assert(m.size() == 1); in main()
941 assert(!m.prefix().matched); in main()
942 assert(m.prefix().first == s); in main()
943 assert(m.prefix().second == m[0].first); in main()
944 assert(!m.suffix().matched); in main()
945 assert(m.suffix().first == m[0].second); in main()
946 assert(m.suffix().second == m[0].second); in main()
947assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
948 assert(m.position(0) == 0); in main()
949 assert(m.str(0) == s); in main()
954 assert(std::regex_match(s, m, std::wregex(L"ab\\{3,5\\}c", std::regex_constants::basic))); in main()
955 assert(m.size() == 1); in main()
956 assert(!m.prefix().matched); in main()
957 assert(m.prefix().first == s); in main()
958 assert(m.prefix().second == m[0].first); in main()
959 assert(!m.suffix().matched); in main()
960 assert(m.suffix().first == m[0].second); in main()
961 assert(m.suffix().second == m[0].second); in main()
962assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
963 assert(m.position(0) == 0); in main()
964 assert(m.str(0) == s); in main()
969 assert(std::regex_match(s, m, std::wregex(L"ab\\{3,5\\}c", std::regex_constants::basic))); in main()
970 assert(m.size() == 1); in main()
971 assert(!m.prefix().matched); in main()
972 assert(m.prefix().first == s); in main()
973 assert(m.prefix().second == m[0].first); in main()
974 assert(!m.suffix().matched); in main()
975 assert(m.suffix().first == m[0].second); in main()
976 assert(m.suffix().second == m[0].second); in main()
977assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
978 assert(m.position(0) == 0); in main()
979 assert(m.str(0) == s); in main()
984 assert(!std::regex_match(s, m, std::wregex(L"ab\\{3,5\\}c", std::regex_constants::basic))); in main()
985 assert(m.size() == 0); in main()
990 assert(!std::regex_match(s, m, std::wregex(L"ab\\{3,5\\}c", std::regex_constants::basic))); in main()
991 assert(m.size() == 0); in main()
996 assert(!std::regex_match(s, m, std::wregex(L"a.\\{3,5\\}c", std::regex_constants::basic))); in main()
997 assert(m.size() == 0); in main()
1002 assert(std::regex_match(s, m, std::wregex(L"a.\\{3,5\\}c", std::regex_constants::basic))); in main()
1003 assert(m.size() == 1); in main()
1004 assert(!m.prefix().matched); in main()
1005 assert(m.prefix().first == s); in main()
1006 assert(m.prefix().second == m[0].first); in main()
1007 assert(!m.suffix().matched); in main()
1008 assert(m.suffix().first == m[0].second); in main()
1009 assert(m.suffix().second == m[0].second); in main()
1010assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1011 assert(m.position(0) == 0); in main()
1012 assert(m.str(0) == s); in main()
1017 assert(std::regex_match(s, m, std::wregex(L"a.\\{3,5\\}c", std::regex_constants::basic))); in main()
1018 assert(m.size() == 1); in main()
1019 assert(!m.prefix().matched); in main()
1020 assert(m.prefix().first == s); in main()
1021 assert(m.prefix().second == m[0].first); in main()
1022 assert(!m.suffix().matched); in main()
1023 assert(m.suffix().first == m[0].second); in main()
1024 assert(m.suffix().second == m[0].second); in main()
1025assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1026 assert(m.position(0) == 0); in main()
1027 assert(m.str(0) == s); in main()
1032 assert(std::regex_match(s, m, std::wregex(L"a.\\{3,5\\}c", std::regex_constants::basic))); in main()
1033 assert(m.size() == 1); in main()
1034 assert(!m.prefix().matched); in main()
1035 assert(m.prefix().first == s); in main()
1036 assert(m.prefix().second == m[0].first); in main()
1037 assert(!m.suffix().matched); in main()
1038 assert(m.suffix().first == m[0].second); in main()
1039 assert(m.suffix().second == m[0].second); in main()
1040assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1041 assert(m.position(0) == 0); in main()
1042 assert(m.str(0) == s); in main()
1047 assert(!std::regex_match(s, m, std::wregex(L"a.\\{3,5\\}c", std::regex_constants::basic))); in main()
1048 assert(m.size() == 0); in main()
1053 assert(std::regex_match(s, m, std::wregex(L"-\\(.*\\),\\1-", std::regex_constants::basic))); in main()
1054 assert(m.size() == 2); in main()
1055 assert(!m.prefix().matched); in main()
1056 assert(m.prefix().first == s); in main()
1057 assert(m.prefix().second == m[0].first); in main()
1058 assert(!m.suffix().matched); in main()
1059 assert(m.suffix().first == m[0].second); in main()
1060 assert(m.suffix().second == m[0].second); in main()
1061assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1062 assert(m.position(0) == 0); in main()
1063 assert(m.str(0) == s); in main()
1064 assert(m.length(1) == 2); in main()
1065 assert(m.position(1) == 1); in main()
1066 assert(m.str(1) == L"ab"); in main()
1071assert(std::regex_match(s, m, std::wregex(L"^\\(ab*\\)*\\1$", std::regex_constants::basic))); in main()
1072 assert(m.size() == 2); 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()
1079assert(m.length(0) >= 0 && static_cast<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()
1082 assert(m.length(1) == 3); in main()
1083 assert(m.position(1) == 2); in main()
1084 assert(m.str(1) == L"abb"); in main()
1089assert(!std::regex_match(s, m, std::wregex(L"^\\(ab*\\)*\\1$", std::regex_constants::basic))); in main()
1090 assert(m.size() == 0); in main()
1095 assert(std::regex_match(s, m, std::wregex(L"^\\(Ab*\\)*\\1$", in main()
1097 assert(m.size() == 2); in main()
1098 assert(!m.prefix().matched); in main()
1099 assert(m.prefix().first == s); in main()
1100 assert(m.prefix().second == m[0].first); in main()
1101 assert(!m.suffix().matched); in main()
1102 assert(m.suffix().first == m[0].second); in main()
1103 assert(m.suffix().second == m[0].second); in main()
1104assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1105 assert(m.position(0) == 0); in main()
1106 assert(m.str(0) == s); in main()
1107 assert(m.length(1) == 3); in main()
1108 assert(m.position(1) == 2); in main()
1109 assert(m.str(1) == L"Abb"); in main()
1114 assert(!std::regex_match(s, m, std::wregex(L"^\\(Ab*\\)*\\1$", in main()
1116 assert(m.size() == 0); in main()
1121 assert(std::regex_match(s, m, std::wregex(L"^[a]$", in main()
1123 assert(m.size() == 1); in main()
1124 assert(!m.prefix().matched); in main()
1125 assert(m.prefix().first == s); in main()
1126 assert(m.prefix().second == m[0].first); in main()
1127 assert(!m.suffix().matched); in main()
1128 assert(m.suffix().first == m[0].second); in main()
1129 assert(m.suffix().second == m[0].second); in main()
1130 assert(m.length(0) == 1); in main()
1131 assert(m.position(0) == 0); in main()
1132 assert(m.str(0) == L"a"); in main()
1137 assert(std::regex_match(s, m, std::wregex(L"^[ab]$", in main()
1139 assert(m.size() == 1); in main()
1140 assert(!m.prefix().matched); in main()
1141 assert(m.prefix().first == s); in main()
1142 assert(m.prefix().second == m[0].first); in main()
1143 assert(!m.suffix().matched); in main()
1144 assert(m.suffix().first == m[0].second); in main()
1145 assert(m.suffix().second == m[0].second); in main()
1146 assert(m.length(0) == 1); in main()
1147 assert(m.position(0) == 0); in main()
1148 assert(m.str(0) == L"a"); in main()
1153 assert(std::regex_match(s, m, std::wregex(L"^[a-f]$", in main()
1155 assert(m.size() == 1); in main()
1156 assert(!m.prefix().matched); in main()
1157 assert(m.prefix().first == s); in main()
1158 assert(m.prefix().second == m[0].first); in main()
1159 assert(!m.suffix().matched); in main()
1160 assert(m.suffix().first == m[0].second); in main()
1161 assert(m.suffix().second == m[0].second); in main()
1162 assert(m.length(0) == 1); in main()
1163 assert(m.position(0) == 0); in main()
1164 assert(m.str(0) == s); in main()
1169 assert(!std::regex_match(s, m, std::wregex(L"^[a-f]$", in main()
1171 assert(m.size() == 0); in main()
1176 assert(!std::regex_match(s, m, std::wregex(L"q[^u]", in main()
1178 assert(m.size() == 0); in main()
1183 assert(!std::regex_match(s, m, std::wregex(L"q[^u]", in main()
1185 assert(m.size() == 0); in main()
1190 assert(std::regex_match(s, m, std::wregex(L"A[[:lower:]]B", in main()
1192 assert(m.size() == 1); in main()
1193 assert(!m.prefix().matched); in main()
1194 assert(m.prefix().first == s); in main()
1195 assert(m.prefix().second == m[0].first); in main()
1196 assert(!m.suffix().matched); in main()
1197 assert(m.suffix().first == m[0].second); in main()
1198 assert(m.suffix().second == m[0].second); in main()
1199assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1200 assert(m.position(0) == 0); in main()
1201 assert(m.str(0) == s); in main()
1206 assert(!std::regex_match(s, m, std::wregex(L"A[[:lower:]]B", in main()
1208 assert(m.size() == 0); in main()
1213 assert(std::regex_match(s, m, std::wregex(L"A[^[:lower:]]B", in main()
1215 assert(m.size() == 1); in main()
1216 assert(!m.prefix().matched); in main()
1217 assert(m.prefix().first == s); in main()
1218 assert(m.prefix().second == m[0].first); in main()
1219 assert(!m.suffix().matched); in main()
1220 assert(m.suffix().first == m[0].second); in main()
1221 assert(m.suffix().second == m[0].second); in main()
1222assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1223 assert(m.position(0) == 0); in main()
1224 assert(m.str(0) == s); in main()
1229 assert(!std::regex_match(s, m, std::wregex(L"A[^[:lower:]]B", in main()
1231 assert(m.size() == 0); in main()
1236 assert(!std::regex_match(s, m, std::wregex(L"A[^[:lower:]0-9]B", in main()
1238 assert(m.size() == 0); in main()
1243 assert(std::regex_match(s, m, std::wregex(L"A[^[:lower:]0-9]B", in main()
1245 assert(m.size() == 1); in main()
1246 assert(!m.prefix().matched); in main()
1247 assert(m.prefix().first == s); in main()
1248 assert(m.prefix().second == m[0].first); in main()
1249 assert(!m.suffix().matched); in main()
1250 assert(m.suffix().first == m[0].second); in main()
1251 assert(m.suffix().second == m[0].second); in main()
1252assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1253 assert(m.position(0) == 0); in main()
1254 assert(m.str(0) == s); in main()
1259 assert(std::regex_match(s, m, std::wregex(L"[a[.hyphen.]z]", in main()
1261 assert(m.size() == 1); in main()
1262 assert(!m.prefix().matched); in main()
1263 assert(m.prefix().first == s); in main()
1264 assert(m.prefix().second == m[0].first); in main()
1265 assert(!m.suffix().matched); in main()
1266 assert(m.suffix().first == m[0].second); in main()
1267 assert(m.suffix().second == m[0].second); in main()
1268assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1269 assert(m.position(0) == 0); in main()
1270 assert(m.str(0) == s); in main()
1275 assert(std::regex_match(s, m, std::wregex(L"[a[.hyphen.]z]", in main()
1277 assert(m.size() == 1); in main()
1278 assert(!m.prefix().matched); in main()
1279 assert(m.prefix().first == s); in main()
1280 assert(m.prefix().second == m[0].first); in main()
1281 assert(!m.suffix().matched); in main()
1282 assert(m.suffix().first == m[0].second); in main()
1283 assert(m.suffix().second == m[0].second); in main()
1284assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1285 assert(m.position(0) == 0); in main()
1286 assert(m.str(0) == s); in main()
1291 assert(!std::regex_match(s, m, std::wregex(L"[a[.hyphen.]z]", in main()
1293 assert(m.size() == 0); in main()
1299 assert(std::regex_match(s, m, std::wregex(L"[a[=M=]z]", in main()
1301 assert(m.size() == 1); in main()
1302 assert(!m.prefix().matched); in main()
1303 assert(m.prefix().first == s); in main()
1304 assert(m.prefix().second == m[0].first); in main()
1305 assert(!m.suffix().matched); in main()
1306 assert(m.suffix().first == m[0].second); in main()
1307 assert(m.suffix().second == m[0].second); in main()
1308assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1309 assert(m.position(0) == 0); in main()
1310 assert(m.str(0) == s); in main()
1315 assert(std::regex_match(s, m, std::wregex(L"[a[.ch.]z]", in main()
1317 assert(m.size() == 1); in main()
1318 assert(!m.prefix().matched); in main()
1319 assert(m.prefix().first == s); in main()
1320 assert(m.prefix().second == m[0].first); in main()
1321 assert(!m.suffix().matched); in main()
1322 assert(m.suffix().first == m[0].second); in main()
1323 assert(m.suffix().second == m[0].second); in main()
1324assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1325 assert(m.position(0) == 0); in main()
1326 assert(m.str(0) == s); in main()
1332 assert(!std::regex_match(s, m, std::wregex(L"[a[=M=]z]", in main()
1334 assert(m.size() == 0); in main()
1339 assert(!std::regex_match(s, m, std::wregex(L"[ace1-9]*", in main()
1341 assert(m.size() == 0); in main()
1346 assert(!std::regex_match(s, m, std::wregex(L"[ace1-9]\\{1,\\}", in main()
1348 assert(m.size() == 0); in main()
1359 assert(std::regex_match(BI(s), BI(s+ss), m, regex)); in main()
1360 assert(m.size() == 1); in main()
1361 assert(!m.prefix().matched); in main()
1362 assert(m.prefix().first == BI(s)); in main()
1363 assert(m.prefix().second == m[0].first); in main()
1364 assert(!m.suffix().matched); in main()
1365 assert(m.suffix().first == m[0].second); in main()
1366 assert(m.suffix().second == m[0].second); in main()
1367 assert(m.length(0) == 4); in main()
1368 assert(m.position(0) == 0); in main()
1369 assert(m.str(0) == s); in main()