Commit 7931f0f
authored
refactor(clp): Prepare
- Move `Grep::process_raw_query` and associated utilities into a new `GrepCore` class.
- Templatize dictionary-parameters in `GrepCore`.
- Use dictionary IDs instead of pointers to dictionary entries in subquery generation.
- Move segment matching out of `GrepCore::process_raw_query` flow.
- Make callers of `GrepCore::process_raw_query` explicitly specify all wildcards in the query string.
- Make callers of `GrepCore::process_raw_query` clean up the query string.Grep code for deduplication with clp-s: (#1143)1 parent 51f1277 commit 7931f0f
File tree
16 files changed
+1202
-991
lines changed- components/core
- src/clp
- clg
- clo
- tests
- taskfiles
16 files changed
+1202
-991
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
579 | 579 | | |
580 | 580 | | |
581 | 581 | | |
| 582 | + | |
| 583 | + | |
582 | 584 | | |
583 | 585 | | |
584 | 586 | | |
| |||
627 | 629 | | |
628 | 630 | | |
629 | 631 | | |
| 632 | + | |
| 633 | + | |
630 | 634 | | |
631 | 635 | | |
632 | 636 | | |
| |||
716 | 720 | | |
717 | 721 | | |
718 | 722 | | |
719 | | - | |
| 723 | + | |
720 | 724 | | |
721 | 725 | | |
722 | 726 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
188 | 187 | | |
189 | 188 | | |
190 | 189 | | |
| |||
194 | 193 | | |
195 | 194 | | |
196 | 195 | | |
197 | | - | |
198 | | - | |
199 | | - | |
| 196 | + | |
200 | 197 | | |
201 | 198 | | |
202 | 199 | | |
| |||
437 | 434 | | |
438 | 435 | | |
439 | 436 | | |
440 | | - | |
| 437 | + | |
441 | 438 | | |
442 | 439 | | |
443 | 440 | | |
| |||
468 | 465 | | |
469 | 466 | | |
470 | 467 | | |
471 | | - | |
| 468 | + | |
472 | 469 | | |
473 | 470 | | |
474 | 471 | | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | 472 | | |
| 473 | + | |
480 | 474 | | |
481 | 475 | | |
482 | 476 | | |
| 477 | + | |
483 | 478 | | |
484 | | - | |
| 479 | + | |
485 | 480 | | |
486 | 481 | | |
487 | 482 | | |
| |||
504 | 499 | | |
505 | 500 | | |
506 | 501 | | |
| 502 | + | |
507 | 503 | | |
508 | 504 | | |
| 505 | + | |
509 | 506 | | |
510 | 507 | | |
511 | | - | |
| 508 | + | |
512 | 509 | | |
513 | 510 | | |
514 | 511 | | |
| |||
0 commit comments