Lines Matching refs:m

32         std::cmatch m;  in main()  local
33 assert(!std::regex_search("a", m, std::regex())); in main()
34 assert(m.size() == 0); in main()
35 assert(m.empty()); in main()
38 std::cmatch m; in main() local
40 assert(std::regex_search(s, m, std::regex("a", std::regex_constants::basic))); in main()
41 assert(m.size() == 1); in main()
42 assert(!m.empty()); in main()
43 assert(!m.prefix().matched); in main()
44 assert(m.prefix().first == s); in main()
45 assert(m.prefix().second == m[0].first); in main()
46 assert(!m.suffix().matched); in main()
47 assert(m.suffix().first == m[0].second); in main()
48 assert(m.suffix().second == s+1); in main()
49 assert(m.length(0) == 1); in main()
50 assert(m.position(0) == 0); in main()
51 assert(m.str(0) == "a"); in main()
54 std::cmatch m; in main() local
56 assert(std::regex_search(s, m, std::regex("ab", std::regex_constants::basic))); in main()
57 assert(m.size() == 1); in main()
58 assert(!m.prefix().matched); in main()
59 assert(m.prefix().first == s); in main()
60 assert(m.prefix().second == m[0].first); in main()
61 assert(!m.suffix().matched); in main()
62 assert(m.suffix().first == m[0].second); in main()
63 assert(m.suffix().second == s+2); in main()
64 assert(m.length(0) == 2); in main()
65 assert(m.position(0) == 0); in main()
66 assert(m.str(0) == "ab"); in main()
69 std::cmatch m; in main() local
71 assert(!std::regex_search(s, m, std::regex("ba", std::regex_constants::basic))); in main()
72 assert(m.size() == 0); in main()
73 assert(m.empty()); in main()
76 std::cmatch m; in main() local
78 assert(std::regex_search(s, m, std::regex("ab", std::regex_constants::basic))); in main()
79 assert(m.size() == 1); in main()
80 assert(m.prefix().matched); in main()
81 assert(m.prefix().first == s); in main()
82 assert(m.prefix().second == m[0].first); in main()
83 assert(!m.suffix().matched); in main()
84 assert(m.suffix().first == m[0].second); in main()
85 assert(m.suffix().second == s+3); in main()
86 assert(m.length(0) == 2); in main()
87 assert(m.position(0) == 1); in main()
88 assert(m.str(0) == "ab"); in main()
91 std::cmatch m; in main() local
93 assert(!std::regex_search(s, m, std::regex("ab", std::regex_constants::basic), in main()
95 assert(m.size() == 0); in main()
98 std::cmatch m; in main() local
100 assert(std::regex_search(s, m, std::regex("bc", std::regex_constants::basic))); in main()
101 assert(m.size() == 1); in main()
102 assert(m.prefix().matched); in main()
103 assert(m.prefix().first == s); in main()
104 assert(m.prefix().second == m[0].first); in main()
105 assert(m.suffix().matched); in main()
106 assert(m.suffix().first == m[0].second); in main()
107 assert(m.suffix().second == s+4); in main()
108 assert(m.length(0) == 2); in main()
109 assert(m.position(0) == 1); in main()
110 assert(m.str(0) == "bc"); in main()
113 std::cmatch m; in main() local
115 assert(std::regex_search(s, m, std::regex("ab*c", std::regex_constants::basic))); in main()
116 assert(m.size() == 1); in main()
117 assert(!m.prefix().matched); in main()
118 assert(m.prefix().first == s); in main()
119 assert(m.prefix().second == m[0].first); in main()
120 assert(!m.suffix().matched); in main()
121 assert(m.suffix().first == m[0].second); in main()
122 assert(m.suffix().second == s+4); in main()
123 assert(m.length(0) == 4); in main()
124 assert(m.position(0) == 0); in main()
125 assert(m.str(0) == s); in main()
128 std::cmatch m; in main() local
130 assert(std::regex_search(s, m, std::regex("\\(ab\\)*c", std::regex_constants::basic))); in main()
131 assert(m.size() == 2); in main()
132 assert(!m.prefix().matched); in main()
133 assert(m.prefix().first == s); in main()
134 assert(m.prefix().second == m[0].first); in main()
135 assert(!m.suffix().matched); in main()
136 assert(m.suffix().first == m[0].second); in main()
137 assert(m.suffix().second == s+5); in main()
138 assert(m.length(0) == 5); in main()
139 assert(m.position(0) == 0); in main()
140 assert(m.str(0) == s); in main()
141 assert(m.length(1) == 2); in main()
142 assert(m.position(1) == 2); in main()
143 assert(m.str(1) == "ab"); in main()
146 std::cmatch m; in main() local
148 assert(std::regex_search(s, m, std::regex("cd\\(\\(e\\)fg\\)hi", in main()
150 assert(m.size() == 3); in main()
151 assert(m.prefix().matched); in main()
152 assert(m.prefix().first == s); in main()
153 assert(m.prefix().second == m[0].first); in main()
154 assert(m.suffix().matched); in main()
155 assert(m.suffix().first == m[0].second); in main()
156 assert(m.suffix().second == s+std::regex_traits<char>::length(s)); in main()
157 assert(m.length(0) == 7); in main()
158 assert(m.position(0) == 2); in main()
159 assert(m.str(0) == "cdefghi"); in main()
160 assert(m.length(1) == 3); in main()
161 assert(m.position(1) == 4); in main()
162 assert(m.str(1) == "efg"); in main()
163 assert(m.length(2) == 1); in main()
164 assert(m.position(2) == 4); in main()
165 assert(m.str(2) == "e"); in main()
168 std::cmatch m; in main() local
170 assert(std::regex_search(s, m, std::regex("^abc", std::regex_constants::basic))); in main()
171 assert(m.size() == 1); in main()
172 assert(!m.prefix().matched); in main()
173 assert(m.prefix().first == s); in main()
174 assert(m.prefix().second == m[0].first); in main()
175 assert(!m.suffix().matched); in main()
176 assert(m.suffix().first == m[0].second); in main()
177 assert(m.suffix().second == s+3); in main()
178 assert(m.length(0) == 3); in main()
179 assert(m.position(0) == 0); in main()
180 assert(m.str(0) == s); in main()
183 std::cmatch m; in main() local
185 assert(std::regex_search(s, m, std::regex("^abc", std::regex_constants::basic))); in main()
186 assert(m.size() == 1); in main()
187 assert(!m.prefix().matched); in main()
188 assert(m.prefix().first == s); in main()
189 assert(m.prefix().second == m[0].first); in main()
190 assert(m.suffix().matched); in main()
191 assert(m.suffix().first == m[0].second); in main()
192 assert(m.suffix().second == s+4); in main()
193 assert(m.length(0) == 3); in main()
194 assert(m.position(0) == 0); in main()
195 assert(m.str(0) == "abc"); in main()
198 std::cmatch m; in main() local
200 assert(!std::regex_search(s, m, std::regex("^abc", std::regex_constants::basic))); in main()
201 assert(m.size() == 0); in main()
204 std::cmatch m; in main() local
206 assert(std::regex_search(s, m, std::regex("abc$", std::regex_constants::basic))); in main()
207 assert(m.size() == 1); in main()
208 assert(!m.prefix().matched); in main()
209 assert(m.prefix().first == s); in main()
210 assert(m.prefix().second == m[0].first); in main()
211 assert(!m.suffix().matched); in main()
212 assert(m.suffix().first == m[0].second); in main()
213 assert(m.suffix().second == s+3); in main()
214 assert(m.length(0) == 3); in main()
215 assert(m.position(0) == 0); in main()
216 assert(m.str(0) == s); in main()
219 std::cmatch m; in main() local
221 assert(std::regex_search(s, m, std::regex("abc$", std::regex_constants::basic))); in main()
222 assert(m.size() == 1); in main()
223 assert(m.prefix().matched); in main()
224 assert(m.prefix().first == s); in main()
225 assert(m.prefix().second == m[0].first); in main()
226 assert(!m.suffix().matched); in main()
227 assert(m.suffix().first == m[0].second); in main()
228 assert(m.suffix().second == s+5); in main()
229 assert(m.length(0) == 3); in main()
230 assert(m.position(0) == 2); in main()
231 assert(m.str(0) == s+2); in main()
234 std::cmatch m; in main() local
236 assert(!std::regex_search(s, m, std::regex("abc$", std::regex_constants::basic))); in main()
237 assert(m.size() == 0); in main()
240 std::cmatch m; in main() local
242 assert(std::regex_search(s, m, std::regex("a.c", std::regex_constants::basic))); in main()
243 assert(m.size() == 1); in main()
244 assert(!m.prefix().matched); in main()
245 assert(m.prefix().first == s); in main()
246 assert(m.prefix().second == m[0].first); in main()
247 assert(!m.suffix().matched); in main()
248 assert(m.suffix().first == m[0].second); in main()
249 assert(m.suffix().second == s+3); in main()
250 assert(m.length(0) == 3); in main()
251 assert(m.position(0) == 0); in main()
252 assert(m.str(0) == s); in main()
255 std::cmatch m; in main() local
257 assert(std::regex_search(s, m, std::regex("a.c", std::regex_constants::basic))); in main()
258 assert(m.size() == 1); in main()
259 assert(!m.prefix().matched); in main()
260 assert(m.prefix().first == s); in main()
261 assert(m.prefix().second == m[0].first); in main()
262 assert(!m.suffix().matched); in main()
263 assert(m.suffix().first == m[0].second); in main()
264 assert(m.suffix().second == s+3); in main()
265 assert(m.length(0) == 3); in main()
266 assert(m.position(0) == 0); in main()
267 assert(m.str(0) == s); in main()
270 std::cmatch m; in main() local
272 assert(std::regex_search(s, m, std::regex("a.c", std::regex_constants::basic))); in main()
273 assert(m.size() == 1); in main()
274 assert(!m.prefix().matched); in main()
275 assert(m.prefix().first == s); in main()
276 assert(m.prefix().second == m[0].first); in main()
277 assert(!m.suffix().matched); in main()
278 assert(m.suffix().first == m[0].second); in main()
279 assert(m.suffix().second == s+3); in main()
280 assert(m.length(0) == 3); in main()
281 assert(m.position(0) == 0); in main()
282 assert(m.str(0) == s); in main()
285 std::cmatch m; in main() local
287 assert(std::regex_search(s, m, std::regex("\\(.*\\).*", std::regex_constants::basic))); in main()
288 assert(m.size() == 2); in main()
289 assert(!m.prefix().matched); in main()
290 assert(m.prefix().first == s); in main()
291 assert(m.prefix().second == m[0].first); in main()
292 assert(!m.suffix().matched); in main()
293 assert(m.suffix().first == m[0].second); in main()
294 assert(m.suffix().second == s+6); in main()
295 assert(m.length(0) == 6); in main()
296 assert(m.position(0) == 0); in main()
297 assert(m.str(0) == s); in main()
298 assert(m.length(1) == 6); in main()
299 assert(m.position(1) == 0); in main()
300 assert(m.str(1) == s); in main()
303 std::cmatch m; in main() local
305 assert(std::regex_search(s, m, std::regex("\\(a*\\)*", std::regex_constants::basic))); in main()
306 assert(m.size() == 2); in main()
307 assert(!m.prefix().matched); in main()
308 assert(m.prefix().first == s); in main()
309 assert(m.prefix().second == m[0].first); in main()
310 assert(m.suffix().matched); in main()
311 assert(m.suffix().first == m[0].second); in main()
312 assert(m.suffix().second == s+2); in main()
313 assert(m.length(0) == 0); in main()
314 assert(m.position(0) == 0); in main()
315 assert(m.str(0) == ""); in main()
316 assert(m.length(1) == 0); in main()
317 assert(m.position(1) == 0); in main()
318 assert(m.str(1) == ""); in main()
321 std::cmatch m; in main() local
323 assert(!std::regex_search(s, m, std::regex("ab\\{3,5\\}c", std::regex_constants::basic))); in main()
324 assert(m.size() == 0); in main()
327 std::cmatch m; in main() local
329 assert(std::regex_search(s, m, std::regex("ab\\{3,5\\}c", std::regex_constants::basic))); in main()
330 assert(m.size() == 1); in main()
331 assert(!m.prefix().matched); in main()
332 assert(m.prefix().first == s); in main()
333 assert(m.prefix().second == m[0].first); in main()
334 assert(!m.suffix().matched); in main()
335 assert(m.suffix().first == m[0].second); in main()
336 assert(m.suffix().second == m[0].second); in main()
337 assert(m.length(0) == sizeof(s)-1); in main()
338 assert(m.position(0) == 0); in main()
339 assert(m.str(0) == s); in main()
342 std::cmatch m; in main() local
344 assert(std::regex_search(s, m, std::regex("ab\\{3,5\\}c", std::regex_constants::basic))); in main()
345 assert(m.size() == 1); in main()
346 assert(!m.prefix().matched); in main()
347 assert(m.prefix().first == s); in main()
348 assert(m.prefix().second == m[0].first); in main()
349 assert(!m.suffix().matched); in main()
350 assert(m.suffix().first == m[0].second); in main()
351 assert(m.suffix().second == m[0].second); in main()
352 assert(m.length(0) == sizeof(s)-1); in main()
353 assert(m.position(0) == 0); in main()
354 assert(m.str(0) == s); in main()
357 std::cmatch m; in main() local
359 assert(std::regex_search(s, m, std::regex("ab\\{3,5\\}c", std::regex_constants::basic))); in main()
360 assert(m.size() == 1); in main()
361 assert(!m.prefix().matched); in main()
362 assert(m.prefix().first == s); in main()
363 assert(m.prefix().second == m[0].first); in main()
364 assert(!m.suffix().matched); in main()
365 assert(m.suffix().first == m[0].second); in main()
366 assert(m.suffix().second == m[0].second); in main()
367 assert(m.length(0) == sizeof(s)-1); in main()
368 assert(m.position(0) == 0); in main()
369 assert(m.str(0) == s); in main()
372 std::cmatch m; in main() local
374 assert(!std::regex_search(s, m, std::regex("ab\\{3,5\\}c", std::regex_constants::basic))); in main()
375 assert(m.size() == 0); in main()
378 std::cmatch m; in main() local
380 assert(!std::regex_search(s, m, std::regex("ab\\{3,5\\}c", std::regex_constants::basic))); in main()
381 assert(m.size() == 0); in main()
384 std::cmatch m; in main() local
386 assert(!std::regex_search(s, m, std::regex("a.\\{3,5\\}c", std::regex_constants::basic))); in main()
387 assert(m.size() == 0); in main()
390 std::cmatch m; in main() local
392 assert(std::regex_search(s, m, std::regex("a.\\{3,5\\}c", std::regex_constants::basic))); in main()
393 assert(m.size() == 1); in main()
394 assert(!m.prefix().matched); in main()
395 assert(m.prefix().first == s); in main()
396 assert(m.prefix().second == m[0].first); in main()
397 assert(!m.suffix().matched); in main()
398 assert(m.suffix().first == m[0].second); in main()
399 assert(m.suffix().second == m[0].second); in main()
400 assert(m.length(0) == sizeof(s)-1); in main()
401 assert(m.position(0) == 0); in main()
402 assert(m.str(0) == s); in main()
405 std::cmatch m; in main() local
407 assert(std::regex_search(s, m, std::regex("a.\\{3,5\\}c", std::regex_constants::basic))); in main()
408 assert(m.size() == 1); in main()
409 assert(!m.prefix().matched); in main()
410 assert(m.prefix().first == s); in main()
411 assert(m.prefix().second == m[0].first); in main()
412 assert(!m.suffix().matched); in main()
413 assert(m.suffix().first == m[0].second); in main()
414 assert(m.suffix().second == m[0].second); in main()
415 assert(m.length(0) == sizeof(s)-1); in main()
416 assert(m.position(0) == 0); in main()
417 assert(m.str(0) == s); in main()
420 std::cmatch m; in main() local
422 assert(std::regex_search(s, m, std::regex("a.\\{3,5\\}c", std::regex_constants::basic))); in main()
423 assert(m.size() == 1); in main()
424 assert(!m.prefix().matched); in main()
425 assert(m.prefix().first == s); in main()
426 assert(m.prefix().second == m[0].first); in main()
427 assert(!m.suffix().matched); in main()
428 assert(m.suffix().first == m[0].second); in main()
429 assert(m.suffix().second == m[0].second); in main()
430 assert(m.length(0) == sizeof(s)-1); in main()
431 assert(m.position(0) == 0); in main()
432 assert(m.str(0) == s); in main()
435 std::cmatch m; in main() local
437 assert(!std::regex_search(s, m, std::regex("a.\\{3,5\\}c", std::regex_constants::basic))); in main()
438 assert(m.size() == 0); in main()
441 std::cmatch m; in main() local
443 assert(std::regex_search(s, m, std::regex("-\\(.*\\),\\1-", std::regex_constants::basic))); in main()
444 assert(m.size() == 2); in main()
445 assert(!m.prefix().matched); in main()
446 assert(m.prefix().first == s); in main()
447 assert(m.prefix().second == m[0].first); in main()
448 assert(!m.suffix().matched); in main()
449 assert(m.suffix().first == m[0].second); in main()
450 assert(m.suffix().second == m[0].second); in main()
451 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
452 assert(m.position(0) == 0); in main()
453 assert(m.str(0) == s); in main()
454 assert(m.length(1) == 2); in main()
455 assert(m.position(1) == 1); in main()
456 assert(m.str(1) == "ab"); in main()
459 std::cmatch m; in main() local
461 assert(std::regex_search(s, m, std::regex("^\\(ab*\\)*\\1$", std::regex_constants::basic))); in main()
462 assert(m.size() == 2); in main()
463 assert(!m.prefix().matched); in main()
464 assert(m.prefix().first == s); in main()
465 assert(m.prefix().second == m[0].first); in main()
466 assert(!m.suffix().matched); in main()
467 assert(m.suffix().first == m[0].second); in main()
468 assert(m.suffix().second == m[0].second); in main()
469 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
470 assert(m.position(0) == 0); in main()
471 assert(m.str(0) == s); in main()
472 assert(m.length(1) == 3); in main()
473 assert(m.position(1) == 2); in main()
474 assert(m.str(1) == "abb"); in main()
477 std::cmatch m; in main() local
479 … assert(!std::regex_search(s, m, std::regex("^\\(ab*\\)*\\1$", std::regex_constants::basic))); in main()
480 assert(m.size() == 0); in main()
483 std::cmatch m; in main() local
485 assert(std::regex_search(s, m, std::regex("^\\(Ab*\\)*\\1$", in main()
487 assert(m.size() == 2); 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) == std::char_traits<char>::length(s)); in main()
495 assert(m.position(0) == 0); in main()
496 assert(m.str(0) == s); in main()
497 assert(m.length(1) == 3); in main()
498 assert(m.position(1) == 2); in main()
499 assert(m.str(1) == "Abb"); in main()
502 std::cmatch m; in main() local
504 assert(!std::regex_search(s, m, std::regex("^\\(Ab*\\)*\\1$", in main()
506 assert(m.size() == 0); in main()
509 std::cmatch m; in main() local
511 assert(std::regex_search(s, m, std::regex("^[a]$", in main()
513 assert(m.size() == 1); in main()
514 assert(!m.prefix().matched); in main()
515 assert(m.prefix().first == s); in main()
516 assert(m.prefix().second == m[0].first); in main()
517 assert(!m.suffix().matched); in main()
518 assert(m.suffix().first == m[0].second); in main()
519 assert(m.suffix().second == m[0].second); in main()
520 assert(m.length(0) == 1); in main()
521 assert(m.position(0) == 0); in main()
522 assert(m.str(0) == "a"); in main()
525 std::cmatch m; in main() local
527 assert(std::regex_search(s, m, std::regex("^[ab]$", in main()
529 assert(m.size() == 1); in main()
530 assert(!m.prefix().matched); in main()
531 assert(m.prefix().first == s); in main()
532 assert(m.prefix().second == m[0].first); in main()
533 assert(!m.suffix().matched); in main()
534 assert(m.suffix().first == m[0].second); in main()
535 assert(m.suffix().second == m[0].second); in main()
536 assert(m.length(0) == 1); in main()
537 assert(m.position(0) == 0); in main()
538 assert(m.str(0) == "a"); in main()
541 std::cmatch m; in main() local
543 assert(std::regex_search(s, m, std::regex("^[a-f]$", in main()
545 assert(m.size() == 1); in main()
546 assert(!m.prefix().matched); in main()
547 assert(m.prefix().first == s); in main()
548 assert(m.prefix().second == m[0].first); in main()
549 assert(!m.suffix().matched); in main()
550 assert(m.suffix().first == m[0].second); in main()
551 assert(m.suffix().second == m[0].second); in main()
552 assert(m.length(0) == 1); in main()
553 assert(m.position(0) == 0); in main()
554 assert(m.str(0) == s); in main()
557 std::cmatch m; in main() local
559 assert(!std::regex_search(s, m, std::regex("^[a-f]$", in main()
561 assert(m.size() == 0); in main()
564 std::cmatch m; in main() local
566 assert(std::regex_search(s, m, std::regex("q[^u]", in main()
568 assert(m.size() == 1); in main()
569 assert(m.prefix().matched); in main()
570 assert(m.prefix().first == s); in main()
571 assert(m.prefix().second == m[0].first); in main()
572 assert(!m.suffix().matched); in main()
573 assert(m.suffix().first == m[0].second); in main()
574 assert(m.suffix().second == m[0].second); in main()
575 assert(m.length(0) == 2); in main()
576 assert(m.position(0) == 3); in main()
577 assert(m.str(0) == "qi"); in main()
580 std::cmatch m; in main() local
582 assert(!std::regex_search(s, m, std::regex("q[^u]", in main()
584 assert(m.size() == 0); in main()
587 std::cmatch m; in main() local
589 assert(std::regex_search(s, m, std::regex("A[[:lower:]]B", in main()
591 assert(m.size() == 1); in main()
592 assert(!m.prefix().matched); in main()
593 assert(m.prefix().first == s); in main()
594 assert(m.prefix().second == m[0].first); in main()
595 assert(!m.suffix().matched); in main()
596 assert(m.suffix().first == m[0].second); in main()
597 assert(m.suffix().second == m[0].second); in main()
598 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
599 assert(m.position(0) == 0); in main()
600 assert(m.str(0) == s); in main()
603 std::cmatch m; in main() local
605 assert(!std::regex_search(s, m, std::regex("A[[:lower:]]B", in main()
607 assert(m.size() == 0); in main()
610 std::cmatch m; in main() local
612 assert(std::regex_search(s, m, std::regex("A[^[:lower:]]B", in main()
614 assert(m.size() == 1); in main()
615 assert(!m.prefix().matched); in main()
616 assert(m.prefix().first == s); in main()
617 assert(m.prefix().second == m[0].first); in main()
618 assert(!m.suffix().matched); in main()
619 assert(m.suffix().first == m[0].second); in main()
620 assert(m.suffix().second == m[0].second); in main()
621 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
622 assert(m.position(0) == 0); in main()
623 assert(m.str(0) == s); in main()
626 std::cmatch m; in main() local
628 assert(!std::regex_search(s, m, std::regex("A[^[:lower:]]B", in main()
630 assert(m.size() == 0); in main()
633 std::cmatch m; in main() local
635 assert(!std::regex_search(s, m, std::regex("A[^[:lower:]0-9]B", in main()
637 assert(m.size() == 0); in main()
640 std::cmatch m; in main() local
642 assert(std::regex_search(s, m, std::regex("A[^[:lower:]0-9]B", in main()
644 assert(m.size() == 1); in main()
645 assert(!m.prefix().matched); in main()
646 assert(m.prefix().first == s); in main()
647 assert(m.prefix().second == m[0].first); in main()
648 assert(!m.suffix().matched); in main()
649 assert(m.suffix().first == m[0].second); in main()
650 assert(m.suffix().second == m[0].second); in main()
651 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
652 assert(m.position(0) == 0); in main()
653 assert(m.str(0) == s); in main()
656 std::cmatch m; in main() local
658 assert(std::regex_search(s, m, std::regex("[a[.hyphen.]z]", in main()
660 assert(m.size() == 1); in main()
661 assert(!m.prefix().matched); in main()
662 assert(m.prefix().first == s); in main()
663 assert(m.prefix().second == m[0].first); in main()
664 assert(!m.suffix().matched); in main()
665 assert(m.suffix().first == m[0].second); in main()
666 assert(m.suffix().second == m[0].second); in main()
667 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
668 assert(m.position(0) == 0); in main()
669 assert(m.str(0) == s); in main()
672 std::cmatch m; in main() local
674 assert(std::regex_search(s, m, std::regex("[a[.hyphen.]z]", in main()
676 assert(m.size() == 1); in main()
677 assert(!m.prefix().matched); in main()
678 assert(m.prefix().first == s); in main()
679 assert(m.prefix().second == m[0].first); in main()
680 assert(!m.suffix().matched); in main()
681 assert(m.suffix().first == m[0].second); in main()
682 assert(m.suffix().second == m[0].second); in main()
683 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
684 assert(m.position(0) == 0); in main()
685 assert(m.str(0) == s); in main()
688 std::cmatch m; in main() local
690 assert(!std::regex_search(s, m, std::regex("[a[.hyphen.]z]", in main()
692 assert(m.size() == 0); in main()
696 std::cmatch m; in main() local
698 assert(std::regex_search(s, m, std::regex("[a[=M=]z]", in main()
700 assert(m.size() == 1); in main()
701 assert(!m.prefix().matched); in main()
702 assert(m.prefix().first == s); in main()
703 assert(m.prefix().second == m[0].first); in main()
704 assert(!m.suffix().matched); in main()
705 assert(m.suffix().first == m[0].second); in main()
706 assert(m.suffix().second == m[0].second); in main()
707 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
708 assert(m.position(0) == 0); in main()
709 assert(m.str(0) == s); in main()
712 std::cmatch m; in main() local
714 assert(std::regex_search(s, m, std::regex("[a[.ch.]z]", in main()
716 assert(m.size() == 1); in main()
717 assert(!m.prefix().matched); in main()
718 assert(m.prefix().first == s); in main()
719 assert(m.prefix().second == m[0].first); in main()
720 assert(!m.suffix().matched); in main()
721 assert(m.suffix().first == m[0].second); in main()
722 assert(m.suffix().second == m[0].second); in main()
723 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
724 assert(m.position(0) == 0); in main()
725 assert(m.str(0) == s); in main()
729 std::cmatch m; in main() local
731 assert(!std::regex_search(s, m, std::regex("[a[=M=]z]", in main()
733 assert(m.size() == 0); in main()
736 std::cmatch m; in main() local
738 assert(std::regex_search(s, m, std::regex("[ace1-9]*", in main()
740 assert(m.size() == 1); in main()
741 assert(!m.prefix().matched); in main()
742 assert(m.prefix().first == s); in main()
743 assert(m.prefix().second == m[0].first); in main()
744 assert(m.suffix().matched); in main()
745 assert(m.suffix().first == m[0].second); in main()
746 assert(m.suffix().second == s + std::char_traits<char>::length(s)); in main()
747 assert(m.length(0) == 0); in main()
748 assert(m.position(0) == 0); in main()
749 assert(m.str(0) == ""); in main()
752 std::cmatch m; in main() local
754 assert(std::regex_search(s, m, std::regex("[ace1-9]\\{1,\\}", in main()
756 assert(m.size() == 1); in main()
757 assert(m.prefix().matched); in main()
758 assert(m.prefix().first == s); in main()
759 assert(m.prefix().second == m[0].first); in main()
760 assert(m.suffix().matched); in main()
761 assert(m.suffix().first == m[0].second); in main()
762 assert(m.suffix().second == s + std::char_traits<char>::length(s)); in main()
763 assert(m.length(0) == 6); in main()
764 assert(m.position(0) == 1); in main()
765 assert(m.str(0) == "1a45ce"); in main()
773 std::match_results<BI> m; in main() local
776 assert(std::regex_search(BI(s), BI(s+ss), m, regex)); in main()
777 assert(m.size() == 1); in main()
778 assert(!m.prefix().matched); in main()
779 assert(m.prefix().first == BI(s)); in main()
780 assert(m.prefix().second == m[0].first); in main()
781 assert(!m.suffix().matched); in main()
782 assert(m.suffix().first == m[0].second); in main()
783 assert(m.suffix().second == m[0].second); in main()
784 assert(m.length(0) == 4); in main()
785 assert(m.position(0) == 0); in main()
786 assert(m.str(0) == s); in main()
790 std::wcmatch m; in main() local
791 assert(!std::regex_search(L"a", m, std::wregex())); in main()
792 assert(m.size() == 0); in main()
793 assert(m.empty()); in main()
796 std::wcmatch m; in main() local
798 assert(std::regex_search(s, m, std::wregex(L"a", std::regex_constants::basic))); in main()
799 assert(m.size() == 1); in main()
800 assert(!m.empty()); in main()
801 assert(!m.prefix().matched); in main()
802 assert(m.prefix().first == s); in main()
803 assert(m.prefix().second == m[0].first); in main()
804 assert(!m.suffix().matched); in main()
805 assert(m.suffix().first == m[0].second); in main()
806 assert(m.suffix().second == s+1); in main()
807 assert(m.length(0) == 1); in main()
808 assert(m.position(0) == 0); in main()
809 assert(m.str(0) == L"a"); in main()
812 std::wcmatch m; in main() local
814 assert(std::regex_search(s, m, std::wregex(L"ab", std::regex_constants::basic))); in main()
815 assert(m.size() == 1); in main()
816 assert(!m.prefix().matched); in main()
817 assert(m.prefix().first == s); in main()
818 assert(m.prefix().second == m[0].first); in main()
819 assert(!m.suffix().matched); in main()
820 assert(m.suffix().first == m[0].second); in main()
821 assert(m.suffix().second == s+2); in main()
822 assert(m.length(0) == 2); in main()
823 assert(m.position(0) == 0); in main()
824 assert(m.str(0) == L"ab"); in main()
827 std::wcmatch m; in main() local
829 assert(!std::regex_search(s, m, std::wregex(L"ba", std::regex_constants::basic))); in main()
830 assert(m.size() == 0); in main()
831 assert(m.empty()); in main()
834 std::wcmatch m; in main() local
836 assert(std::regex_search(s, m, std::wregex(L"ab", std::regex_constants::basic))); in main()
837 assert(m.size() == 1); in main()
838 assert(m.prefix().matched); in main()
839 assert(m.prefix().first == s); in main()
840 assert(m.prefix().second == m[0].first); in main()
841 assert(!m.suffix().matched); in main()
842 assert(m.suffix().first == m[0].second); in main()
843 assert(m.suffix().second == s+3); in main()
844 assert(m.length(0) == 2); in main()
845 assert(m.position(0) == 1); in main()
846 assert(m.str(0) == L"ab"); in main()
849 std::wcmatch m; in main() local
851 assert(!std::regex_search(s, m, std::wregex(L"ab", std::regex_constants::basic), in main()
853 assert(m.size() == 0); in main()
856 std::wcmatch m; in main() local
858 assert(std::regex_search(s, m, std::wregex(L"bc", std::regex_constants::basic))); in main()
859 assert(m.size() == 1); in main()
860 assert(m.prefix().matched); in main()
861 assert(m.prefix().first == s); in main()
862 assert(m.prefix().second == m[0].first); in main()
863 assert(m.suffix().matched); in main()
864 assert(m.suffix().first == m[0].second); in main()
865 assert(m.suffix().second == s+4); in main()
866 assert(m.length(0) == 2); in main()
867 assert(m.position(0) == 1); in main()
868 assert(m.str(0) == L"bc"); in main()
871 std::wcmatch m; in main() local
873 assert(std::regex_search(s, m, std::wregex(L"ab*c", std::regex_constants::basic))); in main()
874 assert(m.size() == 1); in main()
875 assert(!m.prefix().matched); in main()
876 assert(m.prefix().first == s); in main()
877 assert(m.prefix().second == m[0].first); in main()
878 assert(!m.suffix().matched); in main()
879 assert(m.suffix().first == m[0].second); in main()
880 assert(m.suffix().second == s+4); in main()
881 assert(m.length(0) == 4); in main()
882 assert(m.position(0) == 0); in main()
883 assert(m.str(0) == s); in main()
886 std::wcmatch m; in main() local
888 assert(std::regex_search(s, m, std::wregex(L"\\(ab\\)*c", std::regex_constants::basic))); in main()
889 assert(m.size() == 2); in main()
890 assert(!m.prefix().matched); in main()
891 assert(m.prefix().first == s); in main()
892 assert(m.prefix().second == m[0].first); in main()
893 assert(!m.suffix().matched); in main()
894 assert(m.suffix().first == m[0].second); in main()
895 assert(m.suffix().second == s+5); in main()
896 assert(m.length(0) == 5); in main()
897 assert(m.position(0) == 0); in main()
898 assert(m.str(0) == s); in main()
899 assert(m.length(1) == 2); in main()
900 assert(m.position(1) == 2); in main()
901 assert(m.str(1) == L"ab"); in main()
904 std::wcmatch m; in main() local
906 assert(std::regex_search(s, m, std::wregex(L"cd\\(\\(e\\)fg\\)hi", in main()
908 assert(m.size() == 3); in main()
909 assert(m.prefix().matched); in main()
910 assert(m.prefix().first == s); in main()
911 assert(m.prefix().second == m[0].first); in main()
912 assert(m.suffix().matched); in main()
913 assert(m.suffix().first == m[0].second); in main()
914 assert(m.suffix().second == s+std::regex_traits<wchar_t>::length(s)); in main()
915 assert(m.length(0) == 7); in main()
916 assert(m.position(0) == 2); in main()
917 assert(m.str(0) == L"cdefghi"); in main()
918 assert(m.length(1) == 3); in main()
919 assert(m.position(1) == 4); in main()
920 assert(m.str(1) == L"efg"); in main()
921 assert(m.length(2) == 1); in main()
922 assert(m.position(2) == 4); in main()
923 assert(m.str(2) == L"e"); in main()
926 std::wcmatch m; in main() local
928 assert(std::regex_search(s, m, std::wregex(L"^abc", std::regex_constants::basic))); in main()
929 assert(m.size() == 1); in main()
930 assert(!m.prefix().matched); in main()
931 assert(m.prefix().first == s); in main()
932 assert(m.prefix().second == m[0].first); in main()
933 assert(!m.suffix().matched); in main()
934 assert(m.suffix().first == m[0].second); in main()
935 assert(m.suffix().second == s+3); in main()
936 assert(m.length(0) == 3); in main()
937 assert(m.position(0) == 0); in main()
938 assert(m.str(0) == s); in main()
941 std::wcmatch m; in main() local
943 assert(std::regex_search(s, m, std::wregex(L"^abc", std::regex_constants::basic))); in main()
944 assert(m.size() == 1); in main()
945 assert(!m.prefix().matched); in main()
946 assert(m.prefix().first == s); in main()
947 assert(m.prefix().second == m[0].first); in main()
948 assert(m.suffix().matched); in main()
949 assert(m.suffix().first == m[0].second); in main()
950 assert(m.suffix().second == s+4); in main()
951 assert(m.length(0) == 3); in main()
952 assert(m.position(0) == 0); in main()
953 assert(m.str(0) == L"abc"); in main()
956 std::wcmatch m; in main() local
958 assert(!std::regex_search(s, m, std::wregex(L"^abc", std::regex_constants::basic))); in main()
959 assert(m.size() == 0); in main()
962 std::wcmatch m; in main() local
964 assert(std::regex_search(s, m, std::wregex(L"abc$", std::regex_constants::basic))); in main()
965 assert(m.size() == 1); in main()
966 assert(!m.prefix().matched); in main()
967 assert(m.prefix().first == s); in main()
968 assert(m.prefix().second == m[0].first); in main()
969 assert(!m.suffix().matched); in main()
970 assert(m.suffix().first == m[0].second); in main()
971 assert(m.suffix().second == s+3); in main()
972 assert(m.length(0) == 3); in main()
973 assert(m.position(0) == 0); in main()
974 assert(m.str(0) == s); in main()
977 std::wcmatch m; in main() local
979 assert(std::regex_search(s, m, std::wregex(L"abc$", std::regex_constants::basic))); in main()
980 assert(m.size() == 1); in main()
981 assert(m.prefix().matched); in main()
982 assert(m.prefix().first == s); in main()
983 assert(m.prefix().second == m[0].first); in main()
984 assert(!m.suffix().matched); in main()
985 assert(m.suffix().first == m[0].second); in main()
986 assert(m.suffix().second == s+5); in main()
987 assert(m.length(0) == 3); in main()
988 assert(m.position(0) == 2); in main()
989 assert(m.str(0) == s+2); in main()
992 std::wcmatch m; in main() local
994 assert(!std::regex_search(s, m, std::wregex(L"abc$", std::regex_constants::basic))); in main()
995 assert(m.size() == 0); in main()
998 std::wcmatch m; in main() local
1000 assert(std::regex_search(s, m, std::wregex(L"a.c", std::regex_constants::basic))); in main()
1001 assert(m.size() == 1); in main()
1002 assert(!m.prefix().matched); in main()
1003 assert(m.prefix().first == s); in main()
1004 assert(m.prefix().second == m[0].first); in main()
1005 assert(!m.suffix().matched); in main()
1006 assert(m.suffix().first == m[0].second); in main()
1007 assert(m.suffix().second == s+3); in main()
1008 assert(m.length(0) == 3); in main()
1009 assert(m.position(0) == 0); in main()
1010 assert(m.str(0) == s); in main()
1013 std::wcmatch m; in main() local
1015 assert(std::regex_search(s, m, std::wregex(L"a.c", std::regex_constants::basic))); in main()
1016 assert(m.size() == 1); in main()
1017 assert(!m.prefix().matched); in main()
1018 assert(m.prefix().first == s); in main()
1019 assert(m.prefix().second == m[0].first); in main()
1020 assert(!m.suffix().matched); in main()
1021 assert(m.suffix().first == m[0].second); in main()
1022 assert(m.suffix().second == s+3); in main()
1023 assert(m.length(0) == 3); in main()
1024 assert(m.position(0) == 0); in main()
1025 assert(m.str(0) == s); in main()
1028 std::wcmatch m; in main() local
1030 assert(std::regex_search(s, m, std::wregex(L"a.c", std::regex_constants::basic))); in main()
1031 assert(m.size() == 1); in main()
1032 assert(!m.prefix().matched); in main()
1033 assert(m.prefix().first == s); in main()
1034 assert(m.prefix().second == m[0].first); in main()
1035 assert(!m.suffix().matched); in main()
1036 assert(m.suffix().first == m[0].second); in main()
1037 assert(m.suffix().second == s+3); in main()
1038 assert(m.length(0) == 3); in main()
1039 assert(m.position(0) == 0); in main()
1040 assert(m.str(0) == s); in main()
1043 std::wcmatch m; in main() local
1045 assert(std::regex_search(s, m, std::wregex(L"\\(.*\\).*", std::regex_constants::basic))); in main()
1046 assert(m.size() == 2); in main()
1047 assert(!m.prefix().matched); in main()
1048 assert(m.prefix().first == s); in main()
1049 assert(m.prefix().second == m[0].first); in main()
1050 assert(!m.suffix().matched); in main()
1051 assert(m.suffix().first == m[0].second); in main()
1052 assert(m.suffix().second == s+6); in main()
1053 assert(m.length(0) == 6); in main()
1054 assert(m.position(0) == 0); in main()
1055 assert(m.str(0) == s); in main()
1056 assert(m.length(1) == 6); in main()
1057 assert(m.position(1) == 0); in main()
1058 assert(m.str(1) == s); in main()
1061 std::wcmatch m; in main() local
1063 assert(std::regex_search(s, m, std::wregex(L"\\(a*\\)*", std::regex_constants::basic))); in main()
1064 assert(m.size() == 2); in main()
1065 assert(!m.prefix().matched); in main()
1066 assert(m.prefix().first == s); in main()
1067 assert(m.prefix().second == m[0].first); in main()
1068 assert(m.suffix().matched); in main()
1069 assert(m.suffix().first == m[0].second); in main()
1070 assert(m.suffix().second == s+2); in main()
1071 assert(m.length(0) == 0); in main()
1072 assert(m.position(0) == 0); in main()
1073 assert(m.str(0) == L""); in main()
1074 assert(m.length(1) == 0); in main()
1075 assert(m.position(1) == 0); in main()
1076 assert(m.str(1) == L""); in main()
1079 std::wcmatch m; in main() local
1081 assert(!std::regex_search(s, m, std::wregex(L"ab\\{3,5\\}c", std::regex_constants::basic))); in main()
1082 assert(m.size() == 0); in main()
1085 std::wcmatch m; in main() local
1087 assert(std::regex_search(s, m, std::wregex(L"ab\\{3,5\\}c", std::regex_constants::basic))); in main()
1088 assert(m.size() == 1); in main()
1089 assert(!m.prefix().matched); in main()
1090 assert(m.prefix().first == s); in main()
1091 assert(m.prefix().second == m[0].first); in main()
1092 assert(!m.suffix().matched); in main()
1093 assert(m.suffix().first == m[0].second); in main()
1094 assert(m.suffix().second == m[0].second); in main()
1095 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1096 assert(m.position(0) == 0); in main()
1097 assert(m.str(0) == s); in main()
1100 std::wcmatch m; in main() local
1102 assert(std::regex_search(s, m, std::wregex(L"ab\\{3,5\\}c", std::regex_constants::basic))); in main()
1103 assert(m.size() == 1); in main()
1104 assert(!m.prefix().matched); in main()
1105 assert(m.prefix().first == s); in main()
1106 assert(m.prefix().second == m[0].first); in main()
1107 assert(!m.suffix().matched); in main()
1108 assert(m.suffix().first == m[0].second); in main()
1109 assert(m.suffix().second == m[0].second); in main()
1110 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1111 assert(m.position(0) == 0); in main()
1112 assert(m.str(0) == s); in main()
1115 std::wcmatch m; in main() local
1117 assert(std::regex_search(s, m, std::wregex(L"ab\\{3,5\\}c", std::regex_constants::basic))); in main()
1118 assert(m.size() == 1); in main()
1119 assert(!m.prefix().matched); in main()
1120 assert(m.prefix().first == s); in main()
1121 assert(m.prefix().second == m[0].first); in main()
1122 assert(!m.suffix().matched); in main()
1123 assert(m.suffix().first == m[0].second); in main()
1124 assert(m.suffix().second == m[0].second); in main()
1125 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1126 assert(m.position(0) == 0); in main()
1127 assert(m.str(0) == s); in main()
1130 std::wcmatch m; in main() local
1132 assert(!std::regex_search(s, m, std::wregex(L"ab\\{3,5\\}c", std::regex_constants::basic))); in main()
1133 assert(m.size() == 0); in main()
1136 std::wcmatch m; in main() local
1138 assert(!std::regex_search(s, m, std::wregex(L"ab\\{3,5\\}c", std::regex_constants::basic))); in main()
1139 assert(m.size() == 0); in main()
1142 std::wcmatch m; in main() local
1144 assert(!std::regex_search(s, m, std::wregex(L"a.\\{3,5\\}c", std::regex_constants::basic))); in main()
1145 assert(m.size() == 0); in main()
1148 std::wcmatch m; in main() local
1150 assert(std::regex_search(s, m, std::wregex(L"a.\\{3,5\\}c", std::regex_constants::basic))); in main()
1151 assert(m.size() == 1); in main()
1152 assert(!m.prefix().matched); in main()
1153 assert(m.prefix().first == s); in main()
1154 assert(m.prefix().second == m[0].first); in main()
1155 assert(!m.suffix().matched); in main()
1156 assert(m.suffix().first == m[0].second); in main()
1157 assert(m.suffix().second == m[0].second); in main()
1158 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1159 assert(m.position(0) == 0); in main()
1160 assert(m.str(0) == s); in main()
1163 std::wcmatch m; in main() local
1165 assert(std::regex_search(s, m, std::wregex(L"a.\\{3,5\\}c", std::regex_constants::basic))); in main()
1166 assert(m.size() == 1); in main()
1167 assert(!m.prefix().matched); in main()
1168 assert(m.prefix().first == s); in main()
1169 assert(m.prefix().second == m[0].first); in main()
1170 assert(!m.suffix().matched); in main()
1171 assert(m.suffix().first == m[0].second); in main()
1172 assert(m.suffix().second == m[0].second); in main()
1173 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1174 assert(m.position(0) == 0); in main()
1175 assert(m.str(0) == s); in main()
1178 std::wcmatch m; in main() local
1180 assert(std::regex_search(s, m, std::wregex(L"a.\\{3,5\\}c", std::regex_constants::basic))); in main()
1181 assert(m.size() == 1); in main()
1182 assert(!m.prefix().matched); in main()
1183 assert(m.prefix().first == s); in main()
1184 assert(m.prefix().second == m[0].first); in main()
1185 assert(!m.suffix().matched); in main()
1186 assert(m.suffix().first == m[0].second); in main()
1187 assert(m.suffix().second == m[0].second); in main()
1188 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1189 assert(m.position(0) == 0); in main()
1190 assert(m.str(0) == s); in main()
1193 std::wcmatch m; in main() local
1195 assert(!std::regex_search(s, m, std::wregex(L"a.\\{3,5\\}c", std::regex_constants::basic))); in main()
1196 assert(m.size() == 0); in main()
1199 std::wcmatch m; in main() local
1201 … assert(std::regex_search(s, m, std::wregex(L"-\\(.*\\),\\1-", std::regex_constants::basic))); in main()
1202 assert(m.size() == 2); in main()
1203 assert(!m.prefix().matched); in main()
1204 assert(m.prefix().first == s); in main()
1205 assert(m.prefix().second == m[0].first); in main()
1206 assert(!m.suffix().matched); in main()
1207 assert(m.suffix().first == m[0].second); in main()
1208 assert(m.suffix().second == m[0].second); in main()
1209 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1210 assert(m.position(0) == 0); in main()
1211 assert(m.str(0) == s); in main()
1212 assert(m.length(1) == 2); in main()
1213 assert(m.position(1) == 1); in main()
1214 assert(m.str(1) == L"ab"); in main()
1217 std::wcmatch m; in main() local
1219 … assert(std::regex_search(s, m, std::wregex(L"^\\(ab*\\)*\\1$", std::regex_constants::basic))); in main()
1220 assert(m.size() == 2); in main()
1221 assert(!m.prefix().matched); in main()
1222 assert(m.prefix().first == s); in main()
1223 assert(m.prefix().second == m[0].first); in main()
1224 assert(!m.suffix().matched); in main()
1225 assert(m.suffix().first == m[0].second); in main()
1226 assert(m.suffix().second == m[0].second); in main()
1227 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1228 assert(m.position(0) == 0); in main()
1229 assert(m.str(0) == s); in main()
1230 assert(m.length(1) == 3); in main()
1231 assert(m.position(1) == 2); in main()
1232 assert(m.str(1) == L"abb"); in main()
1235 std::wcmatch m; in main() local
1237 … assert(!std::regex_search(s, m, std::wregex(L"^\\(ab*\\)*\\1$", std::regex_constants::basic))); in main()
1238 assert(m.size() == 0); in main()
1241 std::wcmatch m; in main() local
1243 assert(std::regex_search(s, m, std::wregex(L"^\\(Ab*\\)*\\1$", in main()
1245 assert(m.size() == 2); 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()
1252 assert(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()
1255 assert(m.length(1) == 3); in main()
1256 assert(m.position(1) == 2); in main()
1257 assert(m.str(1) == L"Abb"); in main()
1260 std::wcmatch m; in main() local
1262 assert(!std::regex_search(s, m, std::wregex(L"^\\(Ab*\\)*\\1$", in main()
1264 assert(m.size() == 0); in main()
1267 std::wcmatch m; in main() local
1269 assert(std::regex_search(s, m, std::wregex(L"^[a]$", in main()
1271 assert(m.size() == 1); in main()
1272 assert(!m.prefix().matched); in main()
1273 assert(m.prefix().first == s); in main()
1274 assert(m.prefix().second == m[0].first); in main()
1275 assert(!m.suffix().matched); in main()
1276 assert(m.suffix().first == m[0].second); in main()
1277 assert(m.suffix().second == m[0].second); in main()
1278 assert(m.length(0) == 1); in main()
1279 assert(m.position(0) == 0); in main()
1280 assert(m.str(0) == L"a"); in main()
1283 std::wcmatch m; in main() local
1285 assert(std::regex_search(s, m, std::wregex(L"^[ab]$", in main()
1287 assert(m.size() == 1); in main()
1288 assert(!m.prefix().matched); in main()
1289 assert(m.prefix().first == s); in main()
1290 assert(m.prefix().second == m[0].first); in main()
1291 assert(!m.suffix().matched); in main()
1292 assert(m.suffix().first == m[0].second); in main()
1293 assert(m.suffix().second == m[0].second); in main()
1294 assert(m.length(0) == 1); in main()
1295 assert(m.position(0) == 0); in main()
1296 assert(m.str(0) == L"a"); in main()
1299 std::wcmatch m; in main() local
1301 assert(std::regex_search(s, m, std::wregex(L"^[a-f]$", in main()
1303 assert(m.size() == 1); in main()
1304 assert(!m.prefix().matched); in main()
1305 assert(m.prefix().first == s); in main()
1306 assert(m.prefix().second == m[0].first); in main()
1307 assert(!m.suffix().matched); in main()
1308 assert(m.suffix().first == m[0].second); in main()
1309 assert(m.suffix().second == m[0].second); in main()
1310 assert(m.length(0) == 1); in main()
1311 assert(m.position(0) == 0); in main()
1312 assert(m.str(0) == s); in main()
1315 std::wcmatch m; in main() local
1317 assert(!std::regex_search(s, m, std::wregex(L"^[a-f]$", in main()
1319 assert(m.size() == 0); in main()
1322 std::wcmatch m; in main() local
1324 assert(std::regex_search(s, m, std::wregex(L"q[^u]", in main()
1326 assert(m.size() == 1); in main()
1327 assert(m.prefix().matched); in main()
1328 assert(m.prefix().first == s); in main()
1329 assert(m.prefix().second == m[0].first); in main()
1330 assert(!m.suffix().matched); in main()
1331 assert(m.suffix().first == m[0].second); in main()
1332 assert(m.suffix().second == m[0].second); in main()
1333 assert(m.length(0) == 2); in main()
1334 assert(m.position(0) == 3); in main()
1335 assert(m.str(0) == L"qi"); in main()
1338 std::wcmatch m; in main() local
1340 assert(!std::regex_search(s, m, std::wregex(L"q[^u]", in main()
1342 assert(m.size() == 0); in main()
1345 std::wcmatch m; in main() local
1347 assert(std::regex_search(s, m, std::wregex(L"A[[:lower:]]B", in main()
1349 assert(m.size() == 1); in main()
1350 assert(!m.prefix().matched); in main()
1351 assert(m.prefix().first == s); in main()
1352 assert(m.prefix().second == m[0].first); in main()
1353 assert(!m.suffix().matched); in main()
1354 assert(m.suffix().first == m[0].second); in main()
1355 assert(m.suffix().second == m[0].second); in main()
1356 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1357 assert(m.position(0) == 0); in main()
1358 assert(m.str(0) == s); in main()
1361 std::wcmatch m; in main() local
1363 assert(!std::regex_search(s, m, std::wregex(L"A[[:lower:]]B", in main()
1365 assert(m.size() == 0); in main()
1368 std::wcmatch m; in main() local
1370 assert(std::regex_search(s, m, std::wregex(L"A[^[:lower:]]B", in main()
1372 assert(m.size() == 1); in main()
1373 assert(!m.prefix().matched); in main()
1374 assert(m.prefix().first == s); in main()
1375 assert(m.prefix().second == m[0].first); in main()
1376 assert(!m.suffix().matched); in main()
1377 assert(m.suffix().first == m[0].second); in main()
1378 assert(m.suffix().second == m[0].second); in main()
1379 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1380 assert(m.position(0) == 0); in main()
1381 assert(m.str(0) == s); in main()
1384 std::wcmatch m; in main() local
1386 assert(!std::regex_search(s, m, std::wregex(L"A[^[:lower:]]B", in main()
1388 assert(m.size() == 0); in main()
1391 std::wcmatch m; in main() local
1393 assert(!std::regex_search(s, m, std::wregex(L"A[^[:lower:]0-9]B", in main()
1395 assert(m.size() == 0); in main()
1398 std::wcmatch m; in main() local
1400 assert(std::regex_search(s, m, std::wregex(L"A[^[:lower:]0-9]B", in main()
1402 assert(m.size() == 1); in main()
1403 assert(!m.prefix().matched); in main()
1404 assert(m.prefix().first == s); in main()
1405 assert(m.prefix().second == m[0].first); in main()
1406 assert(!m.suffix().matched); in main()
1407 assert(m.suffix().first == m[0].second); in main()
1408 assert(m.suffix().second == m[0].second); in main()
1409 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1410 assert(m.position(0) == 0); in main()
1411 assert(m.str(0) == s); in main()
1414 std::wcmatch m; in main() local
1416 assert(std::regex_search(s, m, std::wregex(L"[a[.hyphen.]z]", in main()
1418 assert(m.size() == 1); in main()
1419 assert(!m.prefix().matched); in main()
1420 assert(m.prefix().first == s); in main()
1421 assert(m.prefix().second == m[0].first); in main()
1422 assert(!m.suffix().matched); in main()
1423 assert(m.suffix().first == m[0].second); in main()
1424 assert(m.suffix().second == m[0].second); in main()
1425 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1426 assert(m.position(0) == 0); in main()
1427 assert(m.str(0) == s); in main()
1430 std::wcmatch m; in main() local
1432 assert(std::regex_search(s, m, std::wregex(L"[a[.hyphen.]z]", in main()
1434 assert(m.size() == 1); in main()
1435 assert(!m.prefix().matched); in main()
1436 assert(m.prefix().first == s); in main()
1437 assert(m.prefix().second == m[0].first); in main()
1438 assert(!m.suffix().matched); in main()
1439 assert(m.suffix().first == m[0].second); in main()
1440 assert(m.suffix().second == m[0].second); in main()
1441 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1442 assert(m.position(0) == 0); in main()
1443 assert(m.str(0) == s); in main()
1446 std::wcmatch m; in main() local
1448 assert(!std::regex_search(s, m, std::wregex(L"[a[.hyphen.]z]", in main()
1450 assert(m.size() == 0); in main()
1454 std::wcmatch m; in main() local
1456 assert(std::regex_search(s, m, std::wregex(L"[a[=M=]z]", in main()
1458 assert(m.size() == 1); in main()
1459 assert(!m.prefix().matched); in main()
1460 assert(m.prefix().first == s); in main()
1461 assert(m.prefix().second == m[0].first); in main()
1462 assert(!m.suffix().matched); in main()
1463 assert(m.suffix().first == m[0].second); in main()
1464 assert(m.suffix().second == m[0].second); in main()
1465 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1466 assert(m.position(0) == 0); in main()
1467 assert(m.str(0) == s); in main()
1470 std::wcmatch m; in main() local
1472 assert(std::regex_search(s, m, std::wregex(L"[a[.ch.]z]", in main()
1474 assert(m.size() == 1); in main()
1475 assert(!m.prefix().matched); in main()
1476 assert(m.prefix().first == s); in main()
1477 assert(m.prefix().second == m[0].first); in main()
1478 assert(!m.suffix().matched); in main()
1479 assert(m.suffix().first == m[0].second); in main()
1480 assert(m.suffix().second == m[0].second); in main()
1481 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1482 assert(m.position(0) == 0); in main()
1483 assert(m.str(0) == s); in main()
1487 std::wcmatch m; in main() local
1489 assert(!std::regex_search(s, m, std::wregex(L"[a[=M=]z]", in main()
1491 assert(m.size() == 0); in main()
1494 std::wcmatch m; in main() local
1496 assert(std::regex_search(s, m, std::wregex(L"[ace1-9]*", in main()
1498 assert(m.size() == 1); in main()
1499 assert(!m.prefix().matched); in main()
1500 assert(m.prefix().first == s); in main()
1501 assert(m.prefix().second == m[0].first); in main()
1502 assert(m.suffix().matched); in main()
1503 assert(m.suffix().first == m[0].second); in main()
1504 assert(m.suffix().second == s + std::char_traits<wchar_t>::length(s)); in main()
1505 assert(m.length(0) == 0); in main()
1506 assert(m.position(0) == 0); in main()
1507 assert(m.str(0) == L""); in main()
1510 std::wcmatch m; in main() local
1512 assert(std::regex_search(s, m, std::wregex(L"[ace1-9]\\{1,\\}", in main()
1514 assert(m.size() == 1); in main()
1515 assert(m.prefix().matched); in main()
1516 assert(m.prefix().first == s); in main()
1517 assert(m.prefix().second == m[0].first); in main()
1518 assert(m.suffix().matched); in main()
1519 assert(m.suffix().first == m[0].second); in main()
1520 assert(m.suffix().second == s + std::char_traits<wchar_t>::length(s)); in main()
1521 assert(m.length(0) == 6); in main()
1522 assert(m.position(0) == 1); in main()
1523 assert(m.str(0) == L"1a45ce"); in main()
1531 std::match_results<BI> m; in main() local
1534 assert(std::regex_search(BI(s), BI(s+ss), m, regex)); in main()
1535 assert(m.size() == 1); in main()
1536 assert(!m.prefix().matched); in main()
1537 assert(m.prefix().first == BI(s)); in main()
1538 assert(m.prefix().second == m[0].first); in main()
1539 assert(!m.suffix().matched); in main()
1540 assert(m.suffix().first == m[0].second); in main()
1541 assert(m.suffix().second == m[0].second); in main()
1542 assert(m.length(0) == 4); in main()
1543 assert(m.position(0) == 0); in main()
1544 assert(m.str(0) == s); in main()