diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-08-17 06:03:41 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-08-17 06:03:41 +0900 |
| commit | c81e9f89d9e4388f36a4427bbaa95eced659d2ce (patch) | |
| tree | cd35eedf6741347e791e6909ec604b89d5e0cff7 /crates/shirabe/src | |
| parent | ea39e2301824435d45db88f95867dbe692aaf21e (diff) | |
| download | php-shirabe-c81e9f89d9e4388f36a4427bbaa95eced659d2ce.tar.gz php-shirabe-c81e9f89d9e4388f36a4427bbaa95eced659d2ce.tar.zst php-shirabe-c81e9f89d9e4388f36a4427bbaa95eced659d2ce.zip | |
refactor(preg): split the PREG_UNMATCHED_AS_NULL preg_* by flag
preg_match2() and preg_match_all_offset_capture() each become a pair over
a shared private impl, and their flags arguments are gone: no caller passed
anything but 0 or PREG_UNMATCHED_AS_NULL. Preg::match5()/is_match5() lose
their own flags argument for the same reason -- both call sites passed 0,
and the value had nowhere left to go -- so they are renumbered to
match4()/is_match4(). PREG_UNMATCHED_AS_NULL itself is now unreferenced.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src')
| -rw-r--r-- | crates/shirabe/src/console/application.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/crates/shirabe/src/console/application.rs b/crates/shirabe/src/console/application.rs index b55b9e68..e818823e 100644 --- a/crates/shirabe/src/console/application.rs +++ b/crates/shirabe/src/console/application.rs @@ -1796,7 +1796,6 @@ impl Application { php_regex!(r"/.{1,10000}/u"), &utf8_string, &mut m, - 0, offset as usize, ) { let m0 = m[&shirabe_php_shim::CaptureKey::ByIndex(0)] |
