Lines Matching refs:m

33         std::cmatch m;  in main()  local
35 assert(std::regex_search(s, m, std::regex("a", std::regex_constants::awk))); in main()
36 assert(m.size() == 1); in main()
37 assert(!m.empty()); in main()
38 assert(!m.prefix().matched); in main()
39 assert(m.prefix().first == s); in main()
40 assert(m.prefix().second == m[0].first); in main()
41 assert(!m.suffix().matched); in main()
42 assert(m.suffix().first == m[0].second); in main()
43 assert(m.suffix().second == s+1); in main()
44 assert(m.length(0) == 1); in main()
45 assert(m.position(0) == 0); in main()
46 assert(m.str(0) == "a"); in main()
49 std::cmatch m; in main() local
51 assert(std::regex_search(s, m, std::regex("ab", std::regex_constants::awk))); in main()
52 assert(m.size() == 1); in main()
53 assert(!m.prefix().matched); in main()
54 assert(m.prefix().first == s); in main()
55 assert(m.prefix().second == m[0].first); in main()
56 assert(!m.suffix().matched); in main()
57 assert(m.suffix().first == m[0].second); in main()
58 assert(m.suffix().second == s+2); in main()
59 assert(m.length(0) == 2); in main()
60 assert(m.position(0) == 0); in main()
61 assert(m.str(0) == "ab"); in main()
64 std::cmatch m; in main() local
66 assert(!std::regex_search(s, m, std::regex("ba", std::regex_constants::awk))); in main()
67 assert(m.size() == 0); in main()
68 assert(m.empty()); in main()
71 std::cmatch m; in main() local
73 assert(std::regex_search(s, m, std::regex("ab", std::regex_constants::awk))); in main()
74 assert(m.size() == 1); in main()
75 assert(m.prefix().matched); in main()
76 assert(m.prefix().first == s); in main()
77 assert(m.prefix().second == m[0].first); in main()
78 assert(!m.suffix().matched); in main()
79 assert(m.suffix().first == m[0].second); in main()
80 assert(m.suffix().second == s+3); in main()
81 assert(m.length(0) == 2); in main()
82 assert(m.position(0) == 1); in main()
83 assert(m.str(0) == "ab"); in main()
86 std::cmatch m; in main() local
88 assert(!std::regex_search(s, m, std::regex("ab", std::regex_constants::awk), in main()
90 assert(m.size() == 0); in main()
93 std::cmatch m; in main() local
95 assert(std::regex_search(s, m, std::regex("bc", std::regex_constants::awk))); in main()
96 assert(m.size() == 1); in main()
97 assert(m.prefix().matched); in main()
98 assert(m.prefix().first == s); in main()
99 assert(m.prefix().second == m[0].first); in main()
100 assert(m.suffix().matched); in main()
101 assert(m.suffix().first == m[0].second); in main()
102 assert(m.suffix().second == s+4); in main()
103 assert(m.length(0) == 2); in main()
104 assert(m.position(0) == 1); in main()
105 assert(m.str(0) == "bc"); in main()
108 std::cmatch m; in main() local
110 assert(std::regex_search(s, m, std::regex("ab*c", std::regex_constants::awk))); in main()
111 assert(m.size() == 1); in main()
112 assert(!m.prefix().matched); in main()
113 assert(m.prefix().first == s); in main()
114 assert(m.prefix().second == m[0].first); in main()
115 assert(!m.suffix().matched); in main()
116 assert(m.suffix().first == m[0].second); in main()
117 assert(m.suffix().second == s+4); in main()
118 assert(m.length(0) == 4); in main()
119 assert(m.position(0) == 0); in main()
120 assert(m.str(0) == s); in main()
123 std::cmatch m; in main() local
125 assert(std::regex_search(s, m, std::regex("(ab)*c", std::regex_constants::awk))); in main()
126 assert(m.size() == 2); in main()
127 assert(!m.prefix().matched); in main()
128 assert(m.prefix().first == s); in main()
129 assert(m.prefix().second == m[0].first); in main()
130 assert(!m.suffix().matched); in main()
131 assert(m.suffix().first == m[0].second); in main()
132 assert(m.suffix().second == s+5); in main()
133 assert(m.length(0) == 5); in main()
134 assert(m.position(0) == 0); in main()
135 assert(m.str(0) == s); in main()
136 assert(m.length(1) == 2); in main()
137 assert(m.position(1) == 2); in main()
138 assert(m.str(1) == "ab"); in main()
141 std::cmatch m; in main() local
143 assert(std::regex_search(s, m, std::regex("cd((e)fg)hi", in main()
145 assert(m.size() == 3); in main()
146 assert(m.prefix().matched); in main()
147 assert(m.prefix().first == s); in main()
148 assert(m.prefix().second == m[0].first); in main()
149 assert(m.suffix().matched); in main()
150 assert(m.suffix().first == m[0].second); in main()
151 assert(m.suffix().second == s+std::regex_traits<char>::length(s)); in main()
152 assert(m.length(0) == 7); in main()
153 assert(m.position(0) == 2); in main()
154 assert(m.str(0) == "cdefghi"); in main()
155 assert(m.length(1) == 3); in main()
156 assert(m.position(1) == 4); in main()
157 assert(m.str(1) == "efg"); in main()
158 assert(m.length(2) == 1); in main()
159 assert(m.position(2) == 4); in main()
160 assert(m.str(2) == "e"); in main()
163 std::cmatch m; in main() local
165 assert(std::regex_search(s, m, std::regex("^abc", std::regex_constants::awk))); in main()
166 assert(m.size() == 1); in main()
167 assert(!m.prefix().matched); in main()
168 assert(m.prefix().first == s); in main()
169 assert(m.prefix().second == m[0].first); in main()
170 assert(!m.suffix().matched); in main()
171 assert(m.suffix().first == m[0].second); in main()
172 assert(m.suffix().second == s+3); in main()
173 assert(m.length(0) == 3); in main()
174 assert(m.position(0) == 0); in main()
175 assert(m.str(0) == s); in main()
178 std::cmatch m; in main() local
180 assert(std::regex_search(s, m, std::regex("^abc", std::regex_constants::awk))); in main()
181 assert(m.size() == 1); in main()
182 assert(!m.prefix().matched); in main()
183 assert(m.prefix().first == s); in main()
184 assert(m.prefix().second == m[0].first); in main()
185 assert(m.suffix().matched); in main()
186 assert(m.suffix().first == m[0].second); in main()
187 assert(m.suffix().second == s+4); in main()
188 assert(m.length(0) == 3); in main()
189 assert(m.position(0) == 0); in main()
190 assert(m.str(0) == "abc"); in main()
193 std::cmatch m; in main() local
195 assert(!std::regex_search(s, m, std::regex("^abc", std::regex_constants::awk))); in main()
196 assert(m.size() == 0); in main()
199 std::cmatch m; in main() local
201 assert(std::regex_search(s, m, std::regex("abc$", std::regex_constants::awk))); in main()
202 assert(m.size() == 1); in main()
203 assert(!m.prefix().matched); in main()
204 assert(m.prefix().first == s); in main()
205 assert(m.prefix().second == m[0].first); in main()
206 assert(!m.suffix().matched); in main()
207 assert(m.suffix().first == m[0].second); in main()
208 assert(m.suffix().second == s+3); in main()
209 assert(m.length(0) == 3); in main()
210 assert(m.position(0) == 0); in main()
211 assert(m.str(0) == s); in main()
214 std::cmatch m; in main() local
216 assert(std::regex_search(s, m, std::regex("abc$", std::regex_constants::awk))); in main()
217 assert(m.size() == 1); in main()
218 assert(m.prefix().matched); in main()
219 assert(m.prefix().first == s); in main()
220 assert(m.prefix().second == m[0].first); in main()
221 assert(!m.suffix().matched); in main()
222 assert(m.suffix().first == m[0].second); in main()
223 assert(m.suffix().second == s+5); in main()
224 assert(m.length(0) == 3); in main()
225 assert(m.position(0) == 2); in main()
226 assert(m.str(0) == s+2); in main()
229 std::cmatch m; in main() local
231 assert(!std::regex_search(s, m, std::regex("abc$", std::regex_constants::awk))); in main()
232 assert(m.size() == 0); in main()
235 std::cmatch m; in main() local
237 assert(std::regex_search(s, m, std::regex("a.c", std::regex_constants::awk))); in main()
238 assert(m.size() == 1); in main()
239 assert(!m.prefix().matched); in main()
240 assert(m.prefix().first == s); in main()
241 assert(m.prefix().second == m[0].first); in main()
242 assert(!m.suffix().matched); in main()
243 assert(m.suffix().first == m[0].second); in main()
244 assert(m.suffix().second == s+3); in main()
245 assert(m.length(0) == 3); in main()
246 assert(m.position(0) == 0); in main()
247 assert(m.str(0) == s); in main()
250 std::cmatch m; in main() local
252 assert(std::regex_search(s, m, std::regex("a.c", std::regex_constants::awk))); in main()
253 assert(m.size() == 1); in main()
254 assert(!m.prefix().matched); in main()
255 assert(m.prefix().first == s); in main()
256 assert(m.prefix().second == m[0].first); in main()
257 assert(!m.suffix().matched); in main()
258 assert(m.suffix().first == m[0].second); in main()
259 assert(m.suffix().second == s+3); in main()
260 assert(m.length(0) == 3); in main()
261 assert(m.position(0) == 0); in main()
262 assert(m.str(0) == s); in main()
265 std::cmatch m; in main() local
267 assert(std::regex_search(s, m, std::regex("a.c", std::regex_constants::awk))); in main()
268 assert(m.size() == 1); in main()
269 assert(!m.prefix().matched); in main()
270 assert(m.prefix().first == s); in main()
271 assert(m.prefix().second == m[0].first); in main()
272 assert(!m.suffix().matched); in main()
273 assert(m.suffix().first == m[0].second); in main()
274 assert(m.suffix().second == s+3); in main()
275 assert(m.length(0) == 3); in main()
276 assert(m.position(0) == 0); in main()
277 assert(m.str(0) == s); in main()
280 std::cmatch m; in main() local
282 assert(std::regex_search(s, m, std::regex("(.*).*", std::regex_constants::awk))); in main()
283 assert(m.size() == 2); in main()
284 assert(!m.prefix().matched); in main()
285 assert(m.prefix().first == s); in main()
286 assert(m.prefix().second == m[0].first); in main()
287 assert(!m.suffix().matched); in main()
288 assert(m.suffix().first == m[0].second); in main()
289 assert(m.suffix().second == s+6); in main()
290 assert(m.length(0) == 6); in main()
291 assert(m.position(0) == 0); in main()
292 assert(m.str(0) == s); in main()
293 assert(m.length(1) == 6); in main()
294 assert(m.position(1) == 0); in main()
295 assert(m.str(1) == s); in main()
298 std::cmatch m; in main() local
300 assert(std::regex_search(s, m, std::regex("(a*)*", std::regex_constants::awk))); in main()
301 assert(m.size() == 2); in main()
302 assert(!m.prefix().matched); in main()
303 assert(m.prefix().first == s); in main()
304 assert(m.prefix().second == m[0].first); in main()
305 assert(m.suffix().matched); in main()
306 assert(m.suffix().first == m[0].second); in main()
307 assert(m.suffix().second == s+2); in main()
308 assert(m.length(0) == 0); in main()
309 assert(m.position(0) == 0); in main()
310 assert(m.str(0) == ""); in main()
311 assert(m.length(1) == 0); in main()
312 assert(m.position(1) == 0); in main()
313 assert(m.str(1) == ""); in main()
316 std::cmatch m; in main() local
318 assert(!std::regex_search(s, m, std::regex("ab{3,5}c", std::regex_constants::awk))); in main()
319 assert(m.size() == 0); in main()
322 std::cmatch m; in main() local
324 assert(std::regex_search(s, m, std::regex("ab{3,5}c", std::regex_constants::awk))); in main()
325 assert(m.size() == 1); in main()
326 assert(!m.prefix().matched); in main()
327 assert(m.prefix().first == s); in main()
328 assert(m.prefix().second == m[0].first); in main()
329 assert(!m.suffix().matched); in main()
330 assert(m.suffix().first == m[0].second); in main()
331 assert(m.suffix().second == m[0].second); in main()
332 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
333 assert(m.position(0) == 0); in main()
334 assert(m.str(0) == s); in main()
337 std::cmatch m; in main() local
339 assert(std::regex_search(s, m, std::regex("ab{3,5}c", std::regex_constants::awk))); in main()
340 assert(m.size() == 1); in main()
341 assert(!m.prefix().matched); in main()
342 assert(m.prefix().first == s); in main()
343 assert(m.prefix().second == m[0].first); in main()
344 assert(!m.suffix().matched); in main()
345 assert(m.suffix().first == m[0].second); in main()
346 assert(m.suffix().second == m[0].second); in main()
347 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
348 assert(m.position(0) == 0); in main()
349 assert(m.str(0) == s); in main()
352 std::cmatch m; in main() local
354 assert(std::regex_search(s, m, std::regex("ab{3,5}c", std::regex_constants::awk))); in main()
355 assert(m.size() == 1); in main()
356 assert(!m.prefix().matched); in main()
357 assert(m.prefix().first == s); in main()
358 assert(m.prefix().second == m[0].first); in main()
359 assert(!m.suffix().matched); in main()
360 assert(m.suffix().first == m[0].second); in main()
361 assert(m.suffix().second == m[0].second); in main()
362 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
363 assert(m.position(0) == 0); in main()
364 assert(m.str(0) == s); in main()
367 std::cmatch m; in main() local
369 assert(!std::regex_search(s, m, std::regex("ab{3,5}c", std::regex_constants::awk))); in main()
370 assert(m.size() == 0); in main()
373 std::cmatch m; in main() local
375 assert(!std::regex_search(s, m, std::regex("ab{3,5}c", std::regex_constants::awk))); in main()
376 assert(m.size() == 0); in main()
379 std::cmatch m; in main() local
381 assert(!std::regex_search(s, m, std::regex("a.{3,5}c", std::regex_constants::awk))); in main()
382 assert(m.size() == 0); in main()
385 std::cmatch m; in main() local
387 assert(std::regex_search(s, m, std::regex("a.{3,5}c", std::regex_constants::awk))); in main()
388 assert(m.size() == 1); in main()
389 assert(!m.prefix().matched); in main()
390 assert(m.prefix().first == s); in main()
391 assert(m.prefix().second == m[0].first); in main()
392 assert(!m.suffix().matched); in main()
393 assert(m.suffix().first == m[0].second); in main()
394 assert(m.suffix().second == m[0].second); in main()
395 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
396 assert(m.position(0) == 0); in main()
397 assert(m.str(0) == s); in main()
400 std::cmatch m; in main() local
402 assert(std::regex_search(s, m, std::regex("a.{3,5}c", std::regex_constants::awk))); in main()
403 assert(m.size() == 1); in main()
404 assert(!m.prefix().matched); in main()
405 assert(m.prefix().first == s); in main()
406 assert(m.prefix().second == m[0].first); in main()
407 assert(!m.suffix().matched); in main()
408 assert(m.suffix().first == m[0].second); in main()
409 assert(m.suffix().second == m[0].second); in main()
410 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
411 assert(m.position(0) == 0); in main()
412 assert(m.str(0) == s); in main()
415 std::cmatch m; in main() local
417 assert(std::regex_search(s, m, std::regex("a.{3,5}c", std::regex_constants::awk))); in main()
418 assert(m.size() == 1); in main()
419 assert(!m.prefix().matched); in main()
420 assert(m.prefix().first == s); in main()
421 assert(m.prefix().second == m[0].first); in main()
422 assert(!m.suffix().matched); in main()
423 assert(m.suffix().first == m[0].second); in main()
424 assert(m.suffix().second == m[0].second); in main()
425 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
426 assert(m.position(0) == 0); in main()
427 assert(m.str(0) == s); in main()
430 std::cmatch m; in main() local
432 assert(!std::regex_search(s, m, std::regex("a.{3,5}c", std::regex_constants::awk))); in main()
433 assert(m.size() == 0); in main()
436 std::cmatch m; in main() local
438 assert(std::regex_search(s, m, std::regex("tour|to|tournament", in main()
440 assert(m.size() == 1); in main()
441 assert(!m.prefix().matched); in main()
442 assert(m.prefix().first == s); in main()
443 assert(m.prefix().second == m[0].first); in main()
444 assert(!m.suffix().matched); in main()
445 assert(m.suffix().first == m[0].second); in main()
446 assert(m.suffix().second == m[0].second); in main()
447 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
448 assert(m.position(0) == 0); in main()
449 assert(m.str(0) == s); in main()
452 std::cmatch m; in main() local
454 assert(std::regex_search(s, m, std::regex("(tour|to|tournament)+", in main()
456 assert(m.size() == 1); in main()
457 assert(!m.prefix().matched); in main()
458 assert(m.prefix().first == s); in main()
459 assert(m.prefix().second == m[0].first); in main()
460 assert(!m.suffix().matched); in main()
461 assert(m.suffix().first == m[0].second); in main()
462 assert(m.suffix().second == m[0].second); in main()
463 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
464 assert(m.position(0) == 0); in main()
465 assert(m.str(0) == s); in main()
468 std::cmatch m; in main() local
470 assert(std::regex_search(s, m, std::regex("(tour|to|t)+", in main()
472 assert(m.size() == 2); in main()
473 assert(!m.prefix().matched); in main()
474 assert(m.prefix().first == s); in main()
475 assert(m.prefix().second == m[0].first); in main()
476 assert(!m.suffix().matched); in main()
477 assert(m.suffix().first == m[0].second); in main()
478 assert(m.suffix().second == m[0].second); in main()
479 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
480 assert(m.position(0) == 0); in main()
481 assert(m.str(0) == s); in main()
482 assert(m.length(1) == 4); in main()
483 assert(m.position(1) == 3); in main()
484 assert(m.str(1) == "tour"); in main()
487 std::cmatch m; in main() local
489 assert(!std::regex_search(s, m, std::regex("-(.*),\1-", std::regex_constants::awk))); in main()
490 assert(m.size() == 0); in main()
493 std::cmatch m; in main() local
495 assert(std::regex_search(s, m, std::regex("-.*,.*-", std::regex_constants::awk))); in main()
496 assert(m.size() == 1); in main()
497 assert(!m.prefix().matched); in main()
498 assert(m.prefix().first == s); in main()
499 assert(m.prefix().second == m[0].first); in main()
500 assert(!m.suffix().matched); in main()
501 assert(m.suffix().first == m[0].second); in main()
502 assert(m.suffix().second == m[0].second); in main()
503 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
504 assert(m.position(0) == 0); in main()
505 assert(m.str(0) == s); in main()
508 std::cmatch m; in main() local
510 assert(std::regex_search(s, m, std::regex("^[a]$", in main()
512 assert(m.size() == 1); in main()
513 assert(!m.prefix().matched); in main()
514 assert(m.prefix().first == s); in main()
515 assert(m.prefix().second == m[0].first); in main()
516 assert(!m.suffix().matched); in main()
517 assert(m.suffix().first == m[0].second); in main()
518 assert(m.suffix().second == m[0].second); in main()
519 assert(m.length(0) == 1); in main()
520 assert(m.position(0) == 0); in main()
521 assert(m.str(0) == "a"); in main()
524 std::cmatch m; in main() local
526 assert(std::regex_search(s, m, std::regex("^[ab]$", in main()
528 assert(m.size() == 1); in main()
529 assert(!m.prefix().matched); in main()
530 assert(m.prefix().first == s); in main()
531 assert(m.prefix().second == m[0].first); in main()
532 assert(!m.suffix().matched); in main()
533 assert(m.suffix().first == m[0].second); in main()
534 assert(m.suffix().second == m[0].second); in main()
535 assert(m.length(0) == 1); in main()
536 assert(m.position(0) == 0); in main()
537 assert(m.str(0) == "a"); in main()
540 std::cmatch m; in main() local
542 assert(std::regex_search(s, m, std::regex("^[a-f]$", in main()
544 assert(m.size() == 1); in main()
545 assert(!m.prefix().matched); in main()
546 assert(m.prefix().first == s); in main()
547 assert(m.prefix().second == m[0].first); in main()
548 assert(!m.suffix().matched); in main()
549 assert(m.suffix().first == m[0].second); in main()
550 assert(m.suffix().second == m[0].second); in main()
551 assert(m.length(0) == 1); in main()
552 assert(m.position(0) == 0); in main()
553 assert(m.str(0) == s); in main()
556 std::cmatch m; in main() local
558 assert(!std::regex_search(s, m, std::regex("^[a-f]$", in main()
560 assert(m.size() == 0); in main()
563 std::cmatch m; in main() local
565 assert(std::regex_search(s, m, std::regex("q[^u]", in main()
567 assert(m.size() == 1); in main()
568 assert(m.prefix().matched); in main()
569 assert(m.prefix().first == s); in main()
570 assert(m.prefix().second == m[0].first); in main()
571 assert(!m.suffix().matched); in main()
572 assert(m.suffix().first == m[0].second); in main()
573 assert(m.suffix().second == m[0].second); in main()
574 assert(m.length(0) == 2); in main()
575 assert(m.position(0) == 3); in main()
576 assert(m.str(0) == "qi"); in main()
579 std::cmatch m; in main() local
581 assert(!std::regex_search(s, m, std::regex("q[^u]", in main()
583 assert(m.size() == 0); in main()
586 std::cmatch m; in main() local
588 assert(std::regex_search(s, m, std::regex("A[[:lower:]]B", in main()
590 assert(m.size() == 1); in main()
591 assert(!m.prefix().matched); in main()
592 assert(m.prefix().first == s); in main()
593 assert(m.prefix().second == m[0].first); in main()
594 assert(!m.suffix().matched); in main()
595 assert(m.suffix().first == m[0].second); in main()
596 assert(m.suffix().second == m[0].second); in main()
597 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
598 assert(m.position(0) == 0); in main()
599 assert(m.str(0) == s); in main()
602 std::cmatch m; in main() local
604 assert(!std::regex_search(s, m, std::regex("A[[:lower:]]B", in main()
606 assert(m.size() == 0); in main()
609 std::cmatch m; in main() local
611 assert(std::regex_search(s, m, std::regex("A[^[:lower:]]B", in main()
613 assert(m.size() == 1); in main()
614 assert(!m.prefix().matched); in main()
615 assert(m.prefix().first == s); in main()
616 assert(m.prefix().second == m[0].first); in main()
617 assert(!m.suffix().matched); in main()
618 assert(m.suffix().first == m[0].second); in main()
619 assert(m.suffix().second == m[0].second); in main()
620 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
621 assert(m.position(0) == 0); in main()
622 assert(m.str(0) == s); in main()
625 std::cmatch m; in main() local
627 assert(!std::regex_search(s, m, std::regex("A[^[:lower:]]B", in main()
629 assert(m.size() == 0); in main()
632 std::cmatch m; in main() local
634 assert(!std::regex_search(s, m, std::regex("A[^[:lower:]0-9]B", in main()
636 assert(m.size() == 0); in main()
639 std::cmatch m; in main() local
641 assert(std::regex_search(s, m, std::regex("A[^[:lower:]0-9]B", in main()
643 assert(m.size() == 1); in main()
644 assert(!m.prefix().matched); in main()
645 assert(m.prefix().first == s); in main()
646 assert(m.prefix().second == m[0].first); in main()
647 assert(!m.suffix().matched); in main()
648 assert(m.suffix().first == m[0].second); in main()
649 assert(m.suffix().second == m[0].second); in main()
650 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
651 assert(m.position(0) == 0); in main()
652 assert(m.str(0) == s); in main()
655 std::cmatch m; in main() local
657 assert(std::regex_search(s, m, std::regex("[a[.hyphen.]z]", in main()
659 assert(m.size() == 1); in main()
660 assert(!m.prefix().matched); in main()
661 assert(m.prefix().first == s); in main()
662 assert(m.prefix().second == m[0].first); in main()
663 assert(!m.suffix().matched); in main()
664 assert(m.suffix().first == m[0].second); in main()
665 assert(m.suffix().second == m[0].second); in main()
666 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
667 assert(m.position(0) == 0); in main()
668 assert(m.str(0) == s); in main()
671 std::cmatch m; in main() local
673 assert(std::regex_search(s, m, std::regex("[a[.hyphen.]z]", in main()
675 assert(m.size() == 1); in main()
676 assert(!m.prefix().matched); in main()
677 assert(m.prefix().first == s); in main()
678 assert(m.prefix().second == m[0].first); in main()
679 assert(!m.suffix().matched); in main()
680 assert(m.suffix().first == m[0].second); in main()
681 assert(m.suffix().second == m[0].second); in main()
682 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
683 assert(m.position(0) == 0); in main()
684 assert(m.str(0) == s); in main()
687 std::cmatch m; in main() local
689 assert(!std::regex_search(s, m, std::regex("[a[.hyphen.]z]", in main()
691 assert(m.size() == 0); in main()
695 std::cmatch m; in main() local
697 assert(std::regex_search(s, m, std::regex("[a[=M=]z]", in main()
699 assert(m.size() == 1); in main()
700 assert(!m.prefix().matched); in main()
701 assert(m.prefix().first == s); in main()
702 assert(m.prefix().second == m[0].first); in main()
703 assert(!m.suffix().matched); in main()
704 assert(m.suffix().first == m[0].second); in main()
705 assert(m.suffix().second == m[0].second); in main()
706 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
707 assert(m.position(0) == 0); in main()
708 assert(m.str(0) == s); in main()
711 std::cmatch m; in main() local
713 assert(std::regex_search(s, m, std::regex("[a[.ch.]z]", in main()
715 assert(m.size() == 1); in main()
716 assert(!m.prefix().matched); in main()
717 assert(m.prefix().first == s); in main()
718 assert(m.prefix().second == m[0].first); in main()
719 assert(!m.suffix().matched); in main()
720 assert(m.suffix().first == m[0].second); in main()
721 assert(m.suffix().second == m[0].second); in main()
722 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
723 assert(m.position(0) == 0); in main()
724 assert(m.str(0) == s); in main()
728 std::cmatch m; in main() local
730 assert(!std::regex_search(s, m, std::regex("[a[=M=]z]", in main()
732 assert(m.size() == 0); in main()
735 std::cmatch m; in main() local
737 assert(std::regex_search(s, m, std::regex("[ace1-9]*", in main()
739 assert(m.size() == 1); in main()
740 assert(!m.prefix().matched); in main()
741 assert(m.prefix().first == s); in main()
742 assert(m.prefix().second == m[0].first); in main()
743 assert(m.suffix().matched); in main()
744 assert(m.suffix().first == m[0].second); in main()
745 assert(m.suffix().second == s + std::char_traits<char>::length(s)); in main()
746 assert(m.length(0) == 0); in main()
747 assert(m.position(0) == 0); in main()
748 assert(m.str(0) == ""); in main()
751 std::cmatch m; in main() local
753 assert(std::regex_search(s, m, std::regex("[ace1-9]+", in main()
755 assert(m.size() == 1); in main()
756 assert(m.prefix().matched); in main()
757 assert(m.prefix().first == s); in main()
758 assert(m.prefix().second == m[0].first); in main()
759 assert(m.suffix().matched); in main()
760 assert(m.suffix().first == m[0].second); in main()
761 assert(m.suffix().second == s + std::char_traits<char>::length(s)); in main()
762 assert(m.length(0) == 6); in main()
763 assert(m.position(0) == 1); in main()
764 assert(m.str(0) == "1a45ce"); in main()
772 std::match_results<BI> m; in main() local
775 assert(std::regex_search(BI(s), BI(s+ss), m, regex)); in main()
776 assert(m.size() == 1); in main()
777 assert(!m.prefix().matched); in main()
778 assert(m.prefix().first == BI(s)); in main()
779 assert(m.prefix().second == m[0].first); in main()
780 assert(!m.suffix().matched); in main()
781 assert(m.suffix().first == m[0].second); in main()
782 assert(m.suffix().second == m[0].second); in main()
783 assert(m.length(0) == 4); in main()
784 assert(m.position(0) == 0); in main()
785 assert(m.str(0) == s); in main()
788 std::cmatch m; in main() local
790 assert(std::regex_search(s, m, std::regex("[\\n]+", in main()
792 assert(m.size() == 1); in main()
793 assert(!m.prefix().matched); in main()
794 assert(m.prefix().first == s); in main()
795 assert(m.prefix().second == m[0].first); in main()
796 assert(!m.suffix().matched); in main()
797 assert(m.suffix().first == m[0].second); in main()
798 assert(m.suffix().second == s + std::char_traits<char>::length(s)); in main()
799 assert(m.length(0) == std::char_traits<char>::length(s)); in main()
800 assert(m.position(0) == 0); in main()
801 assert(m.str(0) == s); in main()
804 std::wcmatch m; in main() local
806 assert(std::regex_search(s, m, std::wregex(L"a", std::regex_constants::awk))); in main()
807 assert(m.size() == 1); in main()
808 assert(!m.empty()); in main()
809 assert(!m.prefix().matched); in main()
810 assert(m.prefix().first == s); in main()
811 assert(m.prefix().second == m[0].first); in main()
812 assert(!m.suffix().matched); in main()
813 assert(m.suffix().first == m[0].second); in main()
814 assert(m.suffix().second == s+1); in main()
815 assert(m.length(0) == 1); in main()
816 assert(m.position(0) == 0); in main()
817 assert(m.str(0) == L"a"); in main()
820 std::wcmatch m; in main() local
822 assert(std::regex_search(s, m, std::wregex(L"ab", std::regex_constants::awk))); in main()
823 assert(m.size() == 1); in main()
824 assert(!m.prefix().matched); in main()
825 assert(m.prefix().first == s); in main()
826 assert(m.prefix().second == m[0].first); in main()
827 assert(!m.suffix().matched); in main()
828 assert(m.suffix().first == m[0].second); in main()
829 assert(m.suffix().second == s+2); in main()
830 assert(m.length(0) == 2); in main()
831 assert(m.position(0) == 0); in main()
832 assert(m.str(0) == L"ab"); in main()
835 std::wcmatch m; in main() local
837 assert(!std::regex_search(s, m, std::wregex(L"ba", std::regex_constants::awk))); in main()
838 assert(m.size() == 0); in main()
839 assert(m.empty()); in main()
842 std::wcmatch m; in main() local
844 assert(std::regex_search(s, m, std::wregex(L"ab", std::regex_constants::awk))); in main()
845 assert(m.size() == 1); in main()
846 assert(m.prefix().matched); in main()
847 assert(m.prefix().first == s); in main()
848 assert(m.prefix().second == m[0].first); in main()
849 assert(!m.suffix().matched); in main()
850 assert(m.suffix().first == m[0].second); in main()
851 assert(m.suffix().second == s+3); in main()
852 assert(m.length(0) == 2); in main()
853 assert(m.position(0) == 1); in main()
854 assert(m.str(0) == L"ab"); in main()
857 std::wcmatch m; in main() local
859 assert(!std::regex_search(s, m, std::wregex(L"ab", std::regex_constants::awk), in main()
861 assert(m.size() == 0); in main()
864 std::wcmatch m; in main() local
866 assert(std::regex_search(s, m, std::wregex(L"bc", std::regex_constants::awk))); in main()
867 assert(m.size() == 1); in main()
868 assert(m.prefix().matched); in main()
869 assert(m.prefix().first == s); in main()
870 assert(m.prefix().second == m[0].first); in main()
871 assert(m.suffix().matched); in main()
872 assert(m.suffix().first == m[0].second); in main()
873 assert(m.suffix().second == s+4); in main()
874 assert(m.length(0) == 2); in main()
875 assert(m.position(0) == 1); in main()
876 assert(m.str(0) == L"bc"); in main()
879 std::wcmatch m; in main() local
881 assert(std::regex_search(s, m, std::wregex(L"ab*c", std::regex_constants::awk))); in main()
882 assert(m.size() == 1); in main()
883 assert(!m.prefix().matched); in main()
884 assert(m.prefix().first == s); in main()
885 assert(m.prefix().second == m[0].first); in main()
886 assert(!m.suffix().matched); in main()
887 assert(m.suffix().first == m[0].second); in main()
888 assert(m.suffix().second == s+4); in main()
889 assert(m.length(0) == 4); in main()
890 assert(m.position(0) == 0); in main()
891 assert(m.str(0) == s); in main()
894 std::wcmatch m; in main() local
896 assert(std::regex_search(s, m, std::wregex(L"(ab)*c", std::regex_constants::awk))); in main()
897 assert(m.size() == 2); in main()
898 assert(!m.prefix().matched); in main()
899 assert(m.prefix().first == s); in main()
900 assert(m.prefix().second == m[0].first); in main()
901 assert(!m.suffix().matched); in main()
902 assert(m.suffix().first == m[0].second); in main()
903 assert(m.suffix().second == s+5); in main()
904 assert(m.length(0) == 5); in main()
905 assert(m.position(0) == 0); in main()
906 assert(m.str(0) == s); in main()
907 assert(m.length(1) == 2); in main()
908 assert(m.position(1) == 2); in main()
909 assert(m.str(1) == L"ab"); in main()
912 std::wcmatch m; in main() local
914 assert(std::regex_search(s, m, std::wregex(L"cd((e)fg)hi", in main()
916 assert(m.size() == 3); in main()
917 assert(m.prefix().matched); in main()
918 assert(m.prefix().first == s); in main()
919 assert(m.prefix().second == m[0].first); in main()
920 assert(m.suffix().matched); in main()
921 assert(m.suffix().first == m[0].second); in main()
922 assert(m.suffix().second == s+std::regex_traits<wchar_t>::length(s)); in main()
923 assert(m.length(0) == 7); in main()
924 assert(m.position(0) == 2); in main()
925 assert(m.str(0) == L"cdefghi"); in main()
926 assert(m.length(1) == 3); in main()
927 assert(m.position(1) == 4); in main()
928 assert(m.str(1) == L"efg"); in main()
929 assert(m.length(2) == 1); in main()
930 assert(m.position(2) == 4); in main()
931 assert(m.str(2) == L"e"); in main()
934 std::wcmatch m; in main() local
936 assert(std::regex_search(s, m, std::wregex(L"^abc", std::regex_constants::awk))); in main()
937 assert(m.size() == 1); in main()
938 assert(!m.prefix().matched); in main()
939 assert(m.prefix().first == s); in main()
940 assert(m.prefix().second == m[0].first); in main()
941 assert(!m.suffix().matched); in main()
942 assert(m.suffix().first == m[0].second); in main()
943 assert(m.suffix().second == s+3); in main()
944 assert(m.length(0) == 3); in main()
945 assert(m.position(0) == 0); in main()
946 assert(m.str(0) == s); in main()
949 std::wcmatch m; in main() local
951 assert(std::regex_search(s, m, std::wregex(L"^abc", std::regex_constants::awk))); in main()
952 assert(m.size() == 1); in main()
953 assert(!m.prefix().matched); in main()
954 assert(m.prefix().first == s); in main()
955 assert(m.prefix().second == m[0].first); in main()
956 assert(m.suffix().matched); in main()
957 assert(m.suffix().first == m[0].second); in main()
958 assert(m.suffix().second == s+4); in main()
959 assert(m.length(0) == 3); in main()
960 assert(m.position(0) == 0); in main()
961 assert(m.str(0) == L"abc"); in main()
964 std::wcmatch m; in main() local
966 assert(!std::regex_search(s, m, std::wregex(L"^abc", std::regex_constants::awk))); in main()
967 assert(m.size() == 0); in main()
970 std::wcmatch m; in main() local
972 assert(std::regex_search(s, m, std::wregex(L"abc$", std::regex_constants::awk))); in main()
973 assert(m.size() == 1); in main()
974 assert(!m.prefix().matched); in main()
975 assert(m.prefix().first == s); in main()
976 assert(m.prefix().second == m[0].first); in main()
977 assert(!m.suffix().matched); in main()
978 assert(m.suffix().first == m[0].second); in main()
979 assert(m.suffix().second == s+3); in main()
980 assert(m.length(0) == 3); in main()
981 assert(m.position(0) == 0); in main()
982 assert(m.str(0) == s); in main()
985 std::wcmatch m; in main() local
987 assert(std::regex_search(s, m, std::wregex(L"abc$", std::regex_constants::awk))); in main()
988 assert(m.size() == 1); in main()
989 assert(m.prefix().matched); in main()
990 assert(m.prefix().first == s); in main()
991 assert(m.prefix().second == m[0].first); in main()
992 assert(!m.suffix().matched); in main()
993 assert(m.suffix().first == m[0].second); in main()
994 assert(m.suffix().second == s+5); in main()
995 assert(m.length(0) == 3); in main()
996 assert(m.position(0) == 2); in main()
997 assert(m.str(0) == s+2); in main()
1000 std::wcmatch m; in main() local
1002 assert(!std::regex_search(s, m, std::wregex(L"abc$", std::regex_constants::awk))); in main()
1003 assert(m.size() == 0); in main()
1006 std::wcmatch m; in main() local
1008 assert(std::regex_search(s, m, std::wregex(L"a.c", std::regex_constants::awk))); in main()
1009 assert(m.size() == 1); in main()
1010 assert(!m.prefix().matched); in main()
1011 assert(m.prefix().first == s); in main()
1012 assert(m.prefix().second == m[0].first); in main()
1013 assert(!m.suffix().matched); in main()
1014 assert(m.suffix().first == m[0].second); in main()
1015 assert(m.suffix().second == s+3); in main()
1016 assert(m.length(0) == 3); in main()
1017 assert(m.position(0) == 0); in main()
1018 assert(m.str(0) == s); in main()
1021 std::wcmatch m; in main() local
1023 assert(std::regex_search(s, m, std::wregex(L"a.c", std::regex_constants::awk))); in main()
1024 assert(m.size() == 1); in main()
1025 assert(!m.prefix().matched); in main()
1026 assert(m.prefix().first == s); in main()
1027 assert(m.prefix().second == m[0].first); in main()
1028 assert(!m.suffix().matched); in main()
1029 assert(m.suffix().first == m[0].second); in main()
1030 assert(m.suffix().second == s+3); in main()
1031 assert(m.length(0) == 3); in main()
1032 assert(m.position(0) == 0); in main()
1033 assert(m.str(0) == s); in main()
1036 std::wcmatch m; in main() local
1038 assert(std::regex_search(s, m, std::wregex(L"a.c", std::regex_constants::awk))); in main()
1039 assert(m.size() == 1); in main()
1040 assert(!m.prefix().matched); in main()
1041 assert(m.prefix().first == s); in main()
1042 assert(m.prefix().second == m[0].first); in main()
1043 assert(!m.suffix().matched); in main()
1044 assert(m.suffix().first == m[0].second); in main()
1045 assert(m.suffix().second == s+3); in main()
1046 assert(m.length(0) == 3); in main()
1047 assert(m.position(0) == 0); in main()
1048 assert(m.str(0) == s); in main()
1051 std::wcmatch m; in main() local
1053 assert(std::regex_search(s, m, std::wregex(L"(.*).*", std::regex_constants::awk))); in main()
1054 assert(m.size() == 2); in main()
1055 assert(!m.prefix().matched); in main()
1056 assert(m.prefix().first == s); in main()
1057 assert(m.prefix().second == m[0].first); in main()
1058 assert(!m.suffix().matched); in main()
1059 assert(m.suffix().first == m[0].second); in main()
1060 assert(m.suffix().second == s+6); in main()
1061 assert(m.length(0) == 6); in main()
1062 assert(m.position(0) == 0); in main()
1063 assert(m.str(0) == s); in main()
1064 assert(m.length(1) == 6); in main()
1065 assert(m.position(1) == 0); in main()
1066 assert(m.str(1) == s); in main()
1069 std::wcmatch m; in main() local
1071 assert(std::regex_search(s, m, std::wregex(L"(a*)*", std::regex_constants::awk))); in main()
1072 assert(m.size() == 2); in main()
1073 assert(!m.prefix().matched); in main()
1074 assert(m.prefix().first == s); in main()
1075 assert(m.prefix().second == m[0].first); in main()
1076 assert(m.suffix().matched); in main()
1077 assert(m.suffix().first == m[0].second); in main()
1078 assert(m.suffix().second == s+2); in main()
1079 assert(m.length(0) == 0); in main()
1080 assert(m.position(0) == 0); in main()
1081 assert(m.str(0) == L""); in main()
1082 assert(m.length(1) == 0); in main()
1083 assert(m.position(1) == 0); in main()
1084 assert(m.str(1) == L""); in main()
1087 std::wcmatch m; in main() local
1089 assert(!std::regex_search(s, m, std::wregex(L"ab{3,5}c", std::regex_constants::awk))); in main()
1090 assert(m.size() == 0); in main()
1093 std::wcmatch m; in main() local
1095 assert(std::regex_search(s, m, std::wregex(L"ab{3,5}c", std::regex_constants::awk))); in main()
1096 assert(m.size() == 1); in main()
1097 assert(!m.prefix().matched); in main()
1098 assert(m.prefix().first == s); in main()
1099 assert(m.prefix().second == m[0].first); in main()
1100 assert(!m.suffix().matched); in main()
1101 assert(m.suffix().first == m[0].second); in main()
1102 assert(m.suffix().second == m[0].second); in main()
1103 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1104 assert(m.position(0) == 0); in main()
1105 assert(m.str(0) == s); in main()
1108 std::wcmatch m; in main() local
1110 assert(std::regex_search(s, m, std::wregex(L"ab{3,5}c", std::regex_constants::awk))); in main()
1111 assert(m.size() == 1); in main()
1112 assert(!m.prefix().matched); in main()
1113 assert(m.prefix().first == s); in main()
1114 assert(m.prefix().second == m[0].first); in main()
1115 assert(!m.suffix().matched); in main()
1116 assert(m.suffix().first == m[0].second); in main()
1117 assert(m.suffix().second == m[0].second); in main()
1118 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1119 assert(m.position(0) == 0); in main()
1120 assert(m.str(0) == s); in main()
1123 std::wcmatch m; in main() local
1125 assert(std::regex_search(s, m, std::wregex(L"ab{3,5}c", std::regex_constants::awk))); in main()
1126 assert(m.size() == 1); in main()
1127 assert(!m.prefix().matched); in main()
1128 assert(m.prefix().first == s); in main()
1129 assert(m.prefix().second == m[0].first); in main()
1130 assert(!m.suffix().matched); in main()
1131 assert(m.suffix().first == m[0].second); in main()
1132 assert(m.suffix().second == m[0].second); in main()
1133 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1134 assert(m.position(0) == 0); in main()
1135 assert(m.str(0) == s); in main()
1138 std::wcmatch m; in main() local
1140 assert(!std::regex_search(s, m, std::wregex(L"ab{3,5}c", std::regex_constants::awk))); in main()
1141 assert(m.size() == 0); in main()
1144 std::wcmatch m; in main() local
1146 assert(!std::regex_search(s, m, std::wregex(L"ab{3,5}c", std::regex_constants::awk))); in main()
1147 assert(m.size() == 0); in main()
1150 std::wcmatch m; in main() local
1152 assert(!std::regex_search(s, m, std::wregex(L"a.{3,5}c", std::regex_constants::awk))); in main()
1153 assert(m.size() == 0); in main()
1156 std::wcmatch m; in main() local
1158 assert(std::regex_search(s, m, std::wregex(L"a.{3,5}c", std::regex_constants::awk))); in main()
1159 assert(m.size() == 1); in main()
1160 assert(!m.prefix().matched); in main()
1161 assert(m.prefix().first == s); in main()
1162 assert(m.prefix().second == m[0].first); in main()
1163 assert(!m.suffix().matched); in main()
1164 assert(m.suffix().first == m[0].second); in main()
1165 assert(m.suffix().second == m[0].second); in main()
1166 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1167 assert(m.position(0) == 0); in main()
1168 assert(m.str(0) == s); in main()
1171 std::wcmatch m; in main() local
1173 assert(std::regex_search(s, m, std::wregex(L"a.{3,5}c", std::regex_constants::awk))); in main()
1174 assert(m.size() == 1); in main()
1175 assert(!m.prefix().matched); in main()
1176 assert(m.prefix().first == s); in main()
1177 assert(m.prefix().second == m[0].first); in main()
1178 assert(!m.suffix().matched); in main()
1179 assert(m.suffix().first == m[0].second); in main()
1180 assert(m.suffix().second == m[0].second); in main()
1181 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1182 assert(m.position(0) == 0); in main()
1183 assert(m.str(0) == s); in main()
1186 std::wcmatch m; in main() local
1188 assert(std::regex_search(s, m, std::wregex(L"a.{3,5}c", std::regex_constants::awk))); in main()
1189 assert(m.size() == 1); in main()
1190 assert(!m.prefix().matched); in main()
1191 assert(m.prefix().first == s); in main()
1192 assert(m.prefix().second == m[0].first); in main()
1193 assert(!m.suffix().matched); in main()
1194 assert(m.suffix().first == m[0].second); in main()
1195 assert(m.suffix().second == m[0].second); in main()
1196 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1197 assert(m.position(0) == 0); in main()
1198 assert(m.str(0) == s); in main()
1201 std::wcmatch m; in main() local
1203 assert(!std::regex_search(s, m, std::wregex(L"a.{3,5}c", std::regex_constants::awk))); in main()
1204 assert(m.size() == 0); in main()
1207 std::wcmatch m; in main() local
1209 assert(std::regex_search(s, m, std::wregex(L"tour|to|tournament", in main()
1211 assert(m.size() == 1); in main()
1212 assert(!m.prefix().matched); in main()
1213 assert(m.prefix().first == s); in main()
1214 assert(m.prefix().second == m[0].first); in main()
1215 assert(!m.suffix().matched); in main()
1216 assert(m.suffix().first == m[0].second); in main()
1217 assert(m.suffix().second == m[0].second); in main()
1218 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1219 assert(m.position(0) == 0); in main()
1220 assert(m.str(0) == s); in main()
1223 std::wcmatch m; in main() local
1225 assert(std::regex_search(s, m, std::wregex(L"(tour|to|tournament)+", in main()
1227 assert(m.size() == 1); in main()
1228 assert(!m.prefix().matched); in main()
1229 assert(m.prefix().first == s); in main()
1230 assert(m.prefix().second == m[0].first); in main()
1231 assert(!m.suffix().matched); in main()
1232 assert(m.suffix().first == m[0].second); in main()
1233 assert(m.suffix().second == m[0].second); in main()
1234 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1235 assert(m.position(0) == 0); in main()
1236 assert(m.str(0) == s); in main()
1239 std::wcmatch m; in main() local
1241 assert(std::regex_search(s, m, std::wregex(L"(tour|to|t)+", in main()
1243 assert(m.size() == 2); in main()
1244 assert(!m.prefix().matched); in main()
1245 assert(m.prefix().first == s); in main()
1246 assert(m.prefix().second == m[0].first); in main()
1247 assert(!m.suffix().matched); in main()
1248 assert(m.suffix().first == m[0].second); in main()
1249 assert(m.suffix().second == m[0].second); in main()
1250 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1251 assert(m.position(0) == 0); in main()
1252 assert(m.str(0) == s); in main()
1253 assert(m.length(1) == 4); in main()
1254 assert(m.position(1) == 3); in main()
1255 assert(m.str(1) == L"tour"); in main()
1258 std::wcmatch m; in main() local
1260 assert(!std::regex_search(s, m, std::wregex(L"-(.*),\1-", std::regex_constants::awk))); in main()
1261 assert(m.size() == 0); in main()
1264 std::wcmatch m; in main() local
1266 assert(std::regex_search(s, m, std::wregex(L"-.*,.*-", std::regex_constants::awk))); in main()
1267 assert(m.size() == 1); in main()
1268 assert(!m.prefix().matched); in main()
1269 assert(m.prefix().first == s); in main()
1270 assert(m.prefix().second == m[0].first); in main()
1271 assert(!m.suffix().matched); in main()
1272 assert(m.suffix().first == m[0].second); in main()
1273 assert(m.suffix().second == m[0].second); in main()
1274 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1275 assert(m.position(0) == 0); in main()
1276 assert(m.str(0) == s); in main()
1279 std::wcmatch m; in main() local
1281 assert(std::regex_search(s, m, std::wregex(L"^[a]$", in main()
1283 assert(m.size() == 1); in main()
1284 assert(!m.prefix().matched); in main()
1285 assert(m.prefix().first == s); in main()
1286 assert(m.prefix().second == m[0].first); in main()
1287 assert(!m.suffix().matched); in main()
1288 assert(m.suffix().first == m[0].second); in main()
1289 assert(m.suffix().second == m[0].second); in main()
1290 assert(m.length(0) == 1); in main()
1291 assert(m.position(0) == 0); in main()
1292 assert(m.str(0) == L"a"); in main()
1295 std::wcmatch m; in main() local
1297 assert(std::regex_search(s, m, std::wregex(L"^[ab]$", in main()
1299 assert(m.size() == 1); in main()
1300 assert(!m.prefix().matched); in main()
1301 assert(m.prefix().first == s); in main()
1302 assert(m.prefix().second == m[0].first); in main()
1303 assert(!m.suffix().matched); in main()
1304 assert(m.suffix().first == m[0].second); in main()
1305 assert(m.suffix().second == m[0].second); in main()
1306 assert(m.length(0) == 1); in main()
1307 assert(m.position(0) == 0); in main()
1308 assert(m.str(0) == L"a"); in main()
1311 std::wcmatch m; in main() local
1313 assert(std::regex_search(s, m, std::wregex(L"^[a-f]$", in main()
1315 assert(m.size() == 1); in main()
1316 assert(!m.prefix().matched); in main()
1317 assert(m.prefix().first == s); in main()
1318 assert(m.prefix().second == m[0].first); in main()
1319 assert(!m.suffix().matched); in main()
1320 assert(m.suffix().first == m[0].second); in main()
1321 assert(m.suffix().second == m[0].second); in main()
1322 assert(m.length(0) == 1); in main()
1323 assert(m.position(0) == 0); in main()
1324 assert(m.str(0) == s); in main()
1327 std::wcmatch m; in main() local
1329 assert(!std::regex_search(s, m, std::wregex(L"^[a-f]$", in main()
1331 assert(m.size() == 0); in main()
1334 std::wcmatch m; in main() local
1336 assert(std::regex_search(s, m, std::wregex(L"q[^u]", in main()
1338 assert(m.size() == 1); in main()
1339 assert(m.prefix().matched); in main()
1340 assert(m.prefix().first == s); in main()
1341 assert(m.prefix().second == m[0].first); in main()
1342 assert(!m.suffix().matched); in main()
1343 assert(m.suffix().first == m[0].second); in main()
1344 assert(m.suffix().second == m[0].second); in main()
1345 assert(m.length(0) == 2); in main()
1346 assert(m.position(0) == 3); in main()
1347 assert(m.str(0) == L"qi"); in main()
1350 std::wcmatch m; in main() local
1352 assert(!std::regex_search(s, m, std::wregex(L"q[^u]", in main()
1354 assert(m.size() == 0); in main()
1357 std::wcmatch m; in main() local
1359 assert(std::regex_search(s, m, std::wregex(L"A[[:lower:]]B", in main()
1361 assert(m.size() == 1); in main()
1362 assert(!m.prefix().matched); in main()
1363 assert(m.prefix().first == s); in main()
1364 assert(m.prefix().second == m[0].first); in main()
1365 assert(!m.suffix().matched); in main()
1366 assert(m.suffix().first == m[0].second); in main()
1367 assert(m.suffix().second == m[0].second); in main()
1368 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1369 assert(m.position(0) == 0); in main()
1370 assert(m.str(0) == s); in main()
1373 std::wcmatch m; in main() local
1375 assert(!std::regex_search(s, m, std::wregex(L"A[[:lower:]]B", in main()
1377 assert(m.size() == 0); in main()
1380 std::wcmatch m; in main() local
1382 assert(std::regex_search(s, m, std::wregex(L"A[^[:lower:]]B", in main()
1384 assert(m.size() == 1); in main()
1385 assert(!m.prefix().matched); in main()
1386 assert(m.prefix().first == s); in main()
1387 assert(m.prefix().second == m[0].first); in main()
1388 assert(!m.suffix().matched); in main()
1389 assert(m.suffix().first == m[0].second); in main()
1390 assert(m.suffix().second == m[0].second); in main()
1391 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1392 assert(m.position(0) == 0); in main()
1393 assert(m.str(0) == s); in main()
1396 std::wcmatch m; in main() local
1398 assert(!std::regex_search(s, m, std::wregex(L"A[^[:lower:]]B", in main()
1400 assert(m.size() == 0); in main()
1403 std::wcmatch m; in main() local
1405 assert(!std::regex_search(s, m, std::wregex(L"A[^[:lower:]0-9]B", in main()
1407 assert(m.size() == 0); in main()
1410 std::wcmatch m; in main() local
1412 assert(std::regex_search(s, m, std::wregex(L"A[^[:lower:]0-9]B", in main()
1414 assert(m.size() == 1); in main()
1415 assert(!m.prefix().matched); in main()
1416 assert(m.prefix().first == s); in main()
1417 assert(m.prefix().second == m[0].first); in main()
1418 assert(!m.suffix().matched); in main()
1419 assert(m.suffix().first == m[0].second); in main()
1420 assert(m.suffix().second == m[0].second); in main()
1421 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1422 assert(m.position(0) == 0); in main()
1423 assert(m.str(0) == s); in main()
1426 std::wcmatch m; in main() local
1428 assert(std::regex_search(s, m, std::wregex(L"[a[.hyphen.]z]", in main()
1430 assert(m.size() == 1); in main()
1431 assert(!m.prefix().matched); in main()
1432 assert(m.prefix().first == s); in main()
1433 assert(m.prefix().second == m[0].first); in main()
1434 assert(!m.suffix().matched); in main()
1435 assert(m.suffix().first == m[0].second); in main()
1436 assert(m.suffix().second == m[0].second); in main()
1437 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1438 assert(m.position(0) == 0); in main()
1439 assert(m.str(0) == s); in main()
1442 std::wcmatch m; in main() local
1444 assert(std::regex_search(s, m, std::wregex(L"[a[.hyphen.]z]", in main()
1446 assert(m.size() == 1); in main()
1447 assert(!m.prefix().matched); in main()
1448 assert(m.prefix().first == s); in main()
1449 assert(m.prefix().second == m[0].first); in main()
1450 assert(!m.suffix().matched); in main()
1451 assert(m.suffix().first == m[0].second); in main()
1452 assert(m.suffix().second == m[0].second); in main()
1453 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1454 assert(m.position(0) == 0); in main()
1455 assert(m.str(0) == s); in main()
1458 std::wcmatch m; in main() local
1460 assert(!std::regex_search(s, m, std::wregex(L"[a[.hyphen.]z]", in main()
1462 assert(m.size() == 0); in main()
1466 std::wcmatch m; in main() local
1468 assert(std::regex_search(s, m, std::wregex(L"[a[=M=]z]", in main()
1470 assert(m.size() == 1); in main()
1471 assert(!m.prefix().matched); in main()
1472 assert(m.prefix().first == s); in main()
1473 assert(m.prefix().second == m[0].first); in main()
1474 assert(!m.suffix().matched); in main()
1475 assert(m.suffix().first == m[0].second); in main()
1476 assert(m.suffix().second == m[0].second); in main()
1477 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1478 assert(m.position(0) == 0); in main()
1479 assert(m.str(0) == s); in main()
1482 std::wcmatch m; in main() local
1484 assert(std::regex_search(s, m, std::wregex(L"[a[.ch.]z]", in main()
1486 assert(m.size() == 1); in main()
1487 assert(!m.prefix().matched); in main()
1488 assert(m.prefix().first == s); in main()
1489 assert(m.prefix().second == m[0].first); in main()
1490 assert(!m.suffix().matched); in main()
1491 assert(m.suffix().first == m[0].second); in main()
1492 assert(m.suffix().second == m[0].second); in main()
1493 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1494 assert(m.position(0) == 0); in main()
1495 assert(m.str(0) == s); in main()
1499 std::wcmatch m; in main() local
1501 assert(!std::regex_search(s, m, std::wregex(L"[a[=M=]z]", in main()
1503 assert(m.size() == 0); in main()
1506 std::wcmatch m; in main() local
1508 assert(std::regex_search(s, m, std::wregex(L"[ace1-9]*", in main()
1510 assert(m.size() == 1); in main()
1511 assert(!m.prefix().matched); in main()
1512 assert(m.prefix().first == s); in main()
1513 assert(m.prefix().second == m[0].first); in main()
1514 assert(m.suffix().matched); in main()
1515 assert(m.suffix().first == m[0].second); in main()
1516 assert(m.suffix().second == s + std::char_traits<wchar_t>::length(s)); in main()
1517 assert(m.length(0) == 0); in main()
1518 assert(m.position(0) == 0); in main()
1519 assert(m.str(0) == L""); in main()
1522 std::wcmatch m; in main() local
1524 assert(std::regex_search(s, m, std::wregex(L"[ace1-9]+", in main()
1526 assert(m.size() == 1); in main()
1527 assert(m.prefix().matched); in main()
1528 assert(m.prefix().first == s); in main()
1529 assert(m.prefix().second == m[0].first); in main()
1530 assert(m.suffix().matched); in main()
1531 assert(m.suffix().first == m[0].second); in main()
1532 assert(m.suffix().second == s + std::char_traits<wchar_t>::length(s)); in main()
1533 assert(m.length(0) == 6); in main()
1534 assert(m.position(0) == 1); in main()
1535 assert(m.str(0) == L"1a45ce"); in main()
1543 std::match_results<BI> m; in main() local
1546 assert(std::regex_search(BI(s), BI(s+ss), m, regex)); in main()
1547 assert(m.size() == 1); in main()
1548 assert(!m.prefix().matched); in main()
1549 assert(m.prefix().first == BI(s)); in main()
1550 assert(m.prefix().second == m[0].first); in main()
1551 assert(!m.suffix().matched); in main()
1552 assert(m.suffix().first == m[0].second); in main()
1553 assert(m.suffix().second == m[0].second); in main()
1554 assert(m.length(0) == 4); in main()
1555 assert(m.position(0) == 0); in main()
1556 assert(m.str(0) == s); in main()
1559 std::wcmatch m; in main() local
1561 assert(std::regex_search(s, m, std::wregex(L"[\\n]+", in main()
1563 assert(m.size() == 1); in main()
1564 assert(!m.prefix().matched); in main()
1565 assert(m.prefix().first == s); in main()
1566 assert(m.prefix().second == m[0].first); in main()
1567 assert(!m.suffix().matched); in main()
1568 assert(m.suffix().first == m[0].second); in main()
1569 assert(m.suffix().second == s + std::char_traits<wchar_t>::length(s)); in main()
1570 assert(m.length(0) == std::char_traits<wchar_t>::length(s)); in main()
1571 assert(m.position(0) == 0); in main()
1572 assert(m.str(0) == s); in main()