• Home
  • Raw
  • Download

Lines Matching refs:m

37         std::cmatch m;  in main()  local
38 assert(!std::regex_search("a", m, std::regex())); in main()
39 assert(m.size() == 0); in main()
40 assert(m.empty()); in main()
43 std::cmatch m; in main() local
45 assert(std::regex_search(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()
59 std::cmatch m; in main() local
61 assert(std::regex_search(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()
74 std::cmatch m; in main() local
76 assert(!std::regex_search(s, m, std::regex("ba", std::regex_constants::basic))); in main()
77 assert(m.size() == 0); in main()
78 assert(m.empty()); in main()
81 std::cmatch m; in main() local
83 assert(std::regex_search(s, m, std::regex("ab", std::regex_constants::basic))); in main()
84 assert(m.size() == 1); in main()
85 assert(m.prefix().matched); in main()
86 assert(m.prefix().first == s); in main()
87 assert(m.prefix().second == m[0].first); in main()
88 assert(!m.suffix().matched); in main()
89 assert(m.suffix().first == m[0].second); in main()
90 assert(m.suffix().second == s+3); in main()
91 assert(m.length(0) == 2); in main()
92 assert(m.position(0) == 1); in main()
93 assert(m.str(0) == "ab"); in main()
96 std::cmatch m; in main() local
98 assert(!std::regex_search(s, m, std::regex("ab", std::regex_constants::basic), in main()
100 assert(m.size() == 0); in main()
103 std::cmatch m; in main() local
105 assert(std::regex_search(s, m, std::regex("bc", std::regex_constants::basic))); in main()
106 assert(m.size() == 1); in main()
107 assert(m.prefix().matched); in main()
108 assert(m.prefix().first == s); in main()
109 assert(m.prefix().second == m[0].first); in main()
110 assert(m.suffix().matched); in main()
111 assert(m.suffix().first == m[0].second); in main()
112 assert(m.suffix().second == s+4); in main()
113 assert(m.length(0) == 2); in main()
114 assert(m.position(0) == 1); in main()
115 assert(m.str(0) == "bc"); in main()
118 std::cmatch m; in main() local
120 assert(std::regex_search(s, m, std::regex("ab*c", std::regex_constants::basic))); in main()
121 assert(m.size() == 1); in main()
122 assert(!m.prefix().matched); in main()
123 assert(m.prefix().first == s); in main()
124 assert(m.prefix().second == m[0].first); in main()
125 assert(!m.suffix().matched); in main()
126 assert(m.suffix().first == m[0].second); in main()
127 assert(m.suffix().second == s+4); in main()
128 assert(m.length(0) == 4); in main()
129 assert(m.position(0) == 0); in main()
130 assert(m.str(0) == s); in main()
133 std::cmatch m; in main() local
135 assert(std::regex_search(s, m, std::regex("\\(ab\\)*c", std::regex_constants::basic))); in main()
136 assert(m.size() == 2); in main()
137 assert(!m.prefix().matched); in main()
138 assert(m.prefix().first == s); in main()
139 assert(m.prefix().second == m[0].first); in main()
140 assert(!m.suffix().matched); in main()
141 assert(m.suffix().first == m[0].second); in main()
142 assert(m.suffix().second == s+5); in main()
143 assert(m.length(0) == 5); in main()
144 assert(m.position(0) == 0); in main()
145 assert(m.str(0) == s); in main()
146 assert(m.length(1) == 2); in main()
147 assert(m.position(1) == 2); in main()
148 assert(m.str(1) == "ab"); in main()
151 std::cmatch m; in main() local
153 assert(std::regex_search(s, m, std::regex("cd\\(\\(e\\)fg\\)hi", in main()
155 assert(m.size() == 3); in main()
156 assert(m.prefix().matched); in main()
157 assert(m.prefix().first == s); in main()
158 assert(m.prefix().second == m[0].first); in main()
159 assert(m.suffix().matched); in main()
160 assert(m.suffix().first == m[0].second); in main()
161 assert(m.suffix().second == s+std::regex_traits<char>::length(s)); in main()
162 assert(m.length(0) == 7); in main()
163 assert(m.position(0) == 2); in main()
164 assert(m.str(0) == "cdefghi"); in main()
165 assert(m.length(1) == 3); in main()
166 assert(m.position(1) == 4); in main()
167 assert(m.str(1) == "efg"); in main()
168 assert(m.length(2) == 1); in main()
169 assert(m.position(2) == 4); in main()
170 assert(m.str(2) == "e"); in main()
173 std::cmatch m; in main() local
175 assert(std::regex_search(s, m, std::regex("^abc", std::regex_constants::basic))); in main()
176 assert(m.size() == 1); in main()
177 assert(!m.prefix().matched); in main()
178 assert(m.prefix().first == s); in main()
179 assert(m.prefix().second == m[0].first); in main()
180 assert(!m.suffix().matched); in main()
181 assert(m.suffix().first == m[0].second); in main()
182 assert(m.suffix().second == s+3); in main()
183 assert(m.length(0) == 3); in main()
184 assert(m.position(0) == 0); in main()
185 assert(m.str(0) == s); in main()
188 std::cmatch m; in main() local
190 assert(std::regex_search(s, m, std::regex("^abc", std::regex_constants::basic))); in main()
191 assert(m.size() == 1); in main()
192 assert(!m.prefix().matched); in main()
193 assert(m.prefix().first == s); in main()
194 assert(m.prefix().second == m[0].first); in main()
195 assert(m.suffix().matched); in main()
196 assert(m.suffix().first == m[0].second); in main()
197 assert(m.suffix().second == s+4); in main()
198 assert(m.length(0) == 3); in main()
199 assert(m.position(0) == 0); in main()
200 assert(m.str(0) == "abc"); in main()
203 std::cmatch m; in main() local
205 assert(!std::regex_search(s, m, std::regex("^abc", std::regex_constants::basic))); in main()
206 assert(m.size() == 0); in main()
209 std::cmatch m; in main() local
211 assert(std::regex_search(s, m, std::regex("abc$", 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()
224 std::cmatch m; in main() local
226 assert(std::regex_search(s, m, std::regex("abc$", 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+5); in main()
234 assert(m.length(0) == 3); in main()
235 assert(m.position(0) == 2); in main()
236 assert(m.str(0) == s+2); in main()
239 std::cmatch m; in main() local
241 assert(!std::regex_search(s, m, std::regex("abc$", std::regex_constants::basic))); in main()
242 assert(m.size() == 0); in main()
245 std::cmatch m; in main() local
247 assert(std::regex_search(s, m, std::regex("a.c", std::regex_constants::basic))); in main()
248 assert(m.size() == 1); in main()
249 assert(!m.prefix().matched); in main()
250 assert(m.prefix().first == s); in main()
251 assert(m.prefix().second == m[0].first); in main()
252 assert(!m.suffix().matched); in main()
253 assert(m.suffix().first == m[0].second); in main()
254 assert(m.suffix().second == s+3); in main()
255 assert(m.length(0) == 3); in main()
256 assert(m.position(0) == 0); in main()
257 assert(m.str(0) == s); in main()
260 std::cmatch m; in main() local
262 assert(std::regex_search(s, m, std::regex("a.c", std::regex_constants::basic))); in main()
263 assert(m.size() == 1); in main()
264 assert(!m.prefix().matched); in main()
265 assert(m.prefix().first == s); in main()
266 assert(m.prefix().second == m[0].first); in main()
267 assert(!m.suffix().matched); in main()
268 assert(m.suffix().first == m[0].second); in main()
269 assert(m.suffix().second == s+3); in main()
270 assert(m.length(0) == 3); in main()
271 assert(m.position(0) == 0); in main()
272 assert(m.str(0) == s); in main()
275 std::cmatch m; in main() local
277 assert(std::regex_search(s, m, std::regex("a.c", std::regex_constants::basic))); in main()
278 assert(m.size() == 1); in main()
279 assert(!m.prefix().matched); in main()
280 assert(m.prefix().first == s); in main()
281 assert(m.prefix().second == m[0].first); in main()
282 assert(!m.suffix().matched); in main()
283 assert(m.suffix().first == m[0].second); in main()
284 assert(m.suffix().second == s+3); in main()
285 assert(m.length(0) == 3); in main()
286 assert(m.position(0) == 0); in main()
287 assert(m.str(0) == s); in main()
290 std::cmatch m; in main() local
292 assert(std::regex_search(s, m, std::regex("\\(.*\\).*", std::regex_constants::basic))); in main()
293 assert(m.size() == 2); in main()
294 assert(!m.prefix().matched); in main()
295 assert(m.prefix().first == s); in main()
296 assert(m.prefix().second == m[0].first); in main()
297 assert(!m.suffix().matched); in main()
298 assert(m.suffix().first == m[0].second); in main()
299 assert(m.suffix().second == s+6); in main()
300 assert(m.length(0) == 6); in main()
301 assert(m.position(0) == 0); in main()
302 assert(m.str(0) == s); in main()
303 assert(m.length(1) == 6); in main()
304 assert(m.position(1) == 0); in main()
305 assert(m.str(1) == s); in main()
308 std::cmatch m; in main() local
310 assert(std::regex_search(s, m, std::regex("\\(a*\\)*", std::regex_constants::basic))); in main()
311 assert(m.size() == 2); in main()
312 assert(!m.prefix().matched); in main()
313 assert(m.prefix().first == s); in main()
314 assert(m.prefix().second == m[0].first); in main()
315 assert(m.suffix().matched); in main()
316 assert(m.suffix().first == m[0].second); in main()
317 assert(m.suffix().second == s+2); in main()
318 assert(m.length(0) == 0); in main()
319 assert(m.position(0) == 0); in main()
320 assert(m.str(0) == ""); in main()
321 assert(m.length(1) == 0); in main()
322 assert(m.position(1) == 0); in main()
323 assert(m.str(1) == ""); in main()
326 std::cmatch m; in main() local
328 assert(!std::regex_search(s, m, std::regex("ab\\{3,5\\}c", std::regex_constants::basic))); in main()
329 assert(m.size() == 0); in main()
332 std::cmatch m; in main() local
334 assert(std::regex_search(s, m, std::regex("ab\\{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()
347 std::cmatch m; in main() local
349 assert(std::regex_search(s, m, std::regex("ab\\{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()
362 std::cmatch m; in main() local
364 assert(std::regex_search(s, m, std::regex("ab\\{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()
377 std::cmatch m; in main() local
379 assert(!std::regex_search(s, m, std::regex("ab\\{3,5\\}c", std::regex_constants::basic))); in main()
380 assert(m.size() == 0); in main()
383 std::cmatch m; in main() local
385 assert(!std::regex_search(s, m, std::regex("ab\\{3,5\\}c", std::regex_constants::basic))); in main()
386 assert(m.size() == 0); in main()
389 std::cmatch m; in main() local
391 assert(!std::regex_search(s, m, std::regex("a.\\{3,5\\}c", std::regex_constants::basic))); in main()
392 assert(m.size() == 0); in main()
395 std::cmatch m; in main() local
397 assert(std::regex_search(s, m, std::regex("a.\\{3,5\\}c", std::regex_constants::basic))); in main()
398 assert(m.size() == 1); in main()
399 assert(!m.prefix().matched); in main()
400 assert(m.prefix().first == s); in main()
401 assert(m.prefix().second == m[0].first); in main()
402 assert(!m.suffix().matched); in main()
403 assert(m.suffix().first == m[0].second); in main()
404 assert(m.suffix().second == m[0].second); in main()
405 assert(m.length(0) == sizeof(s)-1); in main()
406 assert(m.position(0) == 0); in main()
407 assert(m.str(0) == s); in main()
410 std::cmatch m; in main() local
412 assert(std::regex_search(s, m, std::regex("a.\\{3,5\\}c", std::regex_constants::basic))); in main()
413 assert(m.size() == 1); in main()
414 assert(!m.prefix().matched); in main()
415 assert(m.prefix().first == s); in main()
416 assert(m.prefix().second == m[0].first); in main()
417 assert(!m.suffix().matched); in main()
418 assert(m.suffix().first == m[0].second); in main()
419 assert(m.suffix().second == m[0].second); in main()
420 assert(m.length(0) == sizeof(s)-1); in main()
421 assert(m.position(0) == 0); in main()
422 assert(m.str(0) == s); in main()
425 std::cmatch m; in main() local
427 assert(std::regex_search(s, m, std::regex("a.\\{3,5\\}c", std::regex_constants::basic))); in main()
428 assert(m.size() == 1); in main()
429 assert(!m.prefix().matched); in main()
430 assert(m.prefix().first == s); in main()
431 assert(m.prefix().second == m[0].first); in main()
432 assert(!m.suffix().matched); in main()
433 assert(m.suffix().first == m[0].second); in main()
434 assert(m.suffix().second == m[0].second); in main()
435 assert(m.length(0) == sizeof(s)-1); in main()
436 assert(m.position(0) == 0); in main()
437 assert(m.str(0) == s); in main()
440 std::cmatch m; in main() local
442 assert(!std::regex_search(s, m, std::regex("a.\\{3,5\\}c", std::regex_constants::basic))); in main()
443 assert(m.size() == 0); in main()
446 std::cmatch m; in main() local
448 assert(std::regex_search(s, m, std::regex("-\\(.*\\),\\1-", std::regex_constants::basic))); in main()
449 assert(m.size() == 2); in main()
450 assert(!m.prefix().matched); in main()
451 assert(m.prefix().first == s); in main()
452 assert(m.prefix().second == m[0].first); in main()
453 assert(!m.suffix().matched); in main()
454 assert(m.suffix().first == m[0].second); in main()
455 assert(m.suffix().second == m[0].second); in main()
456 … assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
457 assert(m.position(0) == 0); in main()
458 assert(m.str(0) == s); in main()
459 assert(m.length(1) == 2); in main()
460 assert(m.position(1) == 1); in main()
461 assert(m.str(1) == "ab"); in main()
464 std::cmatch m; in main() local
466 assert(std::regex_search(s, m, std::regex("^\\(ab*\\)*\\1$", std::regex_constants::basic))); in main()
467 assert(m.size() == 2); 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) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
475 assert(m.position(0) == 0); in main()
476 assert(m.str(0) == s); in main()
477 assert(m.length(1) == 3); in main()
478 assert(m.position(1) == 2); in main()
479 assert(m.str(1) == "abb"); in main()
482 std::cmatch m; in main() local
484 … assert(!std::regex_search(s, m, std::regex("^\\(ab*\\)*\\1$", std::regex_constants::basic))); in main()
485 assert(m.size() == 0); in main()
488 std::cmatch m; in main() local
490 assert(std::regex_search(s, m, std::regex("^\\(Ab*\\)*\\1$", in main()
492 assert(m.size() == 2); in main()
493 assert(!m.prefix().matched); in main()
494 assert(m.prefix().first == s); in main()
495 assert(m.prefix().second == m[0].first); in main()
496 assert(!m.suffix().matched); in main()
497 assert(m.suffix().first == m[0].second); in main()
498 assert(m.suffix().second == m[0].second); in main()
499 … assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
500 assert(m.position(0) == 0); in main()
501 assert(m.str(0) == s); in main()
502 assert(m.length(1) == 3); in main()
503 assert(m.position(1) == 2); in main()
504 assert(m.str(1) == "Abb"); in main()
507 std::cmatch m; in main() local
509 assert(!std::regex_search(s, m, std::regex("^\\(Ab*\\)*\\1$", in main()
511 assert(m.size() == 0); in main()
514 std::cmatch m; in main() local
516 assert(std::regex_search(s, m, std::regex("^[a]$", in main()
518 assert(m.size() == 1); in main()
519 assert(!m.prefix().matched); in main()
520 assert(m.prefix().first == s); in main()
521 assert(m.prefix().second == m[0].first); in main()
522 assert(!m.suffix().matched); in main()
523 assert(m.suffix().first == m[0].second); in main()
524 assert(m.suffix().second == m[0].second); in main()
525 assert(m.length(0) == 1); in main()
526 assert(m.position(0) == 0); in main()
527 assert(m.str(0) == "a"); in main()
530 std::cmatch m; in main() local
532 assert(std::regex_search(s, m, std::regex("^[ab]$", in main()
534 assert(m.size() == 1); in main()
535 assert(!m.prefix().matched); in main()
536 assert(m.prefix().first == s); in main()
537 assert(m.prefix().second == m[0].first); in main()
538 assert(!m.suffix().matched); in main()
539 assert(m.suffix().first == m[0].second); in main()
540 assert(m.suffix().second == m[0].second); in main()
541 assert(m.length(0) == 1); in main()
542 assert(m.position(0) == 0); in main()
543 assert(m.str(0) == "a"); in main()
546 std::cmatch m; in main() local
548 assert(std::regex_search(s, m, std::regex("^[a-f]$", in main()
550 assert(m.size() == 1); in main()
551 assert(!m.prefix().matched); in main()
552 assert(m.prefix().first == s); in main()
553 assert(m.prefix().second == m[0].first); in main()
554 assert(!m.suffix().matched); in main()
555 assert(m.suffix().first == m[0].second); in main()
556 assert(m.suffix().second == m[0].second); in main()
557 assert(m.length(0) == 1); in main()
558 assert(m.position(0) == 0); in main()
559 assert(m.str(0) == s); in main()
562 std::cmatch m; in main() local
564 assert(!std::regex_search(s, m, std::regex("^[a-f]$", in main()
566 assert(m.size() == 0); in main()
569 std::cmatch m; in main() local
571 assert(std::regex_search(s, m, std::regex("q[^u]", 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) == 2); in main()
581 assert(m.position(0) == 3); in main()
582 assert(m.str(0) == "qi"); in main()
585 std::cmatch m; in main() local
587 assert(!std::regex_search(s, m, std::regex("q[^u]", in main()
589 assert(m.size() == 0); in main()
592 std::cmatch m; in main() local
594 assert(std::regex_search(s, m, std::regex("A[[:lower:]]B", in main()
596 assert(m.size() == 1); in main()
597 assert(!m.prefix().matched); in main()
598 assert(m.prefix().first == s); in main()
599 assert(m.prefix().second == m[0].first); in main()
600 assert(!m.suffix().matched); in main()
601 assert(m.suffix().first == m[0].second); in main()
602 assert(m.suffix().second == m[0].second); in main()
603 … assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
604 assert(m.position(0) == 0); in main()
605 assert(m.str(0) == s); in main()
608 std::cmatch m; in main() local
610 assert(!std::regex_search(s, m, std::regex("A[[:lower:]]B", in main()
612 assert(m.size() == 0); in main()
615 std::cmatch m; in main() local
617 assert(std::regex_search(s, m, std::regex("A[^[:lower:]]B", in main()
619 assert(m.size() == 1); in main()
620 assert(!m.prefix().matched); in main()
621 assert(m.prefix().first == s); in main()
622 assert(m.prefix().second == m[0].first); in main()
623 assert(!m.suffix().matched); in main()
624 assert(m.suffix().first == m[0].second); in main()
625 assert(m.suffix().second == m[0].second); in main()
626 … assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
627 assert(m.position(0) == 0); in main()
628 assert(m.str(0) == s); in main()
631 std::cmatch m; in main() local
633 assert(!std::regex_search(s, m, std::regex("A[^[:lower:]]B", in main()
635 assert(m.size() == 0); in main()
638 std::cmatch m; in main() local
640 assert(!std::regex_search(s, m, std::regex("A[^[:lower:]0-9]B", in main()
642 assert(m.size() == 0); in main()
645 std::cmatch m; in main() local
647 assert(std::regex_search(s, m, std::regex("A[^[:lower:]0-9]B", 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()
656 … assert(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()
661 std::cmatch m; in main() local
663 assert(std::regex_search(s, m, std::regex("[a[.hyphen.]z]", in main()
665 assert(m.size() == 1); in main()
666 assert(!m.prefix().matched); in main()
667 assert(m.prefix().first == s); in main()
668 assert(m.prefix().second == m[0].first); in main()
669 assert(!m.suffix().matched); in main()
670 assert(m.suffix().first == m[0].second); in main()
671 assert(m.suffix().second == m[0].second); in main()
672 … assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
673 assert(m.position(0) == 0); in main()
674 assert(m.str(0) == s); in main()
677 std::cmatch m; in main() local
679 assert(std::regex_search(s, m, std::regex("[a[.hyphen.]z]", in main()
681 assert(m.size() == 1); in main()
682 assert(!m.prefix().matched); in main()
683 assert(m.prefix().first == s); in main()
684 assert(m.prefix().second == m[0].first); in main()
685 assert(!m.suffix().matched); in main()
686 assert(m.suffix().first == m[0].second); in main()
687 assert(m.suffix().second == m[0].second); in main()
688 … assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
689 assert(m.position(0) == 0); in main()
690 assert(m.str(0) == s); in main()
693 std::cmatch m; in main() local
695 assert(!std::regex_search(s, m, std::regex("[a[.hyphen.]z]", in main()
697 assert(m.size() == 0); in main()
701 std::cmatch m; in main() local
703 assert(std::regex_search(s, m, std::regex("[a[=M=]z]", in main()
705 assert(m.size() == 1); in main()
706 assert(!m.prefix().matched); in main()
707 assert(m.prefix().first == s); in main()
708 assert(m.prefix().second == m[0].first); in main()
709 assert(!m.suffix().matched); in main()
710 assert(m.suffix().first == m[0].second); in main()
711 assert(m.suffix().second == m[0].second); in main()
712 … assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
713 assert(m.position(0) == 0); in main()
714 assert(m.str(0) == s); in main()
717 std::cmatch m; in main() local
719 assert(std::regex_search(s, m, std::regex("[a[.ch.]z]", in main()
721 assert(m.size() == 1); in main()
722 assert(!m.prefix().matched); in main()
723 assert(m.prefix().first == s); in main()
724 assert(m.prefix().second == m[0].first); in main()
725 assert(!m.suffix().matched); in main()
726 assert(m.suffix().first == m[0].second); in main()
727 assert(m.suffix().second == m[0].second); in main()
728 … assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
729 assert(m.position(0) == 0); in main()
730 assert(m.str(0) == s); in main()
734 std::cmatch m; in main() local
736 assert(!std::regex_search(s, m, std::regex("[a[=M=]z]", in main()
738 assert(m.size() == 0); in main()
741 std::cmatch m; in main() local
743 assert(std::regex_search(s, m, std::regex("[ace1-9]*", in main()
745 assert(m.size() == 1); in main()
746 assert(!m.prefix().matched); in main()
747 assert(m.prefix().first == s); in main()
748 assert(m.prefix().second == m[0].first); in main()
749 assert(m.suffix().matched); in main()
750 assert(m.suffix().first == m[0].second); in main()
751 assert(m.suffix().second == s + std::char_traits<char>::length(s)); in main()
752 assert(m.length(0) == 0); in main()
753 assert(m.position(0) == 0); in main()
754 assert(m.str(0) == ""); in main()
757 std::cmatch m; in main() local
759 assert(std::regex_search(s, m, std::regex("[ace1-9]\\{1,\\}", in main()
761 assert(m.size() == 1); in main()
762 assert(m.prefix().matched); in main()
763 assert(m.prefix().first == s); in main()
764 assert(m.prefix().second == m[0].first); in main()
765 assert(m.suffix().matched); in main()
766 assert(m.suffix().first == m[0].second); in main()
767 assert(m.suffix().second == s + std::char_traits<char>::length(s)); in main()
768 assert(m.length(0) == 6); in main()
769 assert(m.position(0) == 1); in main()
770 assert(m.str(0) == "1a45ce"); in main()
778 std::match_results<BI> m; in main() local
781 assert(std::regex_search(BI(s), BI(s+ss), m, regex)); in main()
782 assert(m.size() == 1); in main()
783 assert(!m.prefix().matched); in main()
784 assert(m.prefix().first == BI(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 == m[0].second); in main()
789 assert(m.length(0) == 4); in main()
790 assert(m.position(0) == 0); in main()
791 assert(m.str(0) == s); in main()
795 std::wcmatch m; in main() local
796 assert(!std::regex_search(L"a", m, std::wregex())); in main()
797 assert(m.size() == 0); in main()
798 assert(m.empty()); in main()
801 std::wcmatch m; in main() local
803 assert(std::regex_search(s, m, std::wregex(L"a", std::regex_constants::basic))); in main()
804 assert(m.size() == 1); in main()
805 assert(!m.empty()); in main()
806 assert(!m.prefix().matched); in main()
807 assert(m.prefix().first == s); in main()
808 assert(m.prefix().second == m[0].first); in main()
809 assert(!m.suffix().matched); in main()
810 assert(m.suffix().first == m[0].second); in main()
811 assert(m.suffix().second == s+1); in main()
812 assert(m.length(0) == 1); in main()
813 assert(m.position(0) == 0); in main()
814 assert(m.str(0) == L"a"); in main()
817 std::wcmatch m; in main() local
819 assert(std::regex_search(s, m, std::wregex(L"ab", std::regex_constants::basic))); in main()
820 assert(m.size() == 1); in main()
821 assert(!m.prefix().matched); in main()
822 assert(m.prefix().first == s); in main()
823 assert(m.prefix().second == m[0].first); in main()
824 assert(!m.suffix().matched); in main()
825 assert(m.suffix().first == m[0].second); in main()
826 assert(m.suffix().second == s+2); in main()
827 assert(m.length(0) == 2); in main()
828 assert(m.position(0) == 0); in main()
829 assert(m.str(0) == L"ab"); in main()
832 std::wcmatch m; in main() local
834 assert(!std::regex_search(s, m, std::wregex(L"ba", std::regex_constants::basic))); in main()
835 assert(m.size() == 0); in main()
836 assert(m.empty()); in main()
839 std::wcmatch m; in main() local
841 assert(std::regex_search(s, m, std::wregex(L"ab", std::regex_constants::basic))); in main()
842 assert(m.size() == 1); in main()
843 assert(m.prefix().matched); in main()
844 assert(m.prefix().first == s); in main()
845 assert(m.prefix().second == m[0].first); in main()
846 assert(!m.suffix().matched); in main()
847 assert(m.suffix().first == m[0].second); in main()
848 assert(m.suffix().second == s+3); in main()
849 assert(m.length(0) == 2); in main()
850 assert(m.position(0) == 1); in main()
851 assert(m.str(0) == L"ab"); in main()
854 std::wcmatch m; in main() local
856 assert(!std::regex_search(s, m, std::wregex(L"ab", std::regex_constants::basic), in main()
858 assert(m.size() == 0); in main()
861 std::wcmatch m; in main() local
863 assert(std::regex_search(s, m, std::wregex(L"bc", std::regex_constants::basic))); in main()
864 assert(m.size() == 1); in main()
865 assert(m.prefix().matched); in main()
866 assert(m.prefix().first == s); in main()
867 assert(m.prefix().second == m[0].first); in main()
868 assert(m.suffix().matched); in main()
869 assert(m.suffix().first == m[0].second); in main()
870 assert(m.suffix().second == s+4); in main()
871 assert(m.length(0) == 2); in main()
872 assert(m.position(0) == 1); in main()
873 assert(m.str(0) == L"bc"); in main()
876 std::wcmatch m; in main() local
878 assert(std::regex_search(s, m, std::wregex(L"ab*c", std::regex_constants::basic))); in main()
879 assert(m.size() == 1); in main()
880 assert(!m.prefix().matched); in main()
881 assert(m.prefix().first == s); in main()
882 assert(m.prefix().second == m[0].first); in main()
883 assert(!m.suffix().matched); in main()
884 assert(m.suffix().first == m[0].second); in main()
885 assert(m.suffix().second == s+4); in main()
886 assert(m.length(0) == 4); in main()
887 assert(m.position(0) == 0); in main()
888 assert(m.str(0) == s); in main()
891 std::wcmatch m; in main() local
893 assert(std::regex_search(s, m, std::wregex(L"\\(ab\\)*c", std::regex_constants::basic))); in main()
894 assert(m.size() == 2); in main()
895 assert(!m.prefix().matched); in main()
896 assert(m.prefix().first == s); in main()
897 assert(m.prefix().second == m[0].first); in main()
898 assert(!m.suffix().matched); in main()
899 assert(m.suffix().first == m[0].second); in main()
900 assert(m.suffix().second == s+5); in main()
901 assert(m.length(0) == 5); in main()
902 assert(m.position(0) == 0); in main()
903 assert(m.str(0) == s); in main()
904 assert(m.length(1) == 2); in main()
905 assert(m.position(1) == 2); in main()
906 assert(m.str(1) == L"ab"); in main()
909 std::wcmatch m; in main() local
911 assert(std::regex_search(s, m, std::wregex(L"cd\\(\\(e\\)fg\\)hi", in main()
913 assert(m.size() == 3); in main()
914 assert(m.prefix().matched); in main()
915 assert(m.prefix().first == s); in main()
916 assert(m.prefix().second == m[0].first); in main()
917 assert(m.suffix().matched); in main()
918 assert(m.suffix().first == m[0].second); in main()
919 assert(m.suffix().second == s+std::regex_traits<wchar_t>::length(s)); in main()
920 assert(m.length(0) == 7); in main()
921 assert(m.position(0) == 2); in main()
922 assert(m.str(0) == L"cdefghi"); in main()
923 assert(m.length(1) == 3); in main()
924 assert(m.position(1) == 4); in main()
925 assert(m.str(1) == L"efg"); in main()
926 assert(m.length(2) == 1); in main()
927 assert(m.position(2) == 4); in main()
928 assert(m.str(2) == L"e"); in main()
931 std::wcmatch m; in main() local
933 assert(std::regex_search(s, m, std::wregex(L"^abc", std::regex_constants::basic))); in main()
934 assert(m.size() == 1); in main()
935 assert(!m.prefix().matched); in main()
936 assert(m.prefix().first == s); in main()
937 assert(m.prefix().second == m[0].first); in main()
938 assert(!m.suffix().matched); in main()
939 assert(m.suffix().first == m[0].second); in main()
940 assert(m.suffix().second == s+3); in main()
941 assert(m.length(0) == 3); in main()
942 assert(m.position(0) == 0); in main()
943 assert(m.str(0) == s); in main()
946 std::wcmatch m; in main() local
948 assert(std::regex_search(s, m, std::wregex(L"^abc", std::regex_constants::basic))); in main()
949 assert(m.size() == 1); in main()
950 assert(!m.prefix().matched); in main()
951 assert(m.prefix().first == s); in main()
952 assert(m.prefix().second == m[0].first); in main()
953 assert(m.suffix().matched); in main()
954 assert(m.suffix().first == m[0].second); in main()
955 assert(m.suffix().second == s+4); in main()
956 assert(m.length(0) == 3); in main()
957 assert(m.position(0) == 0); in main()
958 assert(m.str(0) == L"abc"); in main()
961 std::wcmatch m; in main() local
963 assert(!std::regex_search(s, m, std::wregex(L"^abc", std::regex_constants::basic))); in main()
964 assert(m.size() == 0); in main()
967 std::wcmatch m; in main() local
969 assert(std::regex_search(s, m, std::wregex(L"abc$", 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 == s+3); in main()
977 assert(m.length(0) == 3); in main()
978 assert(m.position(0) == 0); in main()
979 assert(m.str(0) == s); in main()
982 std::wcmatch m; in main() local
984 assert(std::regex_search(s, m, std::wregex(L"abc$", std::regex_constants::basic))); in main()
985 assert(m.size() == 1); in main()
986 assert(m.prefix().matched); in main()
987 assert(m.prefix().first == s); in main()
988 assert(m.prefix().second == m[0].first); in main()
989 assert(!m.suffix().matched); in main()
990 assert(m.suffix().first == m[0].second); in main()
991 assert(m.suffix().second == s+5); in main()
992 assert(m.length(0) == 3); in main()
993 assert(m.position(0) == 2); in main()
994 assert(m.str(0) == s+2); in main()
997 std::wcmatch m; in main() local
999 assert(!std::regex_search(s, m, std::wregex(L"abc$", std::regex_constants::basic))); in main()
1000 assert(m.size() == 0); in main()
1003 std::wcmatch m; in main() local
1005 assert(std::regex_search(s, m, std::wregex(L"a.c", std::regex_constants::basic))); in main()
1006 assert(m.size() == 1); in main()
1007 assert(!m.prefix().matched); in main()
1008 assert(m.prefix().first == s); in main()
1009 assert(m.prefix().second == m[0].first); in main()
1010 assert(!m.suffix().matched); in main()
1011 assert(m.suffix().first == m[0].second); in main()
1012 assert(m.suffix().second == s+3); in main()
1013 assert(m.length(0) == 3); in main()
1014 assert(m.position(0) == 0); in main()
1015 assert(m.str(0) == s); in main()
1018 std::wcmatch m; in main() local
1020 assert(std::regex_search(s, m, std::wregex(L"a.c", std::regex_constants::basic))); in main()
1021 assert(m.size() == 1); in main()
1022 assert(!m.prefix().matched); in main()
1023 assert(m.prefix().first == s); in main()
1024 assert(m.prefix().second == m[0].first); in main()
1025 assert(!m.suffix().matched); in main()
1026 assert(m.suffix().first == m[0].second); in main()
1027 assert(m.suffix().second == s+3); in main()
1028 assert(m.length(0) == 3); in main()
1029 assert(m.position(0) == 0); in main()
1030 assert(m.str(0) == s); in main()
1033 std::wcmatch m; in main() local
1035 assert(std::regex_search(s, m, std::wregex(L"a.c", std::regex_constants::basic))); in main()
1036 assert(m.size() == 1); in main()
1037 assert(!m.prefix().matched); in main()
1038 assert(m.prefix().first == s); in main()
1039 assert(m.prefix().second == m[0].first); in main()
1040 assert(!m.suffix().matched); in main()
1041 assert(m.suffix().first == m[0].second); in main()
1042 assert(m.suffix().second == s+3); in main()
1043 assert(m.length(0) == 3); in main()
1044 assert(m.position(0) == 0); in main()
1045 assert(m.str(0) == s); in main()
1048 std::wcmatch m; in main() local
1050 assert(std::regex_search(s, m, std::wregex(L"\\(.*\\).*", std::regex_constants::basic))); in main()
1051 assert(m.size() == 2); in main()
1052 assert(!m.prefix().matched); in main()
1053 assert(m.prefix().first == s); in main()
1054 assert(m.prefix().second == m[0].first); in main()
1055 assert(!m.suffix().matched); in main()
1056 assert(m.suffix().first == m[0].second); in main()
1057 assert(m.suffix().second == s+6); in main()
1058 assert(m.length(0) == 6); in main()
1059 assert(m.position(0) == 0); in main()
1060 assert(m.str(0) == s); in main()
1061 assert(m.length(1) == 6); in main()
1062 assert(m.position(1) == 0); in main()
1063 assert(m.str(1) == s); in main()
1066 std::wcmatch m; in main() local
1068 assert(std::regex_search(s, m, std::wregex(L"\\(a*\\)*", std::regex_constants::basic))); in main()
1069 assert(m.size() == 2); in main()
1070 assert(!m.prefix().matched); in main()
1071 assert(m.prefix().first == s); in main()
1072 assert(m.prefix().second == m[0].first); in main()
1073 assert(m.suffix().matched); in main()
1074 assert(m.suffix().first == m[0].second); in main()
1075 assert(m.suffix().second == s+2); in main()
1076 assert(m.length(0) == 0); in main()
1077 assert(m.position(0) == 0); in main()
1078 assert(m.str(0) == L""); in main()
1079 assert(m.length(1) == 0); in main()
1080 assert(m.position(1) == 0); in main()
1081 assert(m.str(1) == L""); in main()
1084 std::wcmatch m; in main() local
1086 assert(!std::regex_search(s, m, std::wregex(L"ab\\{3,5\\}c", std::regex_constants::basic))); in main()
1087 assert(m.size() == 0); in main()
1090 std::wcmatch m; in main() local
1092 assert(std::regex_search(s, m, std::wregex(L"ab\\{3,5\\}c", std::regex_constants::basic))); in main()
1093 assert(m.size() == 1); 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) >= 0 && static_cast<size_t>(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()
1105 std::wcmatch m; in main() local
1107 assert(std::regex_search(s, m, std::wregex(L"ab\\{3,5\\}c", std::regex_constants::basic))); in main()
1108 assert(m.size() == 1); in main()
1109 assert(!m.prefix().matched); in main()
1110 assert(m.prefix().first == s); in main()
1111 assert(m.prefix().second == m[0].first); in main()
1112 assert(!m.suffix().matched); in main()
1113 assert(m.suffix().first == m[0].second); in main()
1114 assert(m.suffix().second == m[0].second); in main()
1115 …assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1116 assert(m.position(0) == 0); in main()
1117 assert(m.str(0) == s); in main()
1120 std::wcmatch m; in main() local
1122 assert(std::regex_search(s, m, std::wregex(L"ab\\{3,5\\}c", std::regex_constants::basic))); 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) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1131 assert(m.position(0) == 0); in main()
1132 assert(m.str(0) == s); in main()
1135 std::wcmatch m; in main() local
1137 assert(!std::regex_search(s, m, std::wregex(L"ab\\{3,5\\}c", std::regex_constants::basic))); in main()
1138 assert(m.size() == 0); in main()
1141 std::wcmatch m; in main() local
1143 assert(!std::regex_search(s, m, std::wregex(L"ab\\{3,5\\}c", std::regex_constants::basic))); in main()
1144 assert(m.size() == 0); in main()
1147 std::wcmatch m; in main() local
1149 assert(!std::regex_search(s, m, std::wregex(L"a.\\{3,5\\}c", std::regex_constants::basic))); in main()
1150 assert(m.size() == 0); in main()
1153 std::wcmatch m; in main() local
1155 assert(std::regex_search(s, m, std::wregex(L"a.\\{3,5\\}c", std::regex_constants::basic))); in main()
1156 assert(m.size() == 1); in main()
1157 assert(!m.prefix().matched); in main()
1158 assert(m.prefix().first == s); in main()
1159 assert(m.prefix().second == m[0].first); in main()
1160 assert(!m.suffix().matched); in main()
1161 assert(m.suffix().first == m[0].second); in main()
1162 assert(m.suffix().second == m[0].second); in main()
1163 …assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1164 assert(m.position(0) == 0); in main()
1165 assert(m.str(0) == s); in main()
1168 std::wcmatch m; in main() local
1170 assert(std::regex_search(s, m, std::wregex(L"a.\\{3,5\\}c", std::regex_constants::basic))); in main()
1171 assert(m.size() == 1); in main()
1172 assert(!m.prefix().matched); in main()
1173 assert(m.prefix().first == s); in main()
1174 assert(m.prefix().second == m[0].first); in main()
1175 assert(!m.suffix().matched); in main()
1176 assert(m.suffix().first == m[0].second); in main()
1177 assert(m.suffix().second == m[0].second); in main()
1178 …assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1179 assert(m.position(0) == 0); in main()
1180 assert(m.str(0) == s); in main()
1183 std::wcmatch m; in main() local
1185 assert(std::regex_search(s, m, std::wregex(L"a.\\{3,5\\}c", std::regex_constants::basic))); in main()
1186 assert(m.size() == 1); in main()
1187 assert(!m.prefix().matched); in main()
1188 assert(m.prefix().first == s); in main()
1189 assert(m.prefix().second == m[0].first); in main()
1190 assert(!m.suffix().matched); in main()
1191 assert(m.suffix().first == m[0].second); in main()
1192 assert(m.suffix().second == m[0].second); in main()
1193 …assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1194 assert(m.position(0) == 0); in main()
1195 assert(m.str(0) == s); in main()
1198 std::wcmatch m; in main() local
1200 assert(!std::regex_search(s, m, std::wregex(L"a.\\{3,5\\}c", std::regex_constants::basic))); in main()
1201 assert(m.size() == 0); in main()
1204 std::wcmatch m; in main() local
1206 … assert(std::regex_search(s, m, std::wregex(L"-\\(.*\\),\\1-", std::regex_constants::basic))); in main()
1207 assert(m.size() == 2); in main()
1208 assert(!m.prefix().matched); in main()
1209 assert(m.prefix().first == s); in main()
1210 assert(m.prefix().second == m[0].first); in main()
1211 assert(!m.suffix().matched); in main()
1212 assert(m.suffix().first == m[0].second); in main()
1213 assert(m.suffix().second == m[0].second); in main()
1214 …assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1215 assert(m.position(0) == 0); in main()
1216 assert(m.str(0) == s); in main()
1217 assert(m.length(1) == 2); in main()
1218 assert(m.position(1) == 1); in main()
1219 assert(m.str(1) == L"ab"); in main()
1222 std::wcmatch m; in main() local
1224 … assert(std::regex_search(s, m, std::wregex(L"^\\(ab*\\)*\\1$", std::regex_constants::basic))); in main()
1225 assert(m.size() == 2); in main()
1226 assert(!m.prefix().matched); in main()
1227 assert(m.prefix().first == s); in main()
1228 assert(m.prefix().second == m[0].first); in main()
1229 assert(!m.suffix().matched); in main()
1230 assert(m.suffix().first == m[0].second); in main()
1231 assert(m.suffix().second == m[0].second); in main()
1232 …assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1233 assert(m.position(0) == 0); in main()
1234 assert(m.str(0) == s); in main()
1235 assert(m.length(1) == 3); in main()
1236 assert(m.position(1) == 2); in main()
1237 assert(m.str(1) == L"abb"); in main()
1240 std::wcmatch m; in main() local
1242 … assert(!std::regex_search(s, m, std::wregex(L"^\\(ab*\\)*\\1$", std::regex_constants::basic))); in main()
1243 assert(m.size() == 0); in main()
1246 std::wcmatch m; in main() local
1248 assert(std::regex_search(s, m, std::wregex(L"^\\(Ab*\\)*\\1$", in main()
1250 assert(m.size() == 2); in main()
1251 assert(!m.prefix().matched); in main()
1252 assert(m.prefix().first == s); in main()
1253 assert(m.prefix().second == m[0].first); in main()
1254 assert(!m.suffix().matched); in main()
1255 assert(m.suffix().first == m[0].second); in main()
1256 assert(m.suffix().second == m[0].second); in main()
1257 …assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1258 assert(m.position(0) == 0); in main()
1259 assert(m.str(0) == s); in main()
1260 assert(m.length(1) == 3); in main()
1261 assert(m.position(1) == 2); in main()
1262 assert(m.str(1) == L"Abb"); in main()
1265 std::wcmatch m; in main() local
1267 assert(!std::regex_search(s, m, std::wregex(L"^\\(Ab*\\)*\\1$", in main()
1269 assert(m.size() == 0); in main()
1272 std::wcmatch m; in main() local
1274 assert(std::regex_search(s, m, std::wregex(L"^[a]$", in main()
1276 assert(m.size() == 1); in main()
1277 assert(!m.prefix().matched); in main()
1278 assert(m.prefix().first == s); in main()
1279 assert(m.prefix().second == m[0].first); in main()
1280 assert(!m.suffix().matched); in main()
1281 assert(m.suffix().first == m[0].second); in main()
1282 assert(m.suffix().second == m[0].second); in main()
1283 assert(m.length(0) == 1); in main()
1284 assert(m.position(0) == 0); in main()
1285 assert(m.str(0) == L"a"); in main()
1288 std::wcmatch m; in main() local
1290 assert(std::regex_search(s, m, std::wregex(L"^[ab]$", in main()
1292 assert(m.size() == 1); in main()
1293 assert(!m.prefix().matched); in main()
1294 assert(m.prefix().first == s); in main()
1295 assert(m.prefix().second == m[0].first); in main()
1296 assert(!m.suffix().matched); in main()
1297 assert(m.suffix().first == m[0].second); in main()
1298 assert(m.suffix().second == m[0].second); in main()
1299 assert(m.length(0) == 1); in main()
1300 assert(m.position(0) == 0); in main()
1301 assert(m.str(0) == L"a"); in main()
1304 std::wcmatch m; in main() local
1306 assert(std::regex_search(s, m, std::wregex(L"^[a-f]$", in main()
1308 assert(m.size() == 1); in main()
1309 assert(!m.prefix().matched); in main()
1310 assert(m.prefix().first == s); in main()
1311 assert(m.prefix().second == m[0].first); in main()
1312 assert(!m.suffix().matched); in main()
1313 assert(m.suffix().first == m[0].second); in main()
1314 assert(m.suffix().second == m[0].second); in main()
1315 assert(m.length(0) == 1); in main()
1316 assert(m.position(0) == 0); in main()
1317 assert(m.str(0) == s); in main()
1320 std::wcmatch m; in main() local
1322 assert(!std::regex_search(s, m, std::wregex(L"^[a-f]$", in main()
1324 assert(m.size() == 0); in main()
1327 std::wcmatch m; in main() local
1329 assert(std::regex_search(s, m, std::wregex(L"q[^u]", in main()
1331 assert(m.size() == 1); in main()
1332 assert(m.prefix().matched); in main()
1333 assert(m.prefix().first == s); in main()
1334 assert(m.prefix().second == m[0].first); in main()
1335 assert(!m.suffix().matched); in main()
1336 assert(m.suffix().first == m[0].second); in main()
1337 assert(m.suffix().second == m[0].second); in main()
1338 assert(m.length(0) == 2); in main()
1339 assert(m.position(0) == 3); in main()
1340 assert(m.str(0) == L"qi"); in main()
1343 std::wcmatch m; in main() local
1345 assert(!std::regex_search(s, m, std::wregex(L"q[^u]", in main()
1347 assert(m.size() == 0); in main()
1350 std::wcmatch m; in main() local
1352 assert(std::regex_search(s, m, std::wregex(L"A[[:lower:]]B", in main()
1354 assert(m.size() == 1); in main()
1355 assert(!m.prefix().matched); in main()
1356 assert(m.prefix().first == s); in main()
1357 assert(m.prefix().second == m[0].first); in main()
1358 assert(!m.suffix().matched); in main()
1359 assert(m.suffix().first == m[0].second); in main()
1360 assert(m.suffix().second == m[0].second); in main()
1361 …assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1362 assert(m.position(0) == 0); in main()
1363 assert(m.str(0) == s); in main()
1366 std::wcmatch m; in main() local
1368 assert(!std::regex_search(s, m, std::wregex(L"A[[:lower:]]B", in main()
1370 assert(m.size() == 0); in main()
1373 std::wcmatch m; in main() local
1375 assert(std::regex_search(s, m, std::wregex(L"A[^[:lower:]]B", in main()
1377 assert(m.size() == 1); in main()
1378 assert(!m.prefix().matched); in main()
1379 assert(m.prefix().first == s); in main()
1380 assert(m.prefix().second == m[0].first); in main()
1381 assert(!m.suffix().matched); in main()
1382 assert(m.suffix().first == m[0].second); in main()
1383 assert(m.suffix().second == m[0].second); in main()
1384 …assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1385 assert(m.position(0) == 0); in main()
1386 assert(m.str(0) == s); in main()
1389 std::wcmatch m; in main() local
1391 assert(!std::regex_search(s, m, std::wregex(L"A[^[:lower:]]B", in main()
1393 assert(m.size() == 0); in main()
1396 std::wcmatch m; in main() local
1398 assert(!std::regex_search(s, m, std::wregex(L"A[^[:lower:]0-9]B", in main()
1400 assert(m.size() == 0); in main()
1403 std::wcmatch m; in main() local
1405 assert(std::regex_search(s, m, std::wregex(L"A[^[:lower:]0-9]B", in main()
1407 assert(m.size() == 1); in main()
1408 assert(!m.prefix().matched); in main()
1409 assert(m.prefix().first == s); in main()
1410 assert(m.prefix().second == m[0].first); in main()
1411 assert(!m.suffix().matched); in main()
1412 assert(m.suffix().first == m[0].second); in main()
1413 assert(m.suffix().second == m[0].second); in main()
1414 …assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1415 assert(m.position(0) == 0); in main()
1416 assert(m.str(0) == s); in main()
1419 std::wcmatch m; in main() local
1421 assert(std::regex_search(s, m, std::wregex(L"[a[.hyphen.]z]", in main()
1423 assert(m.size() == 1); in main()
1424 assert(!m.prefix().matched); in main()
1425 assert(m.prefix().first == s); in main()
1426 assert(m.prefix().second == m[0].first); in main()
1427 assert(!m.suffix().matched); in main()
1428 assert(m.suffix().first == m[0].second); in main()
1429 assert(m.suffix().second == m[0].second); in main()
1430 …assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1431 assert(m.position(0) == 0); in main()
1432 assert(m.str(0) == s); in main()
1435 std::wcmatch m; in main() local
1437 assert(std::regex_search(s, m, std::wregex(L"[a[.hyphen.]z]", in main()
1439 assert(m.size() == 1); in main()
1440 assert(!m.prefix().matched); in main()
1441 assert(m.prefix().first == s); in main()
1442 assert(m.prefix().second == m[0].first); in main()
1443 assert(!m.suffix().matched); in main()
1444 assert(m.suffix().first == m[0].second); in main()
1445 assert(m.suffix().second == m[0].second); in main()
1446 …assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1447 assert(m.position(0) == 0); in main()
1448 assert(m.str(0) == s); in main()
1451 std::wcmatch m; in main() local
1453 assert(!std::regex_search(s, m, std::wregex(L"[a[.hyphen.]z]", in main()
1455 assert(m.size() == 0); in main()
1459 std::wcmatch m; in main() local
1461 assert(std::regex_search(s, m, std::wregex(L"[a[=M=]z]", in main()
1463 assert(m.size() == 1); in main()
1464 assert(!m.prefix().matched); in main()
1465 assert(m.prefix().first == s); in main()
1466 assert(m.prefix().second == m[0].first); in main()
1467 assert(!m.suffix().matched); in main()
1468 assert(m.suffix().first == m[0].second); in main()
1469 assert(m.suffix().second == m[0].second); in main()
1470 …assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1471 assert(m.position(0) == 0); in main()
1472 assert(m.str(0) == s); in main()
1475 std::wcmatch m; in main() local
1477 assert(std::regex_search(s, m, std::wregex(L"[a[.ch.]z]", in main()
1479 assert(m.size() == 1); in main()
1480 assert(!m.prefix().matched); in main()
1481 assert(m.prefix().first == s); in main()
1482 assert(m.prefix().second == m[0].first); in main()
1483 assert(!m.suffix().matched); in main()
1484 assert(m.suffix().first == m[0].second); in main()
1485 assert(m.suffix().second == m[0].second); in main()
1486 …assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1487 assert(m.position(0) == 0); in main()
1488 assert(m.str(0) == s); in main()
1492 std::wcmatch m; in main() local
1494 assert(!std::regex_search(s, m, std::wregex(L"[a[=M=]z]", in main()
1496 assert(m.size() == 0); in main()
1499 std::wcmatch m; in main() local
1501 assert(std::regex_search(s, m, std::wregex(L"[ace1-9]*", in main()
1503 assert(m.size() == 1); in main()
1504 assert(!m.prefix().matched); in main()
1505 assert(m.prefix().first == s); in main()
1506 assert(m.prefix().second == m[0].first); in main()
1507 assert(m.suffix().matched); in main()
1508 assert(m.suffix().first == m[0].second); in main()
1509 assert(m.suffix().second == s + std::char_traits<wchar_t>::length(s)); in main()
1510 assert(m.length(0) == 0); in main()
1511 assert(m.position(0) == 0); in main()
1512 assert(m.str(0) == L""); in main()
1515 std::wcmatch m; in main() local
1517 assert(std::regex_search(s, m, std::wregex(L"[ace1-9]\\{1,\\}", in main()
1519 assert(m.size() == 1); in main()
1520 assert(m.prefix().matched); in main()
1521 assert(m.prefix().first == s); in main()
1522 assert(m.prefix().second == m[0].first); in main()
1523 assert(m.suffix().matched); in main()
1524 assert(m.suffix().first == m[0].second); in main()
1525 assert(m.suffix().second == s + std::char_traits<wchar_t>::length(s)); in main()
1526 assert(m.length(0) == 6); in main()
1527 assert(m.position(0) == 1); in main()
1528 assert(m.str(0) == L"1a45ce"); in main()
1536 std::match_results<BI> m; in main() local
1539 assert(std::regex_search(BI(s), BI(s+ss), m, regex)); in main()
1540 assert(m.size() == 1); in main()
1541 assert(!m.prefix().matched); in main()
1542 assert(m.prefix().first == BI(s)); in main()
1543 assert(m.prefix().second == m[0].first); in main()
1544 assert(!m.suffix().matched); in main()
1545 assert(m.suffix().first == m[0].second); in main()
1546 assert(m.suffix().second == m[0].second); in main()
1547 assert(m.length(0) == 4); in main()
1548 assert(m.position(0) == 0); in main()
1549 assert(m.str(0) == s); in main()