• Home
  • Raw
  • Download

Lines Matching refs:m

37         std::cmatch m;  in main()  local
39 assert(std::regex_match(s, m, std::regex("a", std::regex_constants::extended))); in main()
40 assert(m.size() == 1); in main()
41 assert(!m.empty()); in main()
42 assert(!m.prefix().matched); in main()
43 assert(m.prefix().first == s); in main()
44 assert(m.prefix().second == m[0].first); in main()
45 assert(!m.suffix().matched); in main()
46 assert(m.suffix().first == m[0].second); in main()
47 assert(m.suffix().second == s+1); in main()
48 assert(m.length(0) == 1); in main()
49 assert(m.position(0) == 0); in main()
50 assert(m.str(0) == "a"); in main()
53 std::cmatch m; in main() local
55 assert(std::regex_match(s, m, std::regex("ab", std::regex_constants::extended))); in main()
56 assert(m.size() == 1); in main()
57 assert(!m.prefix().matched); in main()
58 assert(m.prefix().first == s); in main()
59 assert(m.prefix().second == m[0].first); in main()
60 assert(!m.suffix().matched); in main()
61 assert(m.suffix().first == m[0].second); in main()
62 assert(m.suffix().second == s+2); in main()
63 assert(m.length(0) == 2); in main()
64 assert(m.position(0) == 0); in main()
65 assert(m.str(0) == "ab"); in main()
68 std::cmatch m; in main() local
70 assert(!std::regex_match(s, m, std::regex("ba", std::regex_constants::extended))); in main()
71 assert(m.size() == 0); in main()
72 assert(m.empty()); in main()
75 std::cmatch m; in main() local
77 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::extended))); in main()
78 assert(m.size() == 0); in main()
81 std::cmatch m; in main() local
83 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::extended), in main()
85 assert(m.size() == 0); in main()
88 std::cmatch m; in main() local
90 assert(!std::regex_match(s, m, std::regex("bc", std::regex_constants::extended))); in main()
91 assert(m.size() == 0); in main()
94 std::cmatch m; in main() local
96 assert(std::regex_match(s, m, std::regex("ab*c", std::regex_constants::extended))); in main()
97 assert(m.size() == 1); in main()
98 assert(!m.prefix().matched); in main()
99 assert(m.prefix().first == s); in main()
100 assert(m.prefix().second == m[0].first); in main()
101 assert(!m.suffix().matched); in main()
102 assert(m.suffix().first == m[0].second); in main()
103 assert(m.suffix().second == s+4); in main()
104 assert(m.length(0) == 4); in main()
105 assert(m.position(0) == 0); in main()
106 assert(m.str(0) == s); in main()
109 std::cmatch m; in main() local
111 assert(std::regex_match(s, m, std::regex("(ab)*c", std::regex_constants::extended))); in main()
112 assert(m.size() == 2); in main()
113 assert(!m.prefix().matched); in main()
114 assert(m.prefix().first == s); in main()
115 assert(m.prefix().second == m[0].first); in main()
116 assert(!m.suffix().matched); in main()
117 assert(m.suffix().first == m[0].second); in main()
118 assert(m.suffix().second == s+5); in main()
119 assert(m.length(0) == 5); in main()
120 assert(m.position(0) == 0); in main()
121 assert(m.str(0) == s); in main()
122 assert(m.length(1) == 2); in main()
123 assert(m.position(1) == 2); in main()
124 assert(m.str(1) == "ab"); in main()
127 std::cmatch m; in main() local
129 assert(!std::regex_match(s, m, std::regex("cd((e)fg)hi", in main()
131 assert(m.size() == 0); in main()
134 std::cmatch m; in main() local
136 assert(std::regex_match(s, m, std::regex("^abc", std::regex_constants::extended))); in main()
137 assert(m.size() == 1); in main()
138 assert(!m.prefix().matched); in main()
139 assert(m.prefix().first == s); in main()
140 assert(m.prefix().second == m[0].first); in main()
141 assert(!m.suffix().matched); in main()
142 assert(m.suffix().first == m[0].second); in main()
143 assert(m.suffix().second == s+3); in main()
144 assert(m.length(0) == 3); in main()
145 assert(m.position(0) == 0); in main()
146 assert(m.str(0) == s); in main()
149 std::cmatch m; in main() local
151 assert(!std::regex_match(s, m, std::regex("^abc", std::regex_constants::extended))); in main()
152 assert(m.size() == 0); in main()
155 std::cmatch m; in main() local
157 assert(!std::regex_match(s, m, std::regex("^abc", std::regex_constants::extended))); in main()
158 assert(m.size() == 0); in main()
161 std::cmatch m; in main() local
163 assert(std::regex_match(s, m, std::regex("abc$", std::regex_constants::extended))); in main()
164 assert(m.size() == 1); in main()
165 assert(!m.prefix().matched); in main()
166 assert(m.prefix().first == s); in main()
167 assert(m.prefix().second == m[0].first); in main()
168 assert(!m.suffix().matched); in main()
169 assert(m.suffix().first == m[0].second); in main()
170 assert(m.suffix().second == s+3); in main()
171 assert(m.length(0) == 3); in main()
172 assert(m.position(0) == 0); in main()
173 assert(m.str(0) == s); in main()
176 std::cmatch m; in main() local
178 assert(!std::regex_match(s, m, std::regex("abc$", std::regex_constants::extended))); in main()
179 assert(m.size() == 0); in main()
182 std::cmatch m; in main() local
184 assert(!std::regex_match(s, m, std::regex("abc$", std::regex_constants::extended))); in main()
185 assert(m.size() == 0); in main()
188 std::cmatch m; in main() local
190 assert(std::regex_match(s, m, std::regex("a.c", std::regex_constants::extended))); 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+3); in main()
198 assert(m.length(0) == 3); in main()
199 assert(m.position(0) == 0); in main()
200 assert(m.str(0) == s); in main()
203 std::cmatch m; in main() local
205 assert(std::regex_match(s, m, std::regex("a.c", std::regex_constants::extended))); in main()
206 assert(m.size() == 1); in main()
207 assert(!m.prefix().matched); in main()
208 assert(m.prefix().first == s); in main()
209 assert(m.prefix().second == m[0].first); in main()
210 assert(!m.suffix().matched); in main()
211 assert(m.suffix().first == m[0].second); in main()
212 assert(m.suffix().second == s+3); in main()
213 assert(m.length(0) == 3); in main()
214 assert(m.position(0) == 0); in main()
215 assert(m.str(0) == s); in main()
218 std::cmatch m; in main() local
220 assert(std::regex_match(s, m, std::regex("a.c", std::regex_constants::extended))); in main()
221 assert(m.size() == 1); in main()
222 assert(!m.prefix().matched); in main()
223 assert(m.prefix().first == s); in main()
224 assert(m.prefix().second == m[0].first); in main()
225 assert(!m.suffix().matched); in main()
226 assert(m.suffix().first == m[0].second); in main()
227 assert(m.suffix().second == s+3); in main()
228 assert(m.length(0) == 3); in main()
229 assert(m.position(0) == 0); in main()
230 assert(m.str(0) == s); in main()
233 std::cmatch m; in main() local
235 assert(std::regex_match(s, m, std::regex("(.*).*", std::regex_constants::extended))); in main()
236 assert(m.size() == 2); in main()
237 assert(!m.prefix().matched); in main()
238 assert(m.prefix().first == s); in main()
239 assert(m.prefix().second == m[0].first); in main()
240 assert(!m.suffix().matched); in main()
241 assert(m.suffix().first == m[0].second); in main()
242 assert(m.suffix().second == s+6); in main()
243 assert(m.length(0) == 6); in main()
244 assert(m.position(0) == 0); in main()
245 assert(m.str(0) == s); in main()
246 assert(m.length(1) == 6); in main()
247 assert(m.position(1) == 0); in main()
248 assert(m.str(1) == s); in main()
251 std::cmatch m; in main() local
253 assert(!std::regex_match(s, m, std::regex("(a*)*", std::regex_constants::extended))); in main()
254 assert(m.size() == 0); in main()
257 std::cmatch m; in main() local
259 assert(!std::regex_match(s, m, std::regex("ab{3,5}c", std::regex_constants::extended))); in main()
260 assert(m.size() == 0); in main()
263 std::cmatch m; in main() local
265 assert(std::regex_match(s, m, std::regex("ab{3,5}c", std::regex_constants::extended))); in main()
266 assert(m.size() == 1); in main()
267 assert(!m.prefix().matched); in main()
268 assert(m.prefix().first == s); in main()
269 assert(m.prefix().second == m[0].first); in main()
270 assert(!m.suffix().matched); in main()
271 assert(m.suffix().first == m[0].second); in main()
272 assert(m.suffix().second == m[0].second); in main()
273 … assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
274 assert(m.position(0) == 0); in main()
275 assert(m.str(0) == s); in main()
278 std::cmatch m; in main() local
280 assert(std::regex_match(s, m, std::regex("ab{3,5}c", std::regex_constants::extended))); in main()
281 assert(m.size() == 1); in main()
282 assert(!m.prefix().matched); in main()
283 assert(m.prefix().first == s); in main()
284 assert(m.prefix().second == m[0].first); in main()
285 assert(!m.suffix().matched); in main()
286 assert(m.suffix().first == m[0].second); in main()
287 assert(m.suffix().second == m[0].second); in main()
288 … assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
289 assert(m.position(0) == 0); in main()
290 assert(m.str(0) == s); in main()
293 std::cmatch m; in main() local
295 assert(std::regex_match(s, m, std::regex("ab{3,5}c", std::regex_constants::extended))); in main()
296 assert(m.size() == 1); in main()
297 assert(!m.prefix().matched); in main()
298 assert(m.prefix().first == s); in main()
299 assert(m.prefix().second == m[0].first); in main()
300 assert(!m.suffix().matched); in main()
301 assert(m.suffix().first == m[0].second); in main()
302 assert(m.suffix().second == m[0].second); in main()
303 … assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
304 assert(m.position(0) == 0); in main()
305 assert(m.str(0) == s); in main()
308 std::cmatch m; in main() local
310 assert(!std::regex_match(s, m, std::regex("ab{3,5}c", std::regex_constants::extended))); in main()
311 assert(m.size() == 0); in main()
314 std::cmatch m; in main() local
316 assert(!std::regex_match(s, m, std::regex("ab{3,5}c", std::regex_constants::extended))); in main()
317 assert(m.size() == 0); in main()
320 std::cmatch m; in main() local
322 assert(!std::regex_match(s, m, std::regex("a.{3,5}c", std::regex_constants::extended))); in main()
323 assert(m.size() == 0); in main()
326 std::cmatch m; in main() local
328 assert(std::regex_match(s, m, std::regex("a.{3,5}c", std::regex_constants::extended))); in main()
329 assert(m.size() == 1); in main()
330 assert(!m.prefix().matched); in main()
331 assert(m.prefix().first == s); in main()
332 assert(m.prefix().second == m[0].first); in main()
333 assert(!m.suffix().matched); in main()
334 assert(m.suffix().first == m[0].second); in main()
335 assert(m.suffix().second == m[0].second); in main()
336 … assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
337 assert(m.position(0) == 0); in main()
338 assert(m.str(0) == s); in main()
341 std::cmatch m; in main() local
343 assert(std::regex_match(s, m, std::regex("a.{3,5}c", std::regex_constants::extended))); in main()
344 assert(m.size() == 1); in main()
345 assert(!m.prefix().matched); in main()
346 assert(m.prefix().first == s); in main()
347 assert(m.prefix().second == m[0].first); in main()
348 assert(!m.suffix().matched); in main()
349 assert(m.suffix().first == m[0].second); in main()
350 assert(m.suffix().second == m[0].second); in main()
351 … assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
352 assert(m.position(0) == 0); in main()
353 assert(m.str(0) == s); in main()
356 std::cmatch m; in main() local
358 assert(std::regex_match(s, m, std::regex("a.{3,5}c", std::regex_constants::extended))); in main()
359 assert(m.size() == 1); in main()
360 assert(!m.prefix().matched); in main()
361 assert(m.prefix().first == s); in main()
362 assert(m.prefix().second == m[0].first); in main()
363 assert(!m.suffix().matched); in main()
364 assert(m.suffix().first == m[0].second); in main()
365 assert(m.suffix().second == m[0].second); in main()
366 … assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
367 assert(m.position(0) == 0); in main()
368 assert(m.str(0) == s); in main()
371 std::cmatch m; in main() local
373 assert(!std::regex_match(s, m, std::regex("a.{3,5}c", std::regex_constants::extended))); in main()
374 assert(m.size() == 0); in main()
377 std::cmatch m; in main() local
379 assert(std::regex_match(s, m, std::regex("tour|to|tournament", in main()
381 assert(m.size() == 1); in main()
382 assert(!m.prefix().matched); in main()
383 assert(m.prefix().first == s); in main()
384 assert(m.prefix().second == m[0].first); in main()
385 assert(!m.suffix().matched); in main()
386 assert(m.suffix().first == m[0].second); in main()
387 assert(m.suffix().second == m[0].second); in main()
388 … assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
389 assert(m.position(0) == 0); in main()
390 assert(m.str(0) == s); in main()
393 std::cmatch m; in main() local
395 assert(std::regex_match(s, m, std::regex("(tour|to|tournament)+", in main()
397 assert(m.size() == 1); in main()
398 assert(!m.prefix().matched); in main()
399 assert(m.prefix().first == s); in main()
400 assert(m.prefix().second == m[0].first); in main()
401 assert(!m.suffix().matched); in main()
402 assert(m.suffix().first == m[0].second); in main()
403 assert(m.suffix().second == m[0].second); in main()
404 … assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
405 assert(m.position(0) == 0); in main()
406 assert(m.str(0) == s); in main()
409 std::cmatch m; in main() local
411 assert(std::regex_match(s, m, std::regex("(tour|to|t)+", in main()
413 assert(m.size() == 2); 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) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
421 assert(m.position(0) == 0); in main()
422 assert(m.str(0) == s); in main()
423 assert(m.length(1) == 4); in main()
424 assert(m.position(1) == 3); in main()
425 assert(m.str(1) == "tour"); in main()
428 std::cmatch m; in main() local
430 assert(!std::regex_match(s, m, std::regex("-(.*),\1-", std::regex_constants::extended))); in main()
431 assert(m.size() == 0); in main()
434 std::cmatch m; in main() local
436 assert(std::regex_match(s, m, std::regex("-.*,.*-", std::regex_constants::extended))); in main()
437 assert(m.size() == 1); in main()
438 assert(!m.prefix().matched); in main()
439 assert(m.prefix().first == s); in main()
440 assert(m.prefix().second == m[0].first); in main()
441 assert(!m.suffix().matched); in main()
442 assert(m.suffix().first == m[0].second); in main()
443 assert(m.suffix().second == m[0].second); in main()
444 … assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
445 assert(m.position(0) == 0); in main()
446 assert(m.str(0) == s); in main()
449 std::cmatch m; in main() local
451 assert(std::regex_match(s, m, std::regex("^[a]$", in main()
453 assert(m.size() == 1); in main()
454 assert(!m.prefix().matched); in main()
455 assert(m.prefix().first == s); in main()
456 assert(m.prefix().second == m[0].first); in main()
457 assert(!m.suffix().matched); in main()
458 assert(m.suffix().first == m[0].second); in main()
459 assert(m.suffix().second == m[0].second); in main()
460 assert(m.length(0) == 1); in main()
461 assert(m.position(0) == 0); in main()
462 assert(m.str(0) == "a"); in main()
465 std::cmatch m; in main() local
467 assert(std::regex_match(s, m, std::regex("^[ab]$", in main()
469 assert(m.size() == 1); in main()
470 assert(!m.prefix().matched); in main()
471 assert(m.prefix().first == s); in main()
472 assert(m.prefix().second == m[0].first); in main()
473 assert(!m.suffix().matched); in main()
474 assert(m.suffix().first == m[0].second); in main()
475 assert(m.suffix().second == m[0].second); in main()
476 assert(m.length(0) == 1); in main()
477 assert(m.position(0) == 0); in main()
478 assert(m.str(0) == "a"); in main()
481 std::cmatch m; in main() local
483 assert(std::regex_match(s, m, std::regex("^[a-f]$", in main()
485 assert(m.size() == 1); in main()
486 assert(!m.prefix().matched); in main()
487 assert(m.prefix().first == s); in main()
488 assert(m.prefix().second == m[0].first); in main()
489 assert(!m.suffix().matched); in main()
490 assert(m.suffix().first == m[0].second); in main()
491 assert(m.suffix().second == m[0].second); in main()
492 assert(m.length(0) == 1); in main()
493 assert(m.position(0) == 0); in main()
494 assert(m.str(0) == s); in main()
497 std::cmatch m; in main() local
499 assert(!std::regex_match(s, m, std::regex("^[a-f]$", in main()
501 assert(m.size() == 0); in main()
504 std::cmatch m; in main() local
506 assert(!std::regex_match(s, m, std::regex("q[^u]", in main()
508 assert(m.size() == 0); in main()
511 std::cmatch m; in main() local
513 assert(!std::regex_match(s, m, std::regex("q[^u]", in main()
515 assert(m.size() == 0); in main()
518 std::cmatch m; in main() local
520 assert(std::regex_match(s, m, std::regex("A[[:lower:]]B", in main()
522 assert(m.size() == 1); in main()
523 assert(!m.prefix().matched); in main()
524 assert(m.prefix().first == s); in main()
525 assert(m.prefix().second == m[0].first); in main()
526 assert(!m.suffix().matched); in main()
527 assert(m.suffix().first == m[0].second); in main()
528 assert(m.suffix().second == m[0].second); in main()
529 … assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
530 assert(m.position(0) == 0); in main()
531 assert(m.str(0) == s); in main()
534 std::cmatch m; in main() local
536 assert(!std::regex_match(s, m, std::regex("A[[:lower:]]B", in main()
538 assert(m.size() == 0); in main()
541 std::cmatch m; in main() local
543 assert(std::regex_match(s, m, std::regex("A[^[:lower:]]B", 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) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); 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_match(s, m, std::regex("A[^[:lower:]]B", in main()
561 assert(m.size() == 0); in main()
564 std::cmatch m; in main() local
566 assert(!std::regex_match(s, m, std::regex("A[^[:lower:]0-9]B", in main()
568 assert(m.size() == 0); in main()
571 std::cmatch m; in main() local
573 assert(std::regex_match(s, m, std::regex("A[^[:lower:]0-9]B", in main()
575 assert(m.size() == 1); in main()
576 assert(!m.prefix().matched); in main()
577 assert(m.prefix().first == s); in main()
578 assert(m.prefix().second == m[0].first); in main()
579 assert(!m.suffix().matched); in main()
580 assert(m.suffix().first == m[0].second); in main()
581 assert(m.suffix().second == m[0].second); in main()
582 … assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
583 assert(m.position(0) == 0); in main()
584 assert(m.str(0) == s); in main()
587 std::cmatch m; in main() local
589 assert(std::regex_match(s, m, std::regex("[a[.hyphen.]z]", 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) >= 0 && static_cast<size_t>(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_match(s, m, std::regex("[a[.hyphen.]z]", in main()
607 assert(m.size() == 1); in main()
608 assert(!m.prefix().matched); in main()
609 assert(m.prefix().first == s); in main()
610 assert(m.prefix().second == m[0].first); in main()
611 assert(!m.suffix().matched); in main()
612 assert(m.suffix().first == m[0].second); in main()
613 assert(m.suffix().second == m[0].second); in main()
614 … assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
615 assert(m.position(0) == 0); in main()
616 assert(m.str(0) == s); in main()
619 std::cmatch m; in main() local
621 assert(!std::regex_match(s, m, std::regex("[a[.hyphen.]z]", in main()
623 assert(m.size() == 0); in main()
627 std::cmatch m; in main() local
629 assert(std::regex_match(s, m, std::regex("[a[=M=]z]", in main()
631 assert(m.size() == 1); in main()
632 assert(!m.prefix().matched); in main()
633 assert(m.prefix().first == s); in main()
634 assert(m.prefix().second == m[0].first); in main()
635 assert(!m.suffix().matched); in main()
636 assert(m.suffix().first == m[0].second); in main()
637 assert(m.suffix().second == m[0].second); in main()
638 … assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
639 assert(m.position(0) == 0); in main()
640 assert(m.str(0) == s); in main()
643 std::cmatch m; in main() local
645 assert(std::regex_match(s, m, std::regex("[a[.ch.]z]", in main()
647 assert(m.size() == 1); in main()
648 assert(!m.prefix().matched); in main()
649 assert(m.prefix().first == s); in main()
650 assert(m.prefix().second == m[0].first); in main()
651 assert(!m.suffix().matched); in main()
652 assert(m.suffix().first == m[0].second); in main()
653 assert(m.suffix().second == m[0].second); in main()
654 … assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s)); in main()
655 assert(m.position(0) == 0); in main()
656 assert(m.str(0) == s); in main()
660 std::cmatch m; in main() local
662 assert(!std::regex_match(s, m, std::regex("[a[=M=]z]", in main()
664 assert(m.size() == 0); in main()
667 std::cmatch m; in main() local
669 assert(!std::regex_match(s, m, std::regex("[ace1-9]*", in main()
671 assert(m.size() == 0); in main()
674 std::cmatch m; in main() local
676 assert(!std::regex_match(s, m, std::regex("[ace1-9]+", in main()
678 assert(m.size() == 0); in main()
686 std::match_results<BI> m; in main() local
689 assert(std::regex_match(BI(s), BI(s+ss), m, regex)); in main()
690 assert(m.size() == 1); in main()
691 assert(!m.prefix().matched); in main()
692 assert(m.prefix().first == BI(s)); in main()
693 assert(m.prefix().second == m[0].first); in main()
694 assert(!m.suffix().matched); in main()
695 assert(m.suffix().first == m[0].second); in main()
696 assert(m.suffix().second == m[0].second); in main()
697 assert(m.length(0) == 4); in main()
698 assert(m.position(0) == 0); in main()
699 assert(m.str(0) == s); in main()
703 std::wcmatch m; in main() local
705 assert(std::regex_match(s, m, std::wregex(L"a", std::regex_constants::extended))); in main()
706 assert(m.size() == 1); in main()
707 assert(!m.empty()); in main()
708 assert(!m.prefix().matched); in main()
709 assert(m.prefix().first == s); in main()
710 assert(m.prefix().second == m[0].first); in main()
711 assert(!m.suffix().matched); in main()
712 assert(m.suffix().first == m[0].second); in main()
713 assert(m.suffix().second == s+1); in main()
714 assert(m.length(0) == 1); in main()
715 assert(m.position(0) == 0); in main()
716 assert(m.str(0) == L"a"); in main()
719 std::wcmatch m; in main() local
721 assert(std::regex_match(s, m, std::wregex(L"ab", std::regex_constants::extended))); in main()
722 assert(m.size() == 1); in main()
723 assert(!m.prefix().matched); in main()
724 assert(m.prefix().first == s); in main()
725 assert(m.prefix().second == m[0].first); in main()
726 assert(!m.suffix().matched); in main()
727 assert(m.suffix().first == m[0].second); in main()
728 assert(m.suffix().second == s+2); in main()
729 assert(m.length(0) == 2); in main()
730 assert(m.position(0) == 0); in main()
731 assert(m.str(0) == L"ab"); in main()
734 std::wcmatch m; in main() local
736 assert(!std::regex_match(s, m, std::wregex(L"ba", std::regex_constants::extended))); in main()
737 assert(m.size() == 0); in main()
738 assert(m.empty()); in main()
741 std::wcmatch m; in main() local
743 assert(!std::regex_match(s, m, std::wregex(L"ab", std::regex_constants::extended))); in main()
744 assert(m.size() == 0); in main()
747 std::wcmatch m; in main() local
749 assert(!std::regex_match(s, m, std::wregex(L"ab", std::regex_constants::extended), in main()
751 assert(m.size() == 0); in main()
754 std::wcmatch m; in main() local
756 assert(!std::regex_match(s, m, std::wregex(L"bc", std::regex_constants::extended))); in main()
757 assert(m.size() == 0); in main()
760 std::wcmatch m; in main() local
762 assert(std::regex_match(s, m, std::wregex(L"ab*c", std::regex_constants::extended))); in main()
763 assert(m.size() == 1); in main()
764 assert(!m.prefix().matched); in main()
765 assert(m.prefix().first == s); in main()
766 assert(m.prefix().second == m[0].first); in main()
767 assert(!m.suffix().matched); in main()
768 assert(m.suffix().first == m[0].second); in main()
769 assert(m.suffix().second == s+4); in main()
770 assert(m.length(0) == 4); in main()
771 assert(m.position(0) == 0); in main()
772 assert(m.str(0) == s); in main()
775 std::wcmatch m; in main() local
777 assert(std::regex_match(s, m, std::wregex(L"(ab)*c", std::regex_constants::extended))); in main()
778 assert(m.size() == 2); in main()
779 assert(!m.prefix().matched); in main()
780 assert(m.prefix().first == s); in main()
781 assert(m.prefix().second == m[0].first); in main()
782 assert(!m.suffix().matched); in main()
783 assert(m.suffix().first == m[0].second); in main()
784 assert(m.suffix().second == s+5); in main()
785 assert(m.length(0) == 5); in main()
786 assert(m.position(0) == 0); in main()
787 assert(m.str(0) == s); in main()
788 assert(m.length(1) == 2); in main()
789 assert(m.position(1) == 2); in main()
790 assert(m.str(1) == L"ab"); in main()
793 std::wcmatch m; in main() local
795 assert(!std::regex_match(s, m, std::wregex(L"cd((e)fg)hi", in main()
797 assert(m.size() == 0); in main()
800 std::wcmatch m; in main() local
802 assert(std::regex_match(s, m, std::wregex(L"^abc", std::regex_constants::extended))); in main()
803 assert(m.size() == 1); in main()
804 assert(!m.prefix().matched); in main()
805 assert(m.prefix().first == s); in main()
806 assert(m.prefix().second == m[0].first); in main()
807 assert(!m.suffix().matched); in main()
808 assert(m.suffix().first == m[0].second); in main()
809 assert(m.suffix().second == s+3); in main()
810 assert(m.length(0) == 3); in main()
811 assert(m.position(0) == 0); in main()
812 assert(m.str(0) == s); in main()
815 std::wcmatch m; in main() local
817 assert(!std::regex_match(s, m, std::wregex(L"^abc", std::regex_constants::extended))); in main()
818 assert(m.size() == 0); in main()
821 std::wcmatch m; in main() local
823 assert(!std::regex_match(s, m, std::wregex(L"^abc", std::regex_constants::extended))); in main()
824 assert(m.size() == 0); in main()
827 std::wcmatch m; in main() local
829 assert(std::regex_match(s, m, std::wregex(L"abc$", std::regex_constants::extended))); in main()
830 assert(m.size() == 1); in main()
831 assert(!m.prefix().matched); in main()
832 assert(m.prefix().first == s); in main()
833 assert(m.prefix().second == m[0].first); in main()
834 assert(!m.suffix().matched); in main()
835 assert(m.suffix().first == m[0].second); in main()
836 assert(m.suffix().second == s+3); in main()
837 assert(m.length(0) == 3); in main()
838 assert(m.position(0) == 0); in main()
839 assert(m.str(0) == s); in main()
842 std::wcmatch m; in main() local
844 assert(!std::regex_match(s, m, std::wregex(L"abc$", std::regex_constants::extended))); in main()
845 assert(m.size() == 0); in main()
848 std::wcmatch m; in main() local
850 assert(!std::regex_match(s, m, std::wregex(L"abc$", std::regex_constants::extended))); in main()
851 assert(m.size() == 0); in main()
854 std::wcmatch m; in main() local
856 assert(std::regex_match(s, m, std::wregex(L"a.c", std::regex_constants::extended))); in main()
857 assert(m.size() == 1); in main()
858 assert(!m.prefix().matched); in main()
859 assert(m.prefix().first == s); in main()
860 assert(m.prefix().second == m[0].first); in main()
861 assert(!m.suffix().matched); in main()
862 assert(m.suffix().first == m[0].second); in main()
863 assert(m.suffix().second == s+3); in main()
864 assert(m.length(0) == 3); in main()
865 assert(m.position(0) == 0); in main()
866 assert(m.str(0) == s); in main()
869 std::wcmatch m; in main() local
871 assert(std::regex_match(s, m, std::wregex(L"a.c", std::regex_constants::extended))); in main()
872 assert(m.size() == 1); in main()
873 assert(!m.prefix().matched); in main()
874 assert(m.prefix().first == s); in main()
875 assert(m.prefix().second == m[0].first); in main()
876 assert(!m.suffix().matched); in main()
877 assert(m.suffix().first == m[0].second); in main()
878 assert(m.suffix().second == s+3); in main()
879 assert(m.length(0) == 3); in main()
880 assert(m.position(0) == 0); in main()
881 assert(m.str(0) == s); in main()
884 std::wcmatch m; in main() local
886 assert(std::regex_match(s, m, std::wregex(L"a.c", std::regex_constants::extended))); in main()
887 assert(m.size() == 1); in main()
888 assert(!m.prefix().matched); in main()
889 assert(m.prefix().first == s); in main()
890 assert(m.prefix().second == m[0].first); in main()
891 assert(!m.suffix().matched); in main()
892 assert(m.suffix().first == m[0].second); in main()
893 assert(m.suffix().second == s+3); in main()
894 assert(m.length(0) == 3); in main()
895 assert(m.position(0) == 0); in main()
896 assert(m.str(0) == s); in main()
899 std::wcmatch m; in main() local
901 assert(std::regex_match(s, m, std::wregex(L"(.*).*", std::regex_constants::extended))); in main()
902 assert(m.size() == 2); in main()
903 assert(!m.prefix().matched); in main()
904 assert(m.prefix().first == s); in main()
905 assert(m.prefix().second == m[0].first); in main()
906 assert(!m.suffix().matched); in main()
907 assert(m.suffix().first == m[0].second); in main()
908 assert(m.suffix().second == s+6); in main()
909 assert(m.length(0) == 6); in main()
910 assert(m.position(0) == 0); in main()
911 assert(m.str(0) == s); in main()
912 assert(m.length(1) == 6); in main()
913 assert(m.position(1) == 0); in main()
914 assert(m.str(1) == s); in main()
917 std::wcmatch m; in main() local
919 assert(!std::regex_match(s, m, std::wregex(L"(a*)*", std::regex_constants::extended))); in main()
920 assert(m.size() == 0); in main()
923 std::wcmatch m; in main() local
925 assert(!std::regex_match(s, m, std::wregex(L"ab{3,5}c", std::regex_constants::extended))); in main()
926 assert(m.size() == 0); in main()
929 std::wcmatch m; in main() local
931 assert(std::regex_match(s, m, std::wregex(L"ab{3,5}c", std::regex_constants::extended))); in main()
932 assert(m.size() == 1); in main()
933 assert(!m.prefix().matched); in main()
934 assert(m.prefix().first == s); in main()
935 assert(m.prefix().second == m[0].first); in main()
936 assert(!m.suffix().matched); in main()
937 assert(m.suffix().first == m[0].second); in main()
938 assert(m.suffix().second == m[0].second); in main()
939 …assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
940 assert(m.position(0) == 0); in main()
941 assert(m.str(0) == s); in main()
944 std::wcmatch m; in main() local
946 assert(std::regex_match(s, m, std::wregex(L"ab{3,5}c", std::regex_constants::extended))); in main()
947 assert(m.size() == 1); in main()
948 assert(!m.prefix().matched); in main()
949 assert(m.prefix().first == s); in main()
950 assert(m.prefix().second == m[0].first); in main()
951 assert(!m.suffix().matched); in main()
952 assert(m.suffix().first == m[0].second); in main()
953 assert(m.suffix().second == m[0].second); in main()
954 …assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
955 assert(m.position(0) == 0); in main()
956 assert(m.str(0) == s); in main()
959 std::wcmatch m; in main() local
961 assert(std::regex_match(s, m, std::wregex(L"ab{3,5}c", std::regex_constants::extended))); in main()
962 assert(m.size() == 1); in main()
963 assert(!m.prefix().matched); in main()
964 assert(m.prefix().first == s); in main()
965 assert(m.prefix().second == m[0].first); in main()
966 assert(!m.suffix().matched); in main()
967 assert(m.suffix().first == m[0].second); in main()
968 assert(m.suffix().second == m[0].second); in main()
969 …assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
970 assert(m.position(0) == 0); in main()
971 assert(m.str(0) == s); in main()
974 std::wcmatch m; in main() local
976 assert(!std::regex_match(s, m, std::wregex(L"ab{3,5}c", std::regex_constants::extended))); in main()
977 assert(m.size() == 0); in main()
980 std::wcmatch m; in main() local
982 assert(!std::regex_match(s, m, std::wregex(L"ab{3,5}c", std::regex_constants::extended))); in main()
983 assert(m.size() == 0); in main()
986 std::wcmatch m; in main() local
988 assert(!std::regex_match(s, m, std::wregex(L"a.{3,5}c", std::regex_constants::extended))); in main()
989 assert(m.size() == 0); in main()
992 std::wcmatch m; in main() local
994 assert(std::regex_match(s, m, std::wregex(L"a.{3,5}c", std::regex_constants::extended))); in main()
995 assert(m.size() == 1); in main()
996 assert(!m.prefix().matched); in main()
997 assert(m.prefix().first == s); in main()
998 assert(m.prefix().second == m[0].first); in main()
999 assert(!m.suffix().matched); in main()
1000 assert(m.suffix().first == m[0].second); in main()
1001 assert(m.suffix().second == m[0].second); in main()
1002 …assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1003 assert(m.position(0) == 0); in main()
1004 assert(m.str(0) == s); in main()
1007 std::wcmatch m; in main() local
1009 assert(std::regex_match(s, m, std::wregex(L"a.{3,5}c", std::regex_constants::extended))); in main()
1010 assert(m.size() == 1); in main()
1011 assert(!m.prefix().matched); in main()
1012 assert(m.prefix().first == s); in main()
1013 assert(m.prefix().second == m[0].first); in main()
1014 assert(!m.suffix().matched); in main()
1015 assert(m.suffix().first == m[0].second); in main()
1016 assert(m.suffix().second == m[0].second); in main()
1017 …assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1018 assert(m.position(0) == 0); in main()
1019 assert(m.str(0) == s); in main()
1022 std::wcmatch m; in main() local
1024 assert(std::regex_match(s, m, std::wregex(L"a.{3,5}c", std::regex_constants::extended))); in main()
1025 assert(m.size() == 1); in main()
1026 assert(!m.prefix().matched); in main()
1027 assert(m.prefix().first == s); in main()
1028 assert(m.prefix().second == m[0].first); in main()
1029 assert(!m.suffix().matched); in main()
1030 assert(m.suffix().first == m[0].second); in main()
1031 assert(m.suffix().second == m[0].second); in main()
1032 …assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1033 assert(m.position(0) == 0); in main()
1034 assert(m.str(0) == s); in main()
1037 std::wcmatch m; in main() local
1039 assert(!std::regex_match(s, m, std::wregex(L"a.{3,5}c", std::regex_constants::extended))); in main()
1040 assert(m.size() == 0); in main()
1043 std::wcmatch m; in main() local
1045 assert(std::regex_match(s, m, std::wregex(L"tour|to|tournament", in main()
1047 assert(m.size() == 1); in main()
1048 assert(!m.prefix().matched); in main()
1049 assert(m.prefix().first == s); in main()
1050 assert(m.prefix().second == m[0].first); in main()
1051 assert(!m.suffix().matched); in main()
1052 assert(m.suffix().first == m[0].second); in main()
1053 assert(m.suffix().second == m[0].second); in main()
1054 …assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1055 assert(m.position(0) == 0); in main()
1056 assert(m.str(0) == s); in main()
1059 std::wcmatch m; in main() local
1061 assert(std::regex_match(s, m, std::wregex(L"(tour|to|tournament)+", in main()
1063 assert(m.size() == 1); in main()
1064 assert(!m.prefix().matched); in main()
1065 assert(m.prefix().first == s); in main()
1066 assert(m.prefix().second == m[0].first); in main()
1067 assert(!m.suffix().matched); in main()
1068 assert(m.suffix().first == m[0].second); in main()
1069 assert(m.suffix().second == m[0].second); in main()
1070 …assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1071 assert(m.position(0) == 0); in main()
1072 assert(m.str(0) == s); in main()
1075 std::wcmatch m; in main() local
1077 assert(std::regex_match(s, m, std::wregex(L"(tour|to|t)+", in main()
1079 assert(m.size() == 2); in main()
1080 assert(!m.prefix().matched); in main()
1081 assert(m.prefix().first == s); in main()
1082 assert(m.prefix().second == m[0].first); in main()
1083 assert(!m.suffix().matched); in main()
1084 assert(m.suffix().first == m[0].second); in main()
1085 assert(m.suffix().second == m[0].second); in main()
1086 …assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1087 assert(m.position(0) == 0); in main()
1088 assert(m.str(0) == s); in main()
1089 assert(m.length(1) == 4); in main()
1090 assert(m.position(1) == 3); in main()
1091 assert(m.str(1) == L"tour"); in main()
1094 std::wcmatch m; in main() local
1096 assert(!std::regex_match(s, m, std::wregex(L"-(.*),\1-", std::regex_constants::extended))); in main()
1097 assert(m.size() == 0); in main()
1100 std::wcmatch m; in main() local
1102 assert(std::regex_match(s, m, std::wregex(L"-.*,.*-", std::regex_constants::extended))); 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) >= 0 && static_cast<size_t>(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_match(s, m, std::wregex(L"^[a]$", in main()
1119 assert(m.size() == 1); in main()
1120 assert(!m.prefix().matched); in main()
1121 assert(m.prefix().first == s); in main()
1122 assert(m.prefix().second == m[0].first); in main()
1123 assert(!m.suffix().matched); in main()
1124 assert(m.suffix().first == m[0].second); in main()
1125 assert(m.suffix().second == m[0].second); in main()
1126 assert(m.length(0) == 1); in main()
1127 assert(m.position(0) == 0); in main()
1128 assert(m.str(0) == L"a"); in main()
1131 std::wcmatch m; in main() local
1133 assert(std::regex_match(s, m, std::wregex(L"^[ab]$", in main()
1135 assert(m.size() == 1); in main()
1136 assert(!m.prefix().matched); in main()
1137 assert(m.prefix().first == s); in main()
1138 assert(m.prefix().second == m[0].first); in main()
1139 assert(!m.suffix().matched); in main()
1140 assert(m.suffix().first == m[0].second); in main()
1141 assert(m.suffix().second == m[0].second); in main()
1142 assert(m.length(0) == 1); in main()
1143 assert(m.position(0) == 0); in main()
1144 assert(m.str(0) == L"a"); in main()
1147 std::wcmatch m; in main() local
1149 assert(std::regex_match(s, m, std::wregex(L"^[a-f]$", in main()
1151 assert(m.size() == 1); in main()
1152 assert(!m.prefix().matched); in main()
1153 assert(m.prefix().first == s); in main()
1154 assert(m.prefix().second == m[0].first); in main()
1155 assert(!m.suffix().matched); in main()
1156 assert(m.suffix().first == m[0].second); in main()
1157 assert(m.suffix().second == m[0].second); in main()
1158 assert(m.length(0) == 1); in main()
1159 assert(m.position(0) == 0); in main()
1160 assert(m.str(0) == s); in main()
1163 std::wcmatch m; in main() local
1165 assert(!std::regex_match(s, m, std::wregex(L"^[a-f]$", in main()
1167 assert(m.size() == 0); in main()
1170 std::wcmatch m; in main() local
1172 assert(!std::regex_match(s, m, std::wregex(L"q[^u]", in main()
1174 assert(m.size() == 0); in main()
1177 std::wcmatch m; in main() local
1179 assert(!std::regex_match(s, m, std::wregex(L"q[^u]", in main()
1181 assert(m.size() == 0); in main()
1184 std::wcmatch m; in main() local
1186 assert(std::regex_match(s, m, std::wregex(L"A[[:lower:]]B", in main()
1188 assert(m.size() == 1); in main()
1189 assert(!m.prefix().matched); in main()
1190 assert(m.prefix().first == s); in main()
1191 assert(m.prefix().second == m[0].first); in main()
1192 assert(!m.suffix().matched); in main()
1193 assert(m.suffix().first == m[0].second); in main()
1194 assert(m.suffix().second == m[0].second); in main()
1195 …assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1196 assert(m.position(0) == 0); in main()
1197 assert(m.str(0) == s); in main()
1200 std::wcmatch m; in main() local
1202 assert(!std::regex_match(s, m, std::wregex(L"A[[:lower:]]B", in main()
1204 assert(m.size() == 0); in main()
1207 std::wcmatch m; in main() local
1209 assert(std::regex_match(s, m, std::wregex(L"A[^[:lower:]]B", in main()
1211 assert(m.size() == 1); in main()
1212 assert(!m.prefix().matched); in main()
1213 assert(m.prefix().first == s); in main()
1214 assert(m.prefix().second == m[0].first); in main()
1215 assert(!m.suffix().matched); in main()
1216 assert(m.suffix().first == m[0].second); in main()
1217 assert(m.suffix().second == m[0].second); in main()
1218 …assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1219 assert(m.position(0) == 0); in main()
1220 assert(m.str(0) == s); in main()
1223 std::wcmatch m; in main() local
1225 assert(!std::regex_match(s, m, std::wregex(L"A[^[:lower:]]B", in main()
1227 assert(m.size() == 0); in main()
1230 std::wcmatch m; in main() local
1232 assert(!std::regex_match(s, m, std::wregex(L"A[^[:lower:]0-9]B", in main()
1234 assert(m.size() == 0); in main()
1237 std::wcmatch m; in main() local
1239 assert(std::regex_match(s, m, std::wregex(L"A[^[:lower:]0-9]B", in main()
1241 assert(m.size() == 1); in main()
1242 assert(!m.prefix().matched); in main()
1243 assert(m.prefix().first == s); in main()
1244 assert(m.prefix().second == m[0].first); in main()
1245 assert(!m.suffix().matched); in main()
1246 assert(m.suffix().first == m[0].second); in main()
1247 assert(m.suffix().second == m[0].second); in main()
1248 …assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1249 assert(m.position(0) == 0); in main()
1250 assert(m.str(0) == s); in main()
1253 std::wcmatch m; in main() local
1255 assert(std::regex_match(s, m, std::wregex(L"[a[.hyphen.]z]", in main()
1257 assert(m.size() == 1); in main()
1258 assert(!m.prefix().matched); in main()
1259 assert(m.prefix().first == s); in main()
1260 assert(m.prefix().second == m[0].first); in main()
1261 assert(!m.suffix().matched); in main()
1262 assert(m.suffix().first == m[0].second); in main()
1263 assert(m.suffix().second == m[0].second); in main()
1264 …assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1265 assert(m.position(0) == 0); in main()
1266 assert(m.str(0) == s); in main()
1269 std::wcmatch m; in main() local
1271 assert(std::regex_match(s, m, std::wregex(L"[a[.hyphen.]z]", in main()
1273 assert(m.size() == 1); in main()
1274 assert(!m.prefix().matched); in main()
1275 assert(m.prefix().first == s); in main()
1276 assert(m.prefix().second == m[0].first); in main()
1277 assert(!m.suffix().matched); in main()
1278 assert(m.suffix().first == m[0].second); in main()
1279 assert(m.suffix().second == m[0].second); in main()
1280 …assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1281 assert(m.position(0) == 0); in main()
1282 assert(m.str(0) == s); in main()
1285 std::wcmatch m; in main() local
1287 assert(!std::regex_match(s, m, std::wregex(L"[a[.hyphen.]z]", in main()
1289 assert(m.size() == 0); in main()
1293 std::wcmatch m; in main() local
1295 assert(std::regex_match(s, m, std::wregex(L"[a[=M=]z]", in main()
1297 assert(m.size() == 1); in main()
1298 assert(!m.prefix().matched); in main()
1299 assert(m.prefix().first == s); in main()
1300 assert(m.prefix().second == m[0].first); in main()
1301 assert(!m.suffix().matched); in main()
1302 assert(m.suffix().first == m[0].second); in main()
1303 assert(m.suffix().second == m[0].second); in main()
1304 …assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1305 assert(m.position(0) == 0); in main()
1306 assert(m.str(0) == s); in main()
1309 std::wcmatch m; in main() local
1311 assert(std::regex_match(s, m, std::wregex(L"[a[.ch.]z]", in main()
1313 assert(m.size() == 1); in main()
1314 assert(!m.prefix().matched); in main()
1315 assert(m.prefix().first == s); in main()
1316 assert(m.prefix().second == m[0].first); in main()
1317 assert(!m.suffix().matched); in main()
1318 assert(m.suffix().first == m[0].second); in main()
1319 assert(m.suffix().second == m[0].second); in main()
1320 …assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s… in main()
1321 assert(m.position(0) == 0); in main()
1322 assert(m.str(0) == s); in main()
1326 std::wcmatch m; in main() local
1328 assert(!std::regex_match(s, m, std::wregex(L"[a[=M=]z]", in main()
1330 assert(m.size() == 0); in main()
1333 std::wcmatch m; in main() local
1335 assert(!std::regex_match(s, m, std::wregex(L"[ace1-9]*", in main()
1337 assert(m.size() == 0); in main()
1340 std::wcmatch m; in main() local
1342 assert(!std::regex_match(s, m, std::wregex(L"[ace1-9]+", in main()
1344 assert(m.size() == 0); in main()
1352 std::match_results<BI> m; in main() local
1355 assert(std::regex_match(BI(s), BI(s+ss), m, regex)); in main()
1356 assert(m.size() == 1); in main()
1357 assert(!m.prefix().matched); in main()
1358 assert(m.prefix().first == BI(s)); in main()
1359 assert(m.prefix().second == m[0].first); in main()
1360 assert(!m.suffix().matched); in main()
1361 assert(m.suffix().first == m[0].second); in main()
1362 assert(m.suffix().second == m[0].second); in main()
1363 assert(m.length(0) == 4); in main()
1364 assert(m.position(0) == 0); in main()
1365 assert(m.str(0) == s); in main()